• Resolved Lockhart

    (@muldari)


    I have 3 products with a specific need. They are switchplates and you need to select which configurations you need. I am using Product Add-Ons for WooCommerce (thanks abwaita (@abwaita)for that recommendation) as this allows me to set up a quantity field for each configuration + pricing. So technically, it’s a variable price field, but I can’t use the variable price option in Woocommerce as that doesn’t give me the ability to add a quantity for each atttribute’s variable. The only way I can see to make this work is set the price at $0 and let the add-ons handle the price. Unfortunately, that results in displaying the price: $0 for the category and single product. What I want to do is not display the price for the switchplate at the top and on the switchplate category page. The add-on plugin allows me to display the prices for each configuration. I can make a child template for the single product, but that affects ALL the products. How do I accomplish this for one category and the 3 products in them? I hope this is clear enough to get some guidance.
    Thank you for your time and support.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Nico

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello there,
    YOu can use WooCommerce conditional tags to know if you’re on the category page you’re looking for or on a specific product, and remove the price in the template: https://docs.woocommerce.com/document/conditional-tags/#section-5

    Thread Starter Lockhart

    (@muldari)

    That link shows conditional tags but does not show how to remove the price. Is there perhaps a function code that can replace the price of $0 with something like “select options”?
    I was really hoping for a way to create a template for just those 3 products and their category.

    Rambo

    (@rahul020691)

    Hi @muldari,

    To hide the price of the product and keep the price of add-ons is not directly possible in WooCommerce. You would need custom code here which could provide the functionality your project requires.

    If you would like to investigate that possibility further, you could reach out to some of the official WooCommerce development partners via this link below.

    https://woocommerce.com/customizations/

    Thread Starter Lockhart

    (@muldari)

    I have created a custom template for these specific products and used css to assist with the category pricing layout.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Create Product Template for Specific Product Only’ is closed to new replies.