2. Links to the Shopping Cart

URL: http://www.templatehelp.com/preset/cart.php

Description: A shopping cart script. You should use parameters specified in the synopsis for http://www.templatehelp.com/preset/cart.php to let your visitors select and purchase templates, review what they have selected, make necessary modifications or additions to their shopping carts. You should create a preset in the Mytemplatestorage.com affiliate account to get a unique preset identifier (code). Refer to Mytemplatestorage.com User Guide for more detailed information on how to create and manage presets.

Synopsis: http://www.templatehelp.com/preset/cart.php?pr_code=<pr_code>&act=<action>&templ=<template_number1>%20<template_number2>%20<template_number3>

Parameters:

ParameterTypeDescription
pr_codestring (30 chars length)Your MyTemplateStorage preset identifier
actstringA parameter that allows to manage a shopping cart. Acceptable values:
  • add - to add a particular template to the shopping cart

  • empty - to empty the shopping cart (delete all items from the shopping cart)

  • del - to delete a particular item (template) from the shopping cart.

templlist of space separated integersitem number(s) of the template

Example: To add a template #9000 to the shopping cart you need to use the following script URL: http://www.templatehelp.com/preset/cart.php?pr_code=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&act=add&templ=9000

To delete a template #9000 from the shopping cart you need to use the following script URL: http://www.templatehelp.com/preset/cart.php?pr_code=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&act=del&templ=9000

To empty a shopping cart (delete all items from the shopping cart) you need to use the following script URL: http://www.templatehelp.com/preset/cart.php?pr_code=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&act=empty

To add several templates (#8541, 9632, 1, 4555, and 8523) to the shopping cart you need to use the following script URL:

http://www.templatehelp.com/preset/cart.php?pr_code=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&act=add&templ=8541%209632%201%204555%208523

To delete several templates (#8541, 9632) from the shopping cart you need to use the following script URL:

http://www.templatehelp.com/preset/cart.php?pr_code=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&act=del&templ=8541%209632

where xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx is your unique preset identifier (code).