Title: Custom Button
Last modified: October 3, 2019

---

# Custom Button

 *  [lsilver](https://wordpress.org/support/users/lsilver/)
 * (@lsilver)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/custom-button-13/)
 * Will this plugin work if the product is added to a cart via a custom button using?
   add-to-cart=PRODUCTID?
 * That’s how I have it setup and it’s just adding it to the cart, no redirect.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Ren Ventura](https://wordpress.org/support/users/renventura/)
 * (@renventura)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/custom-button-13/#post-11993463)
 * Hi, there! Yes, adding the `?add-to-cart=ID` query param will trigger the redirect.
 *  Thread Starter [lsilver](https://wordpress.org/support/users/lsilver/)
 * (@lsilver)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/custom-button-13/#post-11994315)
 * Hmm, that’s not working on my end. Any clue what might be going on?
 *  Plugin Contributor [Ren Ventura](https://wordpress.org/support/users/renventura/)
 * (@renventura)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/custom-button-13/#post-11994981)
 * Hard to tell without seeing. My first suggestion would be to deactivate all of
   your plugins except for WooCommerce and the Redirects plugin, switch over to 
   a default theme, and try again. This will help determine if there may be a conflict
   somewhere.
 *  [jakesan](https://wordpress.org/support/users/jakesan/)
 * (@jakesan)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/custom-button-13/#post-12398817)
 * Pro version has different redirects for each selected variation combinations.
 * for ex size = large , color=red , gift wrapping = yes
 * so how should i enter the code for the custom button
 * i guess ?add-to-cart=ID won’t work with variations
 *  Plugin Contributor [Ren Ventura](https://wordpress.org/support/users/renventura/)
 * (@renventura)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/custom-button-13/#post-12398938)
 * [@jakesan](https://wordpress.org/support/users/jakesan/) You can add a variation
   to the cart by using the variation ID instead of the product ID. `?add-to-cart
   ={variation_id}`

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Custom Button’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-add-to-cart-custom-redirect/assets/icon-256x256.
   png?rev=2156392)
 * [Add to Cart Custom Redirect for WooCommerce](https://wordpress.org/plugins/woocommerce-add-to-cart-custom-redirect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-add-to-cart-custom-redirect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-add-to-cart-custom-redirect/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-add-to-cart-custom-redirect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-add-to-cart-custom-redirect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-add-to-cart-custom-redirect/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ren Ventura](https://wordpress.org/support/users/renventura/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/custom-button-13/#post-12398938)
 * Status: not resolved