Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #17522

    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.


    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?





    Hi I would like a different price layout for a single item.

    Thank you.


    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.





    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: though.




    Hi, I was able to make it work via the conditional statements with in woocommerce.

    Thank you for all of your help.

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Custom Price.php for a single product?’ is closed to new replies.