Installing Shopping Cart- Need Help With Code Placement
Posted: Fri Sep 02, 2011 1:34 pm
Hello,
Currently I have a eshop/checkout system with my hosting provider (http://www.rocksdiamonddeals.net/Shop_R ... dDeals.php) and i received help with them in copying the files from their location (eshop) to xataface/modules/ShoppingCart like step on in the installation instructions at http://www2.xataface.com/wiki/ShoppingCart.
Now i am trying to do the remaining steps:
2. Add the following line to the [_modules] section of your conf.ini file:
modules_ShoppingCart=modules/ShoppingCart/ShoppingCart.php
Q. Where do i find this file? there are a few by this name.
3. Add the following to the beginning of your index.php file?:
function __autoload($class){
if ( $class == 'ShoppingCart' ) require_once 'modules/ShoppingCart/lib/ShoppingCart/ShoppingCart.class.php';
}
Q. Where do i find this file? there are a few by this name.
4. In the fields.ini file for any table whose records you wish to represent items for sale, add the following:
[__implements__]
InventoryItem=1
Q. Where do i find this file? there are a few by this name. Also, I dont understand this table stuff... what does that mean?
5. Specify which fields should be used for the item description, price, width, height, length, and weight in the fields.ini file for each table whose records you wish to represent items for sale by adding the following directives to the appropriate fields:
ShoppingCart.description=1
ShoppingCart.unitPrice=1
ShoppingCart.weight=1
ShoppingCart.width=1
ShoppingCart.height=1
ShoppingCart.length=1
E.g. if your table has a field named ""price"" that you want to represent the unit price, you would have something like:
[price]
ShoppingCart.unitPrice=1
The shopping cart module will make its best guess on which fields to use for these values if they are not explicitly specified.
Q. Where do i find this file? And again with the table stuff???
6. Specify the paypal account where money should be deposited by adding the following to your application's actions.ini file:
[view_cart]
paypal.account="youremail@example.com"
Q. Where do i find this file?
I understand the concept of what is required, i am just not familiar with the practice of doing this...
I will attach photos of where i have the ENTIRE shop for my eshop that i transfered to use with the auctions... can you tell me if i need to only use the 'cart' file or the whole thing, or if i need a whole new shopping cart... i would really prefer to use the same cart to make my life easier, but im in waters way above my head at this point. Ill download a new cart if absolutely necessary... but i would rather not.
Please help me in very simple words... dont say something like ccs or css what ever it is... i dont kow what that mean lol!
The cart file code is located here
https://gator1582.hostgator.com:2083/fr ... =&basedir=
Thank you
Currently I have a eshop/checkout system with my hosting provider (http://www.rocksdiamonddeals.net/Shop_R ... dDeals.php) and i received help with them in copying the files from their location (eshop) to xataface/modules/ShoppingCart like step on in the installation instructions at http://www2.xataface.com/wiki/ShoppingCart.
Now i am trying to do the remaining steps:
2. Add the following line to the [_modules] section of your conf.ini file:
modules_ShoppingCart=modules/ShoppingCart/ShoppingCart.php
Q. Where do i find this file? there are a few by this name.
3. Add the following to the beginning of your index.php file?:
function __autoload($class){
if ( $class == 'ShoppingCart' ) require_once 'modules/ShoppingCart/lib/ShoppingCart/ShoppingCart.class.php';
}
Q. Where do i find this file? there are a few by this name.
4. In the fields.ini file for any table whose records you wish to represent items for sale, add the following:
[__implements__]
InventoryItem=1
Q. Where do i find this file? there are a few by this name. Also, I dont understand this table stuff... what does that mean?
5. Specify which fields should be used for the item description, price, width, height, length, and weight in the fields.ini file for each table whose records you wish to represent items for sale by adding the following directives to the appropriate fields:
ShoppingCart.description=1
ShoppingCart.unitPrice=1
ShoppingCart.weight=1
ShoppingCart.width=1
ShoppingCart.height=1
ShoppingCart.length=1
E.g. if your table has a field named ""price"" that you want to represent the unit price, you would have something like:
[price]
ShoppingCart.unitPrice=1
The shopping cart module will make its best guess on which fields to use for these values if they are not explicitly specified.
Q. Where do i find this file? And again with the table stuff???
6. Specify the paypal account where money should be deposited by adding the following to your application's actions.ini file:
[view_cart]
paypal.account="youremail@example.com"
Q. Where do i find this file?
I understand the concept of what is required, i am just not familiar with the practice of doing this...
I will attach photos of where i have the ENTIRE shop for my eshop that i transfered to use with the auctions... can you tell me if i need to only use the 'cart' file or the whole thing, or if i need a whole new shopping cart... i would really prefer to use the same cart to make my life easier, but im in waters way above my head at this point. Ill download a new cart if absolutely necessary... but i would rather not.
Please help me in very simple words... dont say something like ccs or css what ever it is... i dont kow what that mean lol!
The cart file code is located here
https://gator1582.hostgator.com:2083/fr ... =&basedir=
Thank you