Title: Query String in Woocommerce
Last modified: August 21, 2016

---

# Query String in Woocommerce

 *  [sperkins95](https://wordpress.org/support/users/sperkins95/)
 * (@sperkins95)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/query-string-in-woocommerce/)
 * I’ve finally sorted out my issue of a custom cookie filable form for woocommerce.
   But I’m stuck on a query string for the add to cart function.
 * I want to have a query string that adds the product to the cart and adds a string
   line to the order.
 * So for instance it would show:
 * Custom Box
    – Banana Nut (2), Chocolate Chip (3), Classic (5)
 * I know the add to cart query string is:
    ?add-to-cart=
 * With the product id following that. I know how to add attributes and I’m guessing
   it has something to do with that. I tried:
    ?add-to-cart=1974&attribute_custom-
   selection=this%20very%20long%20string
 * But haven’t had any luck. Could anyone steer me into the right direction?
    Thanks!
 * [http://wordpress.org/extend/plugins/woocommerce/](http://wordpress.org/extend/plugins/woocommerce/)

The topic ‘Query String in Woocommerce’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [query strings](https://wordpress.org/support/topic-tag/query-strings/)

 * 0 replies
 * 1 participant
 * Last reply from: [sperkins95](https://wordpress.org/support/users/sperkins95/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/query-string-in-woocommerce/)
 * Status: not resolved