WebsiteX5.info - The ultimate guide for Incomedia's WebsiteX5

Search this site

Go to content

Main menu:


Enhance your shopping cart | Some final adjustments…

How to... > Shopping cart > An enhanced shopping cart

You have to make some final adjustments to get things working as they should do.


Make a link to your shopping cart

At the bottom of each product page you will have to create an extra text block with a link to the shopping cart page, so your customers, when they have finished ordering can go to the shopping cart to complete their order. The WebsiteX5 shopping cart page is imcart.html.


The message language

The message which is given when the customer adds items to his shopping cart is in English. If you want to change this in your own language you will have to edit the file js/x5cartextra.js.

Open this file with notepad and look for the two alerts near the bottom of the file. You can change the text within the quotes to the language of your website. For example in Dutch this could become:

if (iQty==1) {
alert ("Er is 1 produkt toegevoegd aan uw winkelwagen.");
}
else {
alert ("Er zijn " + iQty + " produkten toegevoegd aan uw winkelwagen.");
}

You can now test. Please check to see if the correct products are added to the shopping cart!


Final issues

  • This is a first version. I have kept is as simple as possible to make it easy for you to implement the code in your own webpage. If you have any suggestions for improvement please don't hesitate to contact me.
  • Disclaimer: You can use this code at your own risk. I can not take any responsibility for any damage that might happen when you use the code which is described on this webpage.



Back to content | Back to main menu