SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2003
    0 Post(s)
    0 Thread(s)

    Help with Logic for Multiple Carts

    Hello. I'm buiding a site that allows registered members to sell/trade their used vinyl(lps, 12", etc.). Can someone help me with the logic I'm going about to acheive this and let me konw if I'm in the right direction? I hope someone can understand what I'm attempting to do.

    1. User browses through record listing that is compiled from all the members and adds selected records to cart.

    2. The shopping cart is setup with the basic info for the records (record name, artist, etc.) as well as the members_id for each record in the cart.

    3. When user proceeds to "checkout", they are presented with a summary of which records are bought from each member with the contact info for each member.

    What I'm having problems with is step #3. What is the best way to have a repeat region nested inside a repeat cart region? I've been attempting to filter the records in the cart by the member_id for each record, but can not get it to work. Has anyone ever worked on something similiar or can anyone offer any suggestions? If this sounds unclear to anyone, please let me know and I'll try to clarify it.

    I suppose that I should state that I am using Dreamweaver MX extensions for the basic code, but then modifying it to fit my needs.



  2. #2
    does not play well with others frezno's Avatar
    Join Date
    Jan 2003
    Munich, Germany
    0 Post(s)
    0 Thread(s)
    i don't know whether i got that right.
    Your problem is that the member info should only displayed once even if multiple records are in the cart from this member?

    In this case it's probabely easiest to make a query with GROUP BY member SORT BY record.
    We are the Borg. Resistance is futile. Prepare to be assimilated.
    I'm Pentium of Borg.Division is futile.Prepare to be approximated.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts