When a user selects a different color on the product page, I want to open that specific product in that selected color directly instead of just changing the featured image. This Plugin is doing exactly the same thing, selecting a color changes the product URL. So if I have a product A in black and red colors and on the product page user selects a red color, I want to open the product link. I just need little guidance, which function I should refer to or which hooks are useable. I used to modify some free plugins but they contain a lot of code which I don't even need, I know just a couple of lines are needed to code this so I want to avoid using any plugin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.