ATN Simple Cart Frequently Asked Questions
1) How to add it in a .php file?
If you downloaded atn-simple-cart.zip and extracted the files
in a sub folder /atn-simple-cart , it's enough to add such
line of php code:
at the position in your php file where you would like the cart to
2) How to add it in a .html file?
To add the cart in a .html file, you need
to insert an iframe line of code in it (see below).
Please note when using this option, you still need
to have PHP running on your server, since it's used
to process the cart, send email notifications to you and others.
The iframe code to be inserted in your html file (at the
position you would like the cart to show up) is:
<iframe src="atn-simple-cart/cart-iframe.php" width="100%" frameborder="0" height="100%"></iframe>
Please note sometimes you may need to limit the
height taken by the cart - you could do that by
setting the height in pixels using the height parameter
of the iframe tag. For example the line below will set it to 600px:
<iframe src="atn-simple-cart/cart-iframe.php" width="100%" frameborder="0" height="600"></iframe>
3) How to define my own products?
You could do that by editing the products.xml file
located in the /atn-simple-cart folder.
You may find below the content of the sample
products.xml file we are using in our demos:
<name>Some test product</name>
Here comes the description of the test product ...
<name>Another test product</name>
This is the description of the second test product ...
For every product you may use the following fields:
- the unique id of the product.
- is the name of the product
- price of the product, it should be entered without the currency symbol
- the product description
- you may fill a value in it, if you would like to have a Details button
linking to the product details page. If you leave it empty, then
no Details link will show up for the product.
4) Setting the currency symbol, PayPal currency code,
PayPal account and email address to be used for order notifications?
To change these values, you need to edit the configuration file -
config.xml located in the /atn-simple-cart folder.
You may check the content of the sample config.xml file below -