Hi, how can I have a custom price.php for just one product but keep the regular price.php for all the other products?
Thank you.
Custom Price.php for a single product?
7 posts from 3 voices-
Posted 6 months ago #
-
Hi gswift1,
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?
Regards,
Devin
Posted 6 months ago # -
Devin,
Hi I would like a different price layout for a single item.
Thank you.Posted 6 months ago # -
Hey gswift1,
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.
Regards,
Devin
Posted 6 months ago # -
Devin,
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.phpIf 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.
Posted 5 months ago # -
Hey!
Afaik this is not possible. You can try to implement conditional statements: http://codex.wordpress.org/Conditional_Tags though.
Regards,
PeterPosted 5 months ago # -
Hi, I was able to make it work via the conditional statements with in woocommerce.
Thank you for all of your help.Posted 5 months ago #
Topic Closed
This topic has been closed to new replies.














