I was trying to create a custom shop page for a project where users can click on a product to view the details in a modal window and select some options on price variations.
What I want to do is to send the product details to checkout page upon chosen by the user.
Is it possible to do ? If so , how ?
Your help is appreciated. Thanks !
I was able to accomplish it by myself. In my template:
In my functions.php
This actually does the trick. I know this is not a secured way. If someone could tell me the best approach that would be great !
You can redirect user to checkout right after he uses the add to cart.
To do so just paste this in your theme’s functions.php