Support » Plugin: Extra Product Options (Product Addons) for WooCommerce » Can I add to cart from url with options info?

  • Resolved greglakes

    (@greglakes)


    website.com/?add-to-cart=42
    adds product 42 to the cart. Is it possible to include option values?
    Like:
    website.com/?add-to-cart=42&option1=blue

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ThemeHigh

    (@themehigh)

    Unfortunately, the requested feature is not available in our plugin.

    However, we will add this in the future version of our plugin.

    Thank you!

    Thread Starter greglakes

    (@greglakes)

    Since this was an external app used for customization, I figured out a work around and used form method=”post” and mimicked the form used for a regular woo product. Thanks for replying! – Greg

    Plugin Author ThemeHigh

    (@themehigh)

    In the next update, we will add both the POST method and the GET method compatibility.

    Thank you!

    Hi,
    I also would need this feature. Can you tell when it will be available?
    May also be part of the premium version.
    I would need something like this, including variants:
    website.com/?add-to-cart=42&option1=blue
    Thanks a lot and kind regards
    Martin

    Plugin Author ThemeHigh

    (@themehigh)

    We have already released the new version of our plugin.

    Please update the plugin and verify from yoru side.

    Thank you!

    Thread Starter greglakes

    (@greglakes)

    That’s fantastic – thanks! What are the url parameters that should be used to include and option variable in the cart?

    Plugin Author ThemeHigh

    (@themehigh)

    You can pass the value as shown below:

    ?add-to-cart=8&field_name1=field_name1_value&field_name2=field_name2_value&thwepof_product_fields=field_name1,field_name2

    You need to pass each field with its value. Then add additional argument thwepof_product_fields whose value equal to the comma-separated field names.

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can I add to cart from url with options info?’ is closed to new replies.