This topic has 6 replies, 3 voices, and was last updated 9 months, 3 weeks ago ago by Andrew Mitchell
I’m using plugin for a bulk discount, called WooCommerce Bulk Discount
Whern I enter text in product description, it does not show on my product. If I swithc to default Woocommerce theme it works ok.
https://i.imgur.com/8SeXK06.png
How can I show it on xstore theme?
Dear @ziga32,
We hope this message finds you well.
We would like to provide you with a solution to the issue you are currently experiencing. To address this, kindly insert the following snippet of code into the functions.php file located within your child theme directory:
add_action('etheme_woocommerce_template_single_meta', 'n2t_etheme_woocommerce_template_single_meta');
function n2t_etheme_woocommerce_template_single_meta(){
global $thepostid, $post;
if ( !$thepostid ) $thepostid = $post->ID;
echo "<div class='productinfo-show-discounts'>";
echo get_post_meta( $thepostid, '_bulkdiscount_text_info', true );
echo "</div>";
}
Please ensure that you back up your website before making any changes to the code. If you are not comfortable implementing the code yourself, we recommend consulting with a professional developer.
Should you require any further assistance or have any questions regarding this process, please do not hesitate to reach out to us.
Best Regards,
The 8Theme Team
thank you
I put this in the child theme
https://i.imgur.com/1P8FWOV.png
But it don’t seem to be working
https://i.imgur.com/mdYNofO.png
https://ekosin.net/nekategorizirano/vec-kot-setveni-koledar-2024-a3-format/
Hi @ziga32,
Please update the code to this:
add_action('etheme_woocommerce_template_single_price', 'n2t_etheme_woocommerce_template_single_meta');
function n2t_etheme_woocommerce_template_single_meta(){
global $thepostid, $post;
if ( !$thepostid ) $thepostid = $post->ID;
echo "<div class='productinfo-show-discounts'>";
echo get_post_meta( $thepostid, '_bulkdiscount_text_info', true );
echo "</div>";
}
If it still doesn’t work, please provide your site’s WP Admin URL and credentials in the private content area of this topic, so that we can look into it further:
WP Admin URL:
WP Admin Username:
WP Admin Password:
Thank you for your cooperation.
Best Regards,
8Theme’s Team
working now, many thanx!
Dear ziga32,
We trust our theme is enhancing your experience. Taking a brief moment to rate it with a glowing 5 stars on ThemeForest would be immensely appreciated. Your feedback holds significant value for us.
Click here to rate now: https://themeforest.net/downloads
Thank you sincerely for your ongoing support!
Best Regards,
The 8Theme Team
The issue related to '‘plugin features not showin when xstore is enabled’' has been successfully resolved, and the topic is now closed for further responses