Title: create external purchase button
Last modified: June 22, 2018

---

# create external purchase button

 *  Resolved [millonario](https://wordpress.org/support/users/millonario/)
 * (@millonario)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/)
 * Hello, in my case I use woocommerce to provide a membership … what I have is 
   a sales letter of the subscription, the problem is that I created the product
   and now I do not know how to add a link so that the user can subscribe to the
   product without having to access the url of the product ..
 * What I want is to create a button on a normal page, that the client to click,
   go directly to buy that product … is it possible to do that? as?
 * Another problem that I find, is that every time the user wants to buy the product
   but it is raised, go out and buy the product again, add 2 products to the cart,
   put in the options that the user can only buy a product, and when the user clicks
   for the second time, it appears that he can not buy that product and nothing 
   else comes out …
 * So what I would like is to create a button for a simple purchase, and not a cart..
 * I hope you can help me since I have tried everything but it is difficult
 * thank you very much.
    -  This topic was modified 7 years, 11 months ago by [millonario](https://wordpress.org/support/users/millonario/).

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

 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10425224)
 * Hi there,
 * If I understand correctly, you’re essentially looking for a way where users can
   buy a product without having to go to the single product page (e.g. in a blog
   post).
 * If that’s correct, you can use an add-to-cart shortcode for that. Here’s a guide
   on how to do that: [https://docs.woocommerce.com/document/woocommerce-shortcodes/](https://docs.woocommerce.com/document/woocommerce-shortcodes/)
 *  Thread Starter [millonario](https://wordpress.org/support/users/millonario/)
 * (@millonario)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10425442)
 * Thank you so much,
 * I imagine it refers to this shortcode: [add_to_cart_url id=”99″]
 * The doubt that I have, is that every time the customer clicks on this link, an
   extra product is added and the price multiplies. There is a way to always have
   a single product to the carraro every time the customer clicks. link?
 * Mine is a service with a fixed monthly payment, it does not make sense for this
   payment to multiply …
 * I try to make the customer can only buy a product with each order, but it gives
   me errors .. it detects that the car already has that product and puts error 
   to the client ..
 * If you could help me I would be very grateful ..
 * Thank you
 *  [Kenin](https://wordpress.org/support/users/kbassart/)
 * (@kbassart)
 * Automattic Happiness Engineer
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10425780)
 * Hi there,
 * >The doubt that I have, is that every time the customer clicks on this link, 
   an extra product is added and the price multiplies.
 * The add to cart action will always add a product to the cart for each time the
   button is pressed.
 * >There is a way to always have a single product to the carraro every time the
   customer clicks. link?
 * If you want to limit the quantity to a single product per order you can do so
   by toggling the “Sold individually” setting on the Inventory tab on the product
   settings page here: [http://cld.wthms.co/ulc0Vx](http://cld.wthms.co/ulc0Vx)
 * >I try to make the customer can only buy a product with each order, but it gives
   me errors .. it detects that the car already has that product and puts error 
   to the client ..
 * If you’ve already set the product to “Sold Individually” you will see an error
   when the add to cart button is pressed a second time. This is the correct behavior
   as it’s telling the customer that there is a product in the cart, and it can 
   only be added once.
 *  Thread Starter [millonario](https://wordpress.org/support/users/millonario/)
 * (@millonario)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10426139)
 * Thanks for your help…
    But what I want to offer is a subscription .. it’s just
   a unique product, for me it does not make sense to add many subscriptions to 
   the cart …
 * What I want to do, is exactly the same as this man: [https://www.misingresospasivos.com/quieres-aprender-a-ganar-dinero-en-internet-copiame/?utm_source=acceso-login&utm_medium=acceso-login&utm_campaign=acceso-login](https://www.misingresospasivos.com/quieres-aprender-a-ganar-dinero-en-internet-copiame/?utm_source=acceso-login&utm_medium=acceso-login&utm_campaign=acceso-login)
 * If you click many times to subscribe, the same price will always appear … and
   you will not be adding more and more products ..
 * Your website is made with woocommerce, so I understand that there is a way to
   do this ..
 * If you can help me do the same, I would appreciate it
 *  [wbrubaker.a11n](https://wordpress.org/support/users/wbrubaker/)
 * (@wbrubaker)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10430010)
 * Howdy 🙂
 * Am I correct that the ‘sold individually’ setting achieves what you want to achieve
   but you do not want the error message to be displayed? If so, that will require
   some custom code to remove that particular error message. Here is an example 
   code snippet that will remove that particular message: [https://gist.github.com/WillBrubaker/3f868bf669357c01803db2a6bd474582](https://gist.github.com/WillBrubaker/3f868bf669357c01803db2a6bd474582)
 * Kind regards,
 *  Thread Starter [millonario](https://wordpress.org/support/users/millonario/)
 * (@millonario)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10430828)
 * Hello, I put the code that tells me, it does not show me the error message, but
   it does not teach me anything ..
 * I have the following shortcode [add_to_cart_url id=’246′], when clicking on nothing
   happens .. I would like to click, go to pay for the product but only one product..
 * I think that woocommerce is not designed to presetar service is rather designed
   to be a shopping cart 🙁
 *  [wbrubaker.a11n](https://wordpress.org/support/users/wbrubaker/)
 * (@wbrubaker)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10433231)
 * I can’t possibly know how the example you provided has been configured but in
   my testing I have found one way to possibly achieve this.
 * 1) Set the add to cart behavior to “Redirect to the cart page after successful
   addition” – that setting can be found in WooCommerce -> Settings -> Products
 * 2) Set the cart page to be the checkout page under WooCommerce -> Settings ->
   Advanced, e.g:
    [](http://cld.wthms.co/AkLnhE)
 *  Thread Starter [millonario](https://wordpress.org/support/users/millonario/)
 * (@millonario)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10433533)
 * I do not care … I do not want to take more time and I appreciate the intention
   of helping me, I sent him to the blog to ask how he did it and I will investigate
   online to see if I find something related … thank you very much for all aid
 *  Thread Starter [millonario](https://wordpress.org/support/users/millonario/)
 * (@millonario)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10434024)
 * I want to leave a piece of advice … When the option “Single product per order”
   is enabled and at the same time the option of “Why not buy this product twice?”
   in the cart … in this way users like me, we could just hide the message and that’s
   it … and at the same time other people would not be hurt at all since the client
   will be in the payment area … which is where there are more possibilities for
   the customer to buy, in the change if the sale the message of the store … can
   interpret the message and leaving the store that there is some error …
 * Well, it’s just a piece of advice, in my case I’ll have to hire a programmer 
   to solve it.
 * Greetings and success
 *  [Kenin](https://wordpress.org/support/users/kbassart/)
 * (@kbassart)
 * Automattic Happiness Engineer
 * [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10436086)
 * Hi there,
 * Thanks for the update on this issue. We’ll go ahead and mark this as resolved
   at this time.

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

The topic ‘create external purchase button’ 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/)

 * 10 replies
 * 4 participants
 * Last reply from: [Kenin](https://wordpress.org/support/users/kbassart/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/create-external-purchase-button/#post-10436086)
 * Status: resolved