Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Link To Add Item To Cart And Then Go To The Cart Rate Topic   - - - - -

 

Posted 20 November 2018 - 04:34 PM #1

I have a link that I am using to add a specific item to the cart.  I am trying to accomplish the following:

 

1) Add the item to the cart

2) Don't show the popup about going to the cart or checkout

3) Take the user to the cart page

 

Here is my HTML.  The item gets added to the cart, the cart summary gets updated to reflect the added item but I cannot seem to figure out how to bypass the popup and most importantly, get the user cart page automatically.

 

<a href="{"checkout.add..117"|fn_url}"  data-ca-target-id="cart_status_6040" class="ty-btn ty-btn__primary ty-btn__big ty-btn__add-to-cart text-button cm-post cm-ajax cm-ajax-full-render cm-reload" id="order-button">ORDER</a>

 

Any guidance would be greatly appreciated!



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11405 posts

Posted 20 November 2018 - 07:18 PM #2

You can use a free script we've offered for years to do exactly this.  The comments should telly you what you need to do.

https://ez-ms.com/pr...out.pre.php.txt

 

Essentially you'd setup your href to be href="{"checkout.remote_add.[product_code].[optional quantity]"|fn_url}"

 

If you use the mode of 'remote_add' it should add to the cart and take them to the cart.  If you use 'remote_checkout' it will add to the cart and take them to checkout.  It was built to add products from remote sites.  But it works well for internal too.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • galtinbaeva
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 06-Dec 13
  • 3367 posts

Posted 21 November 2018 - 06:29 AM #3

Hello!

 

I will leave the link to our Buy Product Link add-on here if someone does not want to make it by themselves. The add-on creates a link that automatically adds product to cart and redirects customer to cart or checkout page (specified in the add-on settings). It is possible to specify SEO parameter for the link so that it looks better.


Simtech Development | sales@simtechdev.com | www.simtechdev.com
CERTIFIED CS-CART PARTNER | LICENSES | DEVELOPMENT | ADD-ONS | DESIGN | UPGRADE

Google Analytics Enhanced Ecommerce - get advanced ecommerce analytics