Not for official support
We do not provide technical support in this forum.
If you want to contact our customer support, please use our support form.
You are not logged in.
I want to create three new properties for the shopping cart class. they will be three quantities that correspond to three different times in the day. I've already created a table on the SS backend DB to record the data. I also have a script that will insert new values into the table. what i need to do on the frontend is pass the three new values around for future use. How and where can i accomplish this by minipulating the /published/SC dir?
Offline
graniteroad a couple of questions to you:
1. What quantities will you be storing in the database and how do they correspond to three different times in the day?
2. What do you mean by "passing the three new values around for future use"? What kind of use is planned?
3. What exactly will be recorded, and under which circumstances - automatically on a certain event or on user input?
Offline
1. the quantities will be the number of pills a user wants for the three different times in the day (morning, afternoon, and night). For example a user can choose to have 2 pills in the morning 1 in the afternoon and 1 at night or 3 in the morning 4 in the afternoon and 0 at night etc...
2. when i say "passing the three new values around for future use" i mean i want to store those values in a session. I figured if Having them in a session that will enable me to INSERT into the DB when the user checks out. The use is to remember the morning, afternoon and night quantities for shippment.
3. the three quantities, along with the orderID, itemID, customerID, and productID. Right now i'd like to concentrate on a certain event (when the user checks out).
Offline
The only thing I can suggest it playing with the index.php file in the /published/SC/html/scripts directory as it is called for each storefront (and backend) page including checkout. Besides, the checkout routines are defined in file /published/SC/html/scripts/modules/abstract/_methods/checkout.php - I think this should help you to find your way around the code.
Offline
can i add vars to the $cart_content? Right now i see there's $cart_content[i].quantity. is it possible to make new var. ex: amQuantity.
Offline