Announcement

Collapse
No announcement yet.

I'm looking for a way to add a product to the shopping cart from anywhere on the site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I'm looking for a way to add a product to the shopping cart from anywhere on the site

    The following URL shows you the format to follow to add a product to the cart from anywhere.

    HTML Code:
    http://your.URL/cgi-bin/ca000001.pl?SID=3&PAGE=PRODUCT&Q_7=5
    The SID parameter should be the section ID of the section where the product can be found. You can figure out the exact SID by inserting the 'SectionID' variable somewhere in your store pages and see what it becomes in the previewed page.

    The Q_ parameter informs the script about the product reference and the quantity. The product reference is the (CGI encoded) string prefixed by Q_ while the quantity is the parameter value (prod ref is 7, qty is 5 in the above example).

    If you are adding from outside the 'acatalog' folder, then ensure you add
    HTML Code:
    ACTINIC_REFERRER=http://your.URL/acatalog/
    onto the end of the URL.

    Obviously this works only for products where components, attributes, date or other info prompts are not used. However these more complex products can also be added to the cart on similar way but more parameters are required (check the HTML source of your product page for hidden input parameters to see what else required in these cases).

    The result of this script call may vary depending on the "Shopping mode" setting of the section where the product is located. E.g. if your product is located in a section where "Quantity on Product Page" shopping mode is used then using this link the product will be added to the cart and a bounce page will drop you back to the last used shop page, but if the shopping mode is "Quantity in Shopping Cart" then the cart will be displayed clicking on the link.

    Note that this solution is not supported by SellerDeck Software therefore you should use this at your own risk.
Working...
X