Marginbaba

How to redirect Add to Cart button to Checkout?

Opencart is the best shopping cart software for all eCommerce-related websites. if you are already using Opencart and missing some functions then I hope this functionality will add more sales.

Most Opencart users looking for this function so that customers can purchase products directly. Here I am giving you a script, by using this; you can create two buttons on the products page, the same as eBay.

The first button would be Opencart default “Add to Cart” and you will get the second button “Buy Now”. When the customer will click on the “Buy Now” button he will redirect to the cart or checkout page. So you can change your script by using the below code. (Please do not forget to take a 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 the line and save “product.tpl” file. (But you can use only one script, not both at the same time).

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

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

 

Exit mobile version