This topic has 7 replies, 3 voices, and was last updated 6 months ago ago by Jack Richardson
I have some custom code in my functions file to display “Not available in your country” when price is zero. Worked perfectly for years. However, on the shop archive page, its displaying that for all variable products. If I remove the custom code, it just displays Learn More (Not select options or the lowest variable price as stated in the theme options). So the problem isn’t the code. Please see private content area for more details.
Hi @bradbrad,
We couldn’t reproduce this issue on our local sites.
To assist us in identifying any potential conflicts, we kindly request that you conduct a systematic test. This can be done by deactivating each plugin one at a time, with the exception of those that are explicitly included in the list provided by our team.
For your convenience, you can find the list of included plugins at the following link: https://www.8theme.com/documentation/xstore/plugins/included-plugins/.
Best Regards,
8Theme’s Team
I’ve done so, the problem seems to be aelia currency converter, which is essential to the site as its multicurrency. I’ve noticed that everything works fine on categories, related products etc, its only the shop loop.
Also, we switched to the single product builder and since then, the custom code that normally hides the add to cart form and says price is zero has stopped working, allowing to people to purchase the product for free. Please assist, it was all working fine before we updated.
Hi @bradbrad,
The issues of customization codes or with 3rd party plugins must be directed to the plugin’s author. They fall out of scope our support standard.
If you require personal customization services, we invite you to submit a request through our customization panel at: https://www.8theme.com/account/#etheme_customization_panel , and continue conversations with the technicians team directly.
Please be advised that customization services will incur additional charges, the exact amount of which will be communicated following a detailed review of your request.
Best Regards,
8Theme’s Team
ok but surely you can look into the fact that it doesnt display correctly on the shop loop, but on shortcodes, categories, related products etc it displays as it should??
Also, can you please help me update this custom code so it hides the add to cart form when using the page builder (it works if I use a normal layout but when I switch to the builder, it still allows them to add to cart)
add_filter( ‘woocommerce_get_price_html’, ‘njengah_price_free_zero_empty’, 9999, 2 );
function njengah_price_free_zero_empty( $price, $product ){
if ( ” === $product->get_price() || 0 == $product->get_price() ) {
$price = ‘Not available in your currency‘;
}
return $price;
}
Dear @bradbrad,
Thank you for reaching out to us.
We have reviewed your query and it appears that the assistance you require falls outside the scope of our standard support services as outlined in the Themeforest Item Support Policy, which you can review here: https://themeforest.net/page/item_support_policy.
It seems that modifications have been made to your child theme to achieve a unique functionality that is not included in our basic options. As such, this would necessitate personalized customization services.
We kindly invite you to submit a request for these services through our customization panel at this link: https://www.8theme.com/account/#etheme_customization_panel. By doing so, you will be able to work directly with our skilled team of technicians who can assist you further.
We appreciate your understanding and are here to assist with any additional questions or support you may need.
Best Regards,
Jack Richardson
The 8Theme Team
You must be logged in to reply to this topic.Log in/Sign up