• Resolved maj0r3149

    (@maj0r3149)


    I am trying to use a function to variation of a product is currently selected. I have not been able to find any information on how to manually change which variation is active.

    My products all have 2 variations and i need to switch between them based on other logic instead of the usual dropdown menu.

    Is there a way to do this?

    And if this is the wrong place to look for this kind of help where would be the correct place?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Make a copy of:
    plugins/woocommerce/templates/single-product/add-to-cart/variable.php
    and put it in:
    themes/your-child-theme-name/woocommerce/single-product/add-to-cart/variable.php

    Then edit the copy to include your custom logic.

    PHP skills and some perseverance will be needed!

    Thread Starter maj0r3149

    (@maj0r3149)

    Thank you I will give this a try!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Variable Pricing changing the selected variable’ is closed to new replies.