Forum Replies Created

Viewing 15 replies - 61 through 75 (of 77 total)
  • Thread Starter User

    (@lostguybrazil)

    Thanks for your answer – is there a way to send the URL of the website in private?

    Kind regards

    Thread Starter User

    (@lostguybrazil)

    Hi @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

    Thread Starter User

    (@lostguybrazil)

    Thanks! Is there already an expected launch date for the new update?

    Thread Starter User

    (@lostguybrazil)

    Thanks, @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

    Thread Starter User

    (@lostguybrazil)

    Thanks!

    Thread Starter User

    (@lostguybrazil)

    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!

    Thread Starter User

    (@lostguybrazil)

    @qriouslad I have just updated the plugin, and can confirm that it works. Many thanks for the great support!

    Thread Starter User

    (@lostguybrazil)

    Hi @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

    Thread Starter User

    (@lostguybrazil)

    Hi @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”.

    Thread Starter User

    (@lostguybrazil)

    Hi all, any news regarding this matter? Would it be possible to consider using <span> (instead of <div>) for the inline obfuscator? Thanks!

    Thread Starter User

    (@lostguybrazil)

    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.
    Thread Starter User

    (@lostguybrazil)

    Hi @louwie17 – Yes, indeed deactivating the “Advanced Custom Fields” plugin also fixed the custom fields block inside the new New Product Form (Beta). Thanks!

    Thread Starter User

    (@lostguybrazil)

    Hi @carolm29, thanks for your answer. Indeed deactivating “Advanced Custom Fields” (v6.3.0) solved the problem and displayed the option to enable “Custom Fields” on the product edit page, as described here.

    Thanks for the great support!

    Thread Starter User

    (@lostguybrazil)

    Thanks, this indeed worked. Seems to be a problem with Elementor.

    User

    (@lostguybrazil)

    Same problem here.

Viewing 15 replies - 61 through 75 (of 77 total)