How to redirect Add to Cart button to Checkout or Shopping Cart in Opencart 2

Opencart is best shopping cart software for all ecommerce related website. if you are already using Opencart and missing some function then I hope this functionality will add more sales.

Most of Opencart users looking this function so that customer can purchase products directly. Here I am giving you script, by using this; you can create two button on products page, same as eBay.

First button would be Opencart default “Add to Cart” and you will get second button “Buy Now”. When customer will click on “Buy Now” button he will redirect to cart or checkout page. So you can change your script by using below code. (Please do not forget to take backup original file (product.tpl) before changing anything).

Steps:
Logging to your hosting or access web files
public_html/catalog/view/theme/ default/template/product

Edit “product.tpl” file and find this

</div><!– End #product –>

paste any one script above line and save “product.tpl” file. (But you can use only one script, not both at same time).

Download Code for redirect Opencart “Buy Now” button to Shopping Cart:

Download Code for redirect Opencart “Buy Now” button to Checkout page:

Please let us know if it is working tricks for you or not. We have already tested on Opencart 2.1 it is working great.
See demo on www.MarginPrice.com and www.solid4you.in websites.

Pradeep Tomar is a Passionate blogger and Web Developer. I am doing blogging since 2011 & write about Blogging, SEO, Social Media Marketing, Internet Marketing, Make Money Online, Shopping Cart solution, & Technology.

Tags

6 thoughts on “How to redirect Add to Cart button to Checkout or Shopping Cart in Opencart 2

Leave a Reply