Shopping Cart Software Tutorial - Customizing
1. Header/Footer files
The shopping cart software can be customized easily to
changing its appearance for each merchant it serves.
Limited control over how each page generated by the script looks is achieved via header and footer files.
The header file is shown above any information the shopping cart
software places on the screen, the footer file below it.
The header and footer file are basically simple .html files. The
best/easiest way to create these is as follows :
Save a shopping cart generated web page to your hard drive.
Use your favorite .html editing tool to modify this page without changing any
of the shopping cart generated html code.
Once the page looks good to you,
save the html code above the shopping cart html to the header file and
save the html code below the shopping cart html to the footer file.
The header and footer files should be placed in the /merchants
directory on your domain. Their files name are as follows :
The "merchant_id" in the above file names is replaced by the merchant ID.
2. Checkout Link
To add a "Checkout Link" (allowing people to place their order) to
any page, add a link to a URL such as the below one :
The "merchant_id" in the above file names is replaced by the merchant
Replace "yourdomain" by your domain name without the
. extension. If, for some reason, you do not understand this, check
the shopping cart pages in the control panel. That software provides additional info.
3. View/Modify Basket Link
To offer shoppers a link they can use to view/modify their shopping cart
basket, create a link to a URL such as the below one
The "merch_id" in the above file names is replaced by the merchant
Replace "URL" by the URL to which you want people to
be sent if they click on the "continue shopping" link on the shopping
cart page. Replace "yourdomain" by your domain name without the
4. Setting Quantity
To allow shoppers to specify the quanity to add to the basket from
your .html pages, see below.
Classic style :
Change the 'command' line of .html to read as follows :
<INPUT TYPE="HIDDEN" NAME="command" VALUE="add">
add a form variable called 'quant' which holds the quanity. Example :
Modern shopping cart style :
Simply add a form variable called 'quant; to hold the quanity, see
'Classic style' for an example.