Post by lev » Fri Dec 19, 2008 10:30 am

Hey, I hope one of you guys (jty,hm2k,bruce,Qphoria) can help me out here..  ::)
I'm trying to make a jQuery-ish cart that dynamically drops "products"[services] into the "cart".
I use jQuery to inject divs into the document into my cart area. Each "product" can have several options for which quantities can be specified directly in this "cart".

When saving/parsing the cart to proceed to the next step, I can not figure out a good system of reading back the values for all [services] and the [options] for each service.

What I have so far is something like (in pseudo-code)


foreach [service]
 
    foreach [option]
         


I can do the dynamic adding and removing of services into the cart but when saving the whole thing I am having difficulty traversing the doc to pull out products selected and the options for each product.

Anyone have suggestions?

Attachments

???
cart_problem.JPG

lev
New member

Posts

Joined
Wed Apr 30, 2008 10:47 pm

Post by hm2k » Fri Dec 19, 2008 6:21 pm

I split this off from the other topic as it seemed totally unrelated.

To get help with something like this, you really need to setup a test case.

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by lev » Sat Dec 20, 2008 5:43 am

thanks for splitting it off.
What do you mean by test case?

lev
New member

Posts

Joined
Wed Apr 30, 2008 10:47 pm

User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Qphoria » Sun Dec 21, 2008 9:46 pm

thats priceless. never saw that site  ;D

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by lev » Tue Dec 30, 2008 10:09 am

http://letmegooglethatforyou.com/?q=who is James Wade Any Way  :o ;)  ;D


Ok so I actually have a live site with live data (not much traffic yet) that is work in progress.

Im not sure if there is way to unit test this stuff but if thats what you are talking about, thats not the problem. concept to working code is the problem :-\
Last edited by lev on Tue Dec 30, 2008 10:18 am, edited 1 time in total.

lev
New member

Posts

Joined
Wed Apr 30, 2008 10:47 pm

Post by lev » Sat Feb 21, 2009 7:07 am

I figured out a solution for this but i gotta say, I'm very disapointed in Quphoria and h2mk.

I though you guys get it. guess not ::)

lev
New member

Posts

Joined
Wed Apr 30, 2008 10:47 pm

Post by Qphoria » Sat Feb 21, 2009 8:40 am

I still don't get it

User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 42 guests