Add to Cart via URL link (1.5.x/2.x.x)

Add to Cart via URL link (1.5.x/2.x.x)
Product Code: 11443
Availability: In Stock
Price: $28.99
Qty:  
CLICK TO SEE IT WORKING ON DEMO SITE
Clicking this link will ADD the product to the cart.



Supported OpenCart Versions:
================
1.5.x
2.x.x


What does it do:
================
Adds the ability to add an item to cart by direct link (GET) rather than needing a form post (POST).
Also adds alternative methods of adding by product_id, sku, or model.
Supports options as well (See examples below)


Requirements:
==============
* You will need to have the latest vQmod engine installed (http://vQmod.com)


Main features:
==============
* Simple vQmod script plug and play. No files to edit or overwrite.
* Supports lookup by product_id, sku, or model
* Instantly adds to cart and redirect to cart page
* If product has required options that were not specified, it will redirect to the product page to allow proper choice
* Can be expanded to support ANY unique field (isbn, upc, location, etc)
* Passable Parameters:
- product_id
- model
- sku
- quantity
- option
- redirect (eg: checkout/checkout)

Examples of use:
==================
Single Product:
http://www.mysite.com/index.php?route=checkout/cart/addlink&product_id=47
Product with qty 2
http://www.mysite.com/index.php?route=checkout/cart/addlink&product_id=47&quantity=2
Product with option:
http://www.mysite.com/index.php?route=checkout/cart/addlink&product_id=47&option[8]=22
Product with option and qty 2
http://www.mysite.com/index.php?route=checkout/cart/addlink&product_id=47&quantity=2&option[8]=22
Product by sku with qty 5
http://www.mysite.com/index.php?route=checkout/cart/addlink&sku=ABC123&quantity=5
Product by model with qty 10
http://www.mysite.com/index.php?route=checkout/cart/addlink&model=MO2452&quantity=10
Product with qty 2 redirect to checkout
http://www.mysite.com/index.php?route=checkout/cart/addlink&product_id=47&quantity=2&redirect=checkout/checkout

Other great uses:
=================
To allow for creating custom invoices by adding an item to the cart with a custom price and then redirecting them right to checkout:

Combine with my Custom Price Product mod
Then call the url passing the custom price and redirect:
http://www.mysite.com/index.php?route=checkout/cart/addlink&product_id=33&option[227]=123.25&redirect=checkout/checkout

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



Powered By OpenCart
OpenCartGuru.com © 2025