close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Can this type of "add to cart" be done with E-cart - see example

Thread begun 6/05/2009 7:46 pm by cory246212 | Last modified 6/08/2009 7:15 am by Ray Borduin | 2386 views | 3 replies |

cory246212

Can this type of "add to cart" be done with E-cart - see example

Hello,
i need to develop a shopping system that would function like this example:
0?N=377%20710%201626&Ne=0&Ntt=Switches&Ntx=mode%20matchallpartial&page=CategoryDisplayLevel1&isLTokenURL=true&storeNum=5002&subdeptNum=9&classNum=294

where 1 product may have multiple associated products like a cleaning product, comes in 32oz, 1 gallon, 5 gallons, 10 gallons all different prices but the same product. you'll see if you view the link above how this website has the same idea set-up where it lists the associated products with a quantity box next to each and 1 add to cart button at the bottom.

does anyone have any idea how this could be accomplished, as well as how would one go about the set-up of the DB / inserting new product in an admin... would it be insert the main product and then the associated ones in as separate line items in another table related to this main product?... this is a little different then anything ive done before so i'm trying now to visualize how this whole would be set-up.

thanks

Sign in to reply to this post

Ray BorduinWebAssist

It can be done with a combination of eCart, DataAssist, good database design, and a little knowledge of common php and database concepts like SQL, get, post, and sesison variables.

In terms of this database... They are probably all separate products, they are just grouped and displayed together on a single page. They share a description and picture, but it looks like most product details are unique. Most likely it is done with a joined grouping table and/or field in the products database. Descriptions may be included in the joined grouping table if a particular set of products share something like a description on the group level.

Admin would probably have to be done in a multiple step operation and would be assisted by DataAssist server behaviors and wizards.

Sign in to reply to this post
Did this help? Tips are appreciated...

cory246212

Thanks Ray,
what about the quantity boxes with 1 "add to cart" button how would that be set-up?, is there any documentation for something like this in e-cart?

Sign in to reply to this post

Ray BorduinWebAssist

I don't know of any tutorials on this specific topic.

You could probably name your quantity field including the productID from the database like:

name="Quantity_Of_<?php echo($row['id']); ?>"

Then when submit it pressed, insert from the unfiltered recordset getting the quantity from the associated form field referenced by productID. Make sure blank ones are set to 0 and they should be skipped in the cart as well.

Sign in to reply to this post
Did this help? Tips are appreciated...

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...