close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding Multiple Items to Cart

Thread began 8/18/2011 10:25 am by steve287725 | Last modified 10/24/2011 7:39 am by steve287725 | 2898 views | 9 replies |

steve287725

Adding Multiple Items to Cart

Hello there

I have a bit of a unique situation;

I am building a clothing site where the user selects type/style/colour then these parameters are passed through to the size selection page - all fine.
What I want to do is to return the contents of my sizes table (it is dynamically built through the backend) - S,M,L etc and put the results in a normal repeating region - again, all OK so far.
In the repeating region I then put a 'quantity' box against each size (default 0) for the user to complete and then add the lot (including the quantity) to the cart.
Also in the repeating region (inside the form) are hidden fields which hold the parameters already passed (same for all garments)
I followed the instructions for eCart v3 but this doesn't appear to work properly at all - it returns the last record quantity for all rows in the cart.
I don't need the checkbox filter, as I will only be passing the rows where the quantity is positive.
Is this possible?

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

this would take a lot of hand coding to accomplish, you would need an expert level of PHP, MySQL coding experience to get this to work, we will not be able to offer support for this.

Sign in to reply to this post

steve287725

No Reply?

I see a lot of assistance with this kind of problem - but no reply at all?

Sign in to reply to this post

Jason ByrnesWebAssist

like I said in my previous reply:

  this would take a lot of hand coding to accomplish, you would need an expert level of PHP, MySQL coding experience to get this to work, we will not be able to offer support for this.  
Sign in to reply to this post

steve287725

Thanks Anyhow - but . . .

OK - I am trying to accomplish this myself by following the principles in the Add Multiple Items to Cart Tutorial.
However - when I try to add the DataAssist Search I get a popup error as the attached image.

Do you have any idea what's causing this please?

Thanks

Steve

Sign in to reply to this post

steve287725

Got It

Sorted it - if it helps anyone else, having an input field named 'size' breaks the script.
Rookie error!

Sign in to reply to this post

steve287725

Add to Cart Button Not Working?

Hello

I have figured how to achieve this I think but for some reason the Add to Cart redirect just does not work.
I now have a method of obtaining a filtered recordset which is perfect and avoids the need for the checkbox in the example for adding multiple items - I simply want to add all the items in the pre-filtered recordset.

The Add to Cart Button returns the same page with just the button showing - no recordset - instead of redirecting the the cart page.

I have rebuilt this several times to no avail - same result.

I have attached the file - can you see where this is going adrift please?
I am up against it with this so any help would be appreciated!

Many thanks

Attached Files
populate_cart.zip
Sign in to reply to this post

Jason ByrnesWebAssist

add the following code just before the closing </form> tag:

php:
<input name="select_colour" id="select_colour" type="hidden" value="<?php echo((isset($_POST["select_colour"]))?$_POST["select_colour"]:""?>" />

<input name="select_style" id="select_style" type="hidden" value="<?php echo((isset($_POST["select_style"]))?$_POST["select_style"]:""?>" />
<input name="select_printoption" id="select_printoption" type="hidden" value="<?php echo((isset($_POST["select_printoption"]))?$_POST["select_printoption"]:""?>" />
Sign in to reply to this post

steve287725

Thanks

Jason

Will give that a go - I appreciate your time - thanks

Sign in to reply to this post

steve287725

More Info

Jason

Thanks for you help - also after a bit of digging I found this post that filled in the missing link and enabled me to achieve exactly what I was trying to do;

showthread.php?t=17282&highlight=multiple+items+quantities

I leave this here in case it can be of assistance to anyone else.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...