• Resolved gilbertguy

    (@gilbertguy)


    I’m looking to add items to the cart with an Add to Cart link on the shop page.

    The following code works, however I’m having trouble finding the variation ID for the single product addon I’ve added.

    <?php echo esc_url( $product->add_to_cart_url() ); ?>&variation_id=%22%3A%7B%&variation-PaidtoInstallerPerUnit=1″>Add to Cart

    Where can I find the variation ID?

    In looking at the code view in the edit popup, I see it says this %22%3A%7B% but that doesn’t work.

Viewing 1 replies (of 1 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    We are a little bit unclear about your exact requirement.

    Regarding the variation ID, you can get it from Products >> All Products >> Select the variable product >> Click on Variations. The variable ID will be there along with each variation.

    Please refer to the below link:

    https://i.postimg.cc/1t70MWnJ/Screenshot-2019-08-23-at-7-07-06-PM.png

    If we have misunderstood your exact requirement, please clarify us with more details.

    Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Pass Value through LInk’ is closed to new replies.