Trying to make a dynamic button link
-
I’m trying to make a button which I can add to the product template in woocommerce as a “quick buy” button (in addition to the standard “add to cart” button), that adds the current product to the cart and redirects the customer to the checkout page. I’m using this maxbutton shortcode, but somehow it won’t get the product id.
[maxbutton id=”9″ url=”https://thecreativecrops.com/checkout/?add-to-cart=.$product_id”%5D
Did I make a mistake in the shortcode?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Trying to make a dynamic button link’ is closed to new replies.