close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How to include product specific discounts to my current cart..??

Thread began 7/22/2011 12:38 am by angelleye | Last modified 7/22/2011 5:28 pm by angelleye | 1454 views | 6 replies

angelleye

The looping and general PHP coding is not a problem for me. It's just the logic for setting up the rules in eCart that I always get lost with.

I'm not really sure how the end user could typo anything...they're just selecting which products belong to a discount code as they create it. Nothing really to mis-type.

So then in my "apply discount" script I've already got the exploded value for product_ids in an array and I can loop through those no problem. What I don't really get is how to apply that to the shopping cart items.

Right now my discounts just work on the entire order. Even after looping through each of the valid product IDs for a given code I don't see how to get it to apply to only that single line item on the cart. The best I can seem to get to is to either apply the discount or not based on whether an item is in the cart, but then it still applies to the entire order instead of just that one line item.

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