User
Forum Replies Created
-
Forum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps Placeholder Not WorkingThanks for your answer – is there a way to send the URL of the website in private?
Kind regardsForum: Plugins
In reply to: [Complianz - GDPR/CCPA Cookie Consent] Google Maps Placeholder Not WorkingHi @leonardotamion,
Thank you for your prompt response. It seems that Complianz recognized the Google Maps embeded HTML because when I look the page source of my WordPress page it looks like this when I accept cookies:
<div class="elementor-widget-container">
<iframe data-category="marketing" data-service="google-maps" class="cmplz-no-video cmplz-activated" data-cmplz-target="src" data-src-cmplz="https://www.google.com/maps/embed?..." src="https://www.google.com/maps/embed?..." width="100%" height="400" style="border:0;" allowfullscreen="" data-deferlazy="1" referrerpolicy="no-referrer-when-downgrade" loading="lazy"></iframe>
</div>When I reject cookies, the source code looks like this:
<div class="elementor-widget-container">
<iframe data-category="marketing" data-service="google-maps" class="cmplz-iframe cmplz-iframe-styles cmplz-no-video " data-cmplz-target="src" data-src-cmplz="https://www.google.com/maps/embed?..." src="about:blank" width="100%" height="400" style="border:0;" allowfullscreen="" data-deferlazy="1" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>So not sure how to proceed with the missing placeholder.
Kind regards
Forum: Plugins
In reply to: [Germanized for WooCommerce] Not being able to export ProductsThanks! Is there already an expected launch date for the new update?
Forum: Plugins
In reply to: [WooCommerce] Export products hangingThanks, @carolm29 – seems to be a problem related to the Germanized plugin. I will contact the author of the plugin.
[20-Jun-2024 19:53:44 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_name() on string in /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-content/plugins/woocommerce-germanized/includes/class-wc-gzd-product-attribute-helper.php:151
Stack trace: 0 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-content/plugins/woocommerce-germanized/includes/export/class-wc-gzd-product-export.php(217): WC_GZD_Product_Attribute_Helper->get_attribute() 1 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-includes/class-wp-hook.php(324): WC_GZD_Product_Export->export_product_attribute_data() 2 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() 3 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-content/plugins/woocommerce/includes/export/class-wc-product-csv-exporter.php(268): apply_filters() 4 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-content/plugins/woocommerce/includes/export/class-wc-product-csv-exporter.php(190): WC_Product_CSV_Exporter->generate_row_data() 5 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-content/plugins/woocommerce/includes/export/abstract-wc-csv-batch-exporter.php(117): WC_Product_CSV_Exporter->prepare_data_to_export() 6 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-exporters.php(165): WC_CSV_Batch_Exporter->generate_file() 7 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-includes/class-wp-hook.php(324): WC_Admin_Exporters->do_ajax_product_export() 8 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 9 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 10 /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-admin/admin-ajax.php(192): do_action() 11 {main}thrown in /var/www/vhosts/MYWEBSITE.COM/httpdocs/wp-content/plugins/woocommerce-germanized/includes/class-wc-gzd-product-attribute-helper.php on line 151
Thanks!
Hi Dennis, thank you for your prompt answer. So basically how it works is that if I translate a product from German to English, a new product ID is generated. It would be nice to display the “Rechnung” always with the product name, attribute name and variation name in German.
Maybe it would be possible to implement a logic to retrieve the product id for the German version of the product, and then obtain the corresponding German product name? This worked worked for me:
<?php
if (WC() && function_exists('pll_current_language') && function_exists('pll_get_post')) {
// Settings
$product_id = 31488; // Example of a product_id in English
// Get the current language of the product
$current_language = pll_get_post_language($product_id);
// Check if the product is already in German
if ($current_language !== 'de') {
// Get the German product ID using Polylang
$product_id_de = pll_get_post($product_id, 'de');
if ($product_id_de) {
// Load the German product
$product_de = wc_get_product($product_id_de);
if ($product_de) {
// Get the product name
$product_name_de = $product_de->get_name();
}
}
} else {
$product_id_de = $product_id;
$product_name_de = $product_id->get_name();
}
// Output product name
echo 'Product id (de): ' . $product_id_de . '<br>';
echo 'Product name (de): ' . $product_name_de . '<br>';
}Is it possible to create a WordPress hook that would implement this logic of retreving the product name, attribute and variation of the german version of a given product?
Thanks!@qriouslad I have just updated the plugin, and can confirm that it works. Many thanks for the great support!
Forum: Plugins
In reply to: [WooCommerce] Export products hangingHi @doublezed2, thanks for your reply. I have tried to export a category with 10 products and another one with 7 products – and it did not work.
When I manually select a lot of columns (incl. all custom meta), the export works for all products: https://imgur.com/a/izhl3qo
When I add “Attributes”, it does not. I have tried to include only “Attributes” column and the export does not work.
So it seems that the problem is in that column.
Not sure if it’s worth mentioning, but I use the Germanized plugin.
Thanks and kind regards
Forum: Plugins
In reply to: [WooCommerce] Export products hangingHi @carolm29, thanks for your answer. I am using the default WooCommerce exporter.
I have run the WooCommerce > Status > Tools > Update Database and the problem persists. I have also checked for WooCommerce > Status > Logs > fatal-errors, but I don’t see anything related to this issue.
What I have noticed is that when I press Products > All Products > Export > Export Products, an export file is created in the /wp-content/uploads folder with the current timestamp (e.g. “wc-product-export-13-6-2024-1718306975189.csv”).
The export works fine if I don’t include the column “Attributes”.
Hi all, any news regarding this matter? Would it be possible to consider using <span> (instead of <div>) for the inline obfuscator? Thanks!
Hi @qriouslad, thanks for your reply. The website is not yet published. Let me give you more details: I am using the latest version of Elementor and adding the “inline” version inside the Text Editor widget like this (https://imgur.com/KhsyIqH).
The front-end looks like this (https://imgur.com/nfEvF4V) and the inspector looks like this (https://imgur.com/At2MDhJ).I have already tried to remove all my custom CSS – the problem still persists.
What worked is changing the <div> tag to <span>, like this (https://imgur.com/ZJ3o0qH). <span> seem to be more generic for Elementor – perhaps you could change this login in the plugin?
Thanks!
- This reply was modified 2 years ago by User.
Forum: Plugins
In reply to: [WooCommerce] New “Custom Fields in the New Product Editor” (WooCommerce 8.9)Hi @louwie17 – Yes, indeed deactivating the “Advanced Custom Fields” plugin also fixed the custom fields block inside the new New Product Form (Beta). Thanks!
Forum: Plugins
In reply to: [WooCommerce] New “Custom Fields in the New Product Editor” (WooCommerce 8.9)Thanks, this indeed worked. Seems to be a problem with Elementor.
Forum: Plugins
In reply to: [Polylang] Polylang Flag Icons Not ShowingSame problem here.