Hi,
Am I right in thinking that when using woocommerce there is no way to show the product price on the “Advanced Layout Builder for products” product pages?
I have searched for an answer, but no luck
Thanks
Hey mrb1972,
Thank you for using Enfold.
Please try to use the Plugin Additions > Product Purchase Button element. Or you can manually add the price in a code or text block.
Best regards,
Ismael
Thanks, however the Product Purchase Button doesn’t seem to show the product price (unless I’m doing something wrong) and manually adding the prices isn’t really practical if you have many products
Hi,
Please edit the config-templatebuilder > avia-shortcodes > product_snippet_button.php file, go to line 67. Below that, you should see the following code.
$output .= '<p class="price">' . $product->get_price_html() . '</p>';
If you can’t see the code, add it.
Best regards,
Ismael
Thanks, however that code is already there, but the price isn’t showing for some reason
Ok I have got it working, all a bit odd
The file “product_snippet_button.php” had the code “$output .= ‘<p class=”price”>’ . $product->get_price_html() . ‘</p>’;” already in it but it wasnt working.
Then I noticed another file called “product_snippet_button_orig.php”, which didn’t have the code so I added it and it worked
So for some reason product_snippet_button_orig.php is the file theme (shop demo) seems to use