mjke87
Forum Replies Created
-
Forum: Reviews
In reply to: [Reusable Product Description for WooCommerce] So happy this existsHi wpwizardau,
You are very welcome and thank you for the positive review!
Cheers,
MikeForum: Reviews
In reply to: [Reusable Product Description for WooCommerce] Must have pluginHi smartsmell,
Thanks for the great review, really appreciate it!
Cheers,
MikeForum: Plugins
In reply to: [Reusable Product Description for WooCommerce] Text is inserted twiceYou’re very welcome, glad I could help.
Forum: Plugins
In reply to: [Reusable Product Description for WooCommerce] Text is inserted twiceHi Marc,
Alright, here’s the snippet, which simply removes the content filter, after it ran for the first time.
add_filter('the_content', function($content) { if (class_exists('\MJJ\WooProductAttributeTab\Tabs')) { remove_filter('the_content', array(\MJJ\WooProductAttributeTab\Tabs::instance(), 'extend_product_description'), 99, 1); } return $content; }, 100, 1);
Include this somewhere in your child theme, or theme—for example in the
functions.php
file.Please let me know if it worked, I might later include it in the plugin.
Cheers,
MikeForum: Plugins
In reply to: [Reusable Product Description for WooCommerce] Text is inserted twiceHi Marco,
The plugin makes of the
the_content
filter, to add the additional description. I suppose the Avada theme, call this filter twice, which isn’t great.The simple solution would be to remove the filter callback, after it was called the first time. Do have the possibility to add a code-snippet to your website? If yes, I can send you a snippet, this test if this solves the problem.
Best wishes,
MikeForum: Plugins
In reply to: [Reusable Product Description for WooCommerce] Attribute images gone?Hi wooressu,
There is no function within the plugin “Reusable Product Descriptions” that touches the media library of products. Therefore, I assume this problem is related to another plugin. Possibly the image gallery is simply turned off in the screen options?
Cheers,
MikeForum: Plugins
In reply to: [Facebook for WooCommerce] Excessive Database Error Log EntriesHi Christine,
I’ve updated and reactivated the plugin. After that no errors get logged any more.
Thank you very much for having this issue resolved so quickly.Kind regards,
MikeForum: Plugins
In reply to: [Facebook for WooCommerce] Excessive Database Error Log EntriesI’m using the plugin version 2.0.3 and WP version 5.5.1
Hi,
It’s currently not possible, but you could create a shortcode, that displays the description of the variation and insert it into the variation description field.
Alternatively you could also use a variation description hook and use it to output the description.
Anyhow, it would be quite tricky. I might add such a shortcode in a future version, since it could be quite useful to display the description of a product anywhere else.
Hi Claudio,
I think the easiest would be something like this:add_action('YOUR-ACTION', function() { $instance = \MJJ\WooProductAttributeTab\Tabs::instance(); $content = $instance->extend_product_description('append'); echo $content; });
You might be able to achieve this with some coding, but otherwise is currently not possible.
Hi Claudio,
The placeholders only work in the attribute’s “additional description field” that you find, when you open an attribute term’s edit screen.
You can display the text you enter there at the following two spots on your product:
- Append it to the main description
- Show it in a separate tab
You change the behavior for each attribute individually in the attribute edit screen.
I don’t know if Elementor has any influence on the display, never tested it.
Cheers,
MikeForum: Plugins
In reply to: [Reusable Product Description for WooCommerce] Attributes tab does not showHi gulamagick,
I guess the two plugins are not fully compatible, since they both modify the tabs. I have never tested the WooCommerce tab manager plugin.
Here’s two ideas:
- Perhaps changing the tab priority of the attribute tab might help — for that matter open an attribute to edit and change the “absolute tab priority” field, then save
- If this doesn’t work, you can still show the attribute text in the main description, rather than in individual tabs — you can change the display type also in the attribute edit screen
Cheers,
MikeHi gregcourdier,
Thank you for the snippet. I will have a look at this when the next version is on schedule.
Cheers,
MikeForum: Plugins
In reply to: [Reusable Product Description for WooCommerce] Return Attribute ImageHi,
Check the readme from the term image plugin:
you can use the following function into your templates to get category/term image:
if (function_exists('get_wp_term_image')) { $meta_image = get_wp_term_image($term_id); //It will give category/term image url } echo $meta_image; // category/term image url
where $term_id is ‘category/term id’
Something along these lines:
$attributes = $product->get_attributes(); foreach($attributes as $attribute) { $terms = wp_get_post_terms($product->get_id(), $attribute['name']); foreach ($terms as $term) { $meta_image = get_wp_term_image($term->term_id); } }
Kind regards,
Mike