Buy Now Link Structure

A sample Buy Now Link will look something like this :
http://example.com/?buy-now=37,22&qty=2,1&coupon=50_percent_cart&ship-via=flat_rate&page=104&with-cart=0

Above Buy Now link structure explained :

  • buy-now=37,22: 37 & 22 are product ids. These products will be added to cart
  • qty=2,1: The product whose id is 37 will be added to cart with 2 quantity & product whose id is 22 will be added with 1 quantity
  • coupon=50_percent_cart: Coupon whose code isĀ 50_percent_cart, will be applied to cart
  • ship-via=flat_rate: The order will be shipped via Flat Rate shipping method
  • page=104: 104 is id of the page on which customer will be redirected to. If it is not set, then Buy Now will try to complete customer’s order
  • with-cart=0: When 0, previous cart (if available) will not be combined with products of buy now link. After completing buy now process, previous cart will be restored. When 1, all the products available in previous cart will be combined with products from buy now link and if automatic payment settings are in-place, payments will also be processed.
« Back to WooCommerce Buy Now