Alternative basket method C
Topic: Shopping basket
Product: iNETstore 2002
When a user clicks "add to cart" an action is performed that
refreshes a page. The page that refreshes can either be the "View
Cart" page or, using the method described in this article, it can be the
same page where the user clicked the "add to cart" button.
When a user clicks "Add to cart" they remain on the same page where
they performed this action.
This is achieved by refreshing a shopping cart status bar. When a user clicks
add to cart the page they are on does not change. However, a small embedded
frame that contains a shopping cart status bar does refresh to identity how many
items and the total value of their cart.
View a sample store at http://svc005.srv002.inetserver-2.com/catalogue/methodc
- Download this template code update archive.
- Extract the files contained in the archive into a temporary folder.
- Open Windows Explorer and go to the temporary folder where you extracted
- In the next step you will be copying the files in the temporary folder to
your store. This will overwrite some of your existing files. Take a look at
the files that you will be updating. If you want to be able to "roll
back" the changes then you should backup your existing store files
- Copy all of the files from the temporary folder to your store folder
- Depending on the template you are using you may need to make on more
change before you have finished. The file that controls the layout of your
items when you click on a product category is called items.txt and is found
in the following directories:
If you are using item layout B, C, D, or E then you will need to rename
items-X.txt to items.txt in the directories above (where X = B, C, D, or E).
If in doubt which item layout you are using just try rename each item layout
one by one to items.txt and view your store to identify the correct layout.
- That's it. You can now view your store on your own machine and view the
changes. When you are ready you can upload the modified files to your web
In some isolated cases the page that refreshes may actually be the status bar
itself instead of the page that the user clicked "add to cart" on.
This is caused by caching on the local computer or proxy server. If such an event occurs
then the customer can simply click the "Items in cart" link and they
will return to the normal "view cart" page. There is no resolution to
this known issue and it occurs infrequently or not at all to the majority of