close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Buy specific item get 1 lesser value free

Thread began 7/26/2011 7:44 am by sandy259886 | Last modified 7/26/2011 12:42 pm by sandy259886 | 4158 views | 2 replies |

sandy259886

Buy specific item get 1 lesser value free

I want to do a promo where if you buy item number "X", you get a free item of equal or lesser value free. I have excluded products, so I've added a field to the database that puts a "discountable price" in the cart and all promos work on that figure rather than the subtotal of the cart.

I'm not quite sure where to start. I know my rule will begin with the item present, then, what?

Sign in to reply to this post

Ray BorduinWebAssist

It would take custom coding to pull this off. It isn't going to be covered by a rule.

You'd have to add php code to loop through the cart, find the most expensive item less than the promo item and then create a session variable to store the amount.

The rule would just discount the amount stored in the session variable... but you'd need custom code to determine how much. It is only a handful of lines of php code, but you'd need to be able to write php to loop through an array and set the session variable by hand.

Sign in to reply to this post

sandy259886

I'll give it a go

Thanks! I think I might be able to manage that. If not ... may be back for a custom quote.

Sign in to reply to this post

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