All the other products on my website are “variable products” and the pricing for them show up once the variable selections have been made on the single product pages. I’m therefore not sure why the price won’t display for this new product page, I’m guessing maybe it has something to do with it being a ‘simple’ product rather than ‘variable’ but I’m not sure.
Any help you could provide would be great and very appreciated.
I hope you are well today and thank you for your question.
I have tested it on my test site and it’s working fine for me using latest version of Activello theme as displayed in the attached screenshots.
This can be child theme issue on your site so to confirm it just temporary use the Activello theme instead of child theme on your site. If everything works fine then it’s your child theme issue so just share me your child theme so that i can troubleshoot it.
Thanks for your quick reply. You’re right - when I do a live preview with the Activello theme itself, the price displays without any issue.
I remember I did change some of the php code of the child theme single product page a while ago to move around some of the display, most likely I did something wrong! I’ve attached the relevant file, but if there’s a better way to share the theme with you please let me know, I’m not quite sure how.
I know what the problem is I think but I don’t know how to fix it. I had added in the below code previously to get rid of the pricing line, as it shows a pricing range when I have variable products and it was confusing for customers.
Is it possible to write the add_action code so that it only displays the price when there is no drop-down selection to make (i.e. not a variable product)?