wpejay
Forum Replies Created
-
Thanks for the information. It helped to find a solution. This should work. I tested it and for me it’s working.
add_filter(‘woocommerce_gla_attribute_mapping_sources_custom_attributes’, function($values) {
return array_merge($values, [‘gtin’]);
});add_filter(‘woocommerce_gla_product_attribute_value_gtin’, function ($value, $product) {
error_log(‘Checking GTIN for product ID: ‘ . $product->get_id());
$gzd_product = wc_gzd_get_gzd_product($product);
if ($gzd_product && $gzd_product->get_gtin()) {
error_log(‘GTIN found: ‘ . $gzd_product->get_gtin());
return $gzd_product->get_gtin();
}
error_log(‘No GTIN found for product ID: ‘ . $product->get_id());
return $value;
}, 10, 2);I am experiencing the same issue. Is there a way to add custom existing attributes, or is there a way to fetch the data from the Germanized add-on?
I would like to assign the value of _ts_gtin (GTIN) from the Germanized Plugin because I have over 500 products in my online shop and have already added the GTIN to another field for the Germanized Plugin.
Best regards,
Hi Mark,
thank you for the update! The hidden header in landing page mode works 🙂
Unfortunately the sticky menu is not working anymore. When I scroll up, the normal menu is displayed and not the sticky header.I figured out that it would be good if there would be another option in the settings. Would it be possible to add an option in the settings to change the visibility of the sticky menu when scrolling up or down? or maybe also always showing the sticky menu during scrolling? It would give the plugin perfect flexibility.
Best and thanks a lot
AdrianGreat! I will try it out right away 🙂
Hi @mlchaves,
thanks for your replyActually, the landing page mode is very useful and a really helpful feature.
I am glad you didn’t remove it 🙂