If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
Hi, how can I have a custom price.php for just one product but keep the regular price.php for all the other products?
I’m not sure what you mean. Do you mean you want a different price layout for a single item or just to change the price of a single item?
As far as I know that isn’t easily doable. You would need to create/write your own template to hook into all of the woo commerce functions and then add that into the theme.
An alternative would be to either check the Woo Commerce extensions to see if something close to this is offered or use the plugins shortcode to show that specific product on a page and then lay it out as best you can with just the visual editor.
Hi I may have accidentally misled you.
The price.php file I am referring to is the one inside of woocommerce>templates>single-product>price.php
If I make a copy of price.php, make a few changes, and rename to price-v.php can I tell a specific product to use the price-v.php instead of price.php?
Thank you for your patience.
Afaik this is not possible. You can try to implement conditional statements: http://codex.wordpress.org/Conditional_Tags though.
The topic ‘Custom Price.php for a single product?’ is closed to new replies.