Add to Cart via URL link
Files
File Name |
Compatible Versions |
ATC-Via-Link (Latest) |
v1.5.1.x, v1.5.2.x, v1.5.3.x, v1.5.4.x, v1.5.5.x, v1.5.6.x, v2.0.0.x, v2.0.1.x, v2.0.2.x, v2.0.3.x, v2.1.0.x, v2.2.0.x |
Description
Supported OpenCart Versions:
================
1.5.x
2.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:
==================
Product with no options (product_id):
http://www.mysite.com/index.php?route=checkout/cart/addlink&product_id=47
Product with qty of 2 (product_id):
http://www.mysite.com/index.php?route=checkout/cart/addlink&product_id=47&quantity=2
Product with 1 option (product_id):
http://www.mysite.com/index.php?route=checkout/cart/addlink&product_id=47&option[8]=22
Tags
Comments