Jump to content

adding Lots items and single item to a shopping cart help!


co.ador

Recommended Posts

I have a two different tables for two types of item list one called a single item list and another list called lot items that uses the same item name field from the single item list. Then the second table is used for the prices, sizes and amount of pieces per lot. the single item list is adding each item as expected, a single item come from the single item list of First Case type as I called and then it's added to the cart with one price. Now the lot item list  is expected to display differently I have tried where it will has different lot sizes and prices displayed in the cart. I have tried some foreach loop inisde the while loop and another numbers of things but then it won't quite display ok.

 

the link with an dynamic illustration is http://www.nyhungry.com/listofitems.php

 

The first page after clicking the link has a single list of items and a lot list of items one below the other. Both of them links to the cartexample.php but only one sucessfully display it's role and it's the sinlge list and lot item list will at this moment is displaying the samething the single item list add to the cart but if you take a look at the picture found in the bottom of cartexample.php then you will see that the First Case Type and the Second Case Type are expected to display different.

 

Thank you.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.