close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Adding Boxed Sets vs Singles

Thread began 5/05/2010 8:18 am by Art | Last modified 5/06/2010 11:51 am by Art | 2691 views | 9 replies |

Art

Adding Boxed Sets vs Singles

I have a page that displays boxed sets of products. I have an add to cart object on the page and when they click this, it adds a boxed set of 24. This adds to the cart when it reloads the page while storing the sale price, or the regular price in a Session Variable.

I'm trying give the option of adding Single items but when I do this, it fails.

Basically, if I add the boxed to the cart, it does this but when I add the single, it used the "boxed price information. Same goes if one adds the single first, it then uses that when you add a boxed second.

I've tried killing the session after it reloads.
I've tried changing the partID so that it's different for boxed
I've tried going to a new page but it keeps that session info.

Anyone have some ideas? I'm sort of stuck.

Sign in to reply to this post

Art

By the way, how do you add multiple values ?

<input type="hidden" name="carname_eCart_1_ID_Add" value="<%=(rs.Fields.Item("ProdID").Value)%>">

This is asp (VB) and I want to try to add to the partID that is already saved. What's the correct way of adding "-boxed"

I'm just not sure how that can be appended to the following
... rs.Fields.Items("ProdID").Value)...

Sign in to reply to this post

Art

I think I've narrowed down the problem. I think it's doing this because it is using the ID (integer) to "track" the items that get added so when a product, with the same ID gets added, it uses the same pricing.

I don't think this really helps me so much because I don't know if it really is part of the "problem."

Just thinking out loud.

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, you need to use unique ids for each product.

Sign in to reply to this post

Art

I don't know how to append the value in VBScript. Any ideas?

Sign in to reply to this post

Art

Originally Said By: Jason Byrnes
  Yes, you need to use unique ids for each product.  


I know you guys are moving fast away from supporting VB ASP but anyone there know hot to append to a value?

<input type="hidden" name="cartname_eCart_1_ID_Add" value="<%=(rs.Fields.Item("ProdID").Value)%>">

I've tried putting it in different places in this above but nothing worked. For some reason, it's hard to query this and get good results on Google...

Of course I would probably be better off just dumping this completely and use a different method to do this.

Sign in to reply to this post

Art

<input type="hidden" name="cartname_eCart_1_ID_Add" value="<%=(rs.Fields.Item("ProdID").Value)%>">



The answer is this: <%=(rs.Fields.Item("ProdID").Value & "333")%>">

However, that didn't do it. When I put this in, no error shows up but it also doesn't actually add anything.

I'm not sure what to do now. Plan A, B and C all failed...

Sign in to reply to this post

Jason ByrnesWebAssist

the single item and the box set should be entered into the database as separate items so that each item will have a unique ID.

Sign in to reply to this post

Art

These "Boxed" items are more like "options" because they have the same product ID as the singles; I've simply multiplied the quantities to come up with a "boxed set." Because of this, I don't have product IDs for boxed items.

To make it more convoluted, this is a dealer area where they get special pricing.

I guess what I need is a graduated quantity pricing system. If they order 1 item, it's $5 each. If they order over 24 (or reach the boxed qty), it's $4 each.

If I had a consistent value like a Percentage off each, I could make a rule for this. However, because a rule is applied inconsistently to all of these items, I can't get my head around what a "general rule" would look like.

In addition, some of the boxed sets come in a box of 24 while others in a box of 6 so the rule would need to pull in those minimum numbers and apply the discount if those numbers were reached...

Sign in to reply to this post

Jason ByrnesWebAssist

your boxed set and single item should have unique ID's if they have the same ID, they will not be treated by the cart as separate items.

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