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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

2 Promo Code Fields

Thread began 10/13/2009 11:30 am by sam308940 | Last modified 10/13/2009 10:14 pm by sam308940 | 1143 views | 6 replies |

sam308940

2 Promo Code Fields

I have 1 promo code field that operates like normal promo code fields do. This is on the view cart page.

I have a 2nd one promocode field, that is for wholesale customers. They enter a wholesale code and get a discount.

The wholesale discount is supposed to be off the total.

ie if the subtotal is $100. and the promocode gives 10% off, the new subtotal would be $90.

so when a wholeslae customer enters thier code to get 30% off, i need it to be based on the $90 not the $100.

currently its giving a discount off the $100.

how do i change this?

Sign in to reply to this post

Ray BorduinWebAssist

You can probably set up your second promo-code as a "charge" with a negative value... that way you can check the "apply after discounts" checkbox to make it work on the adjusted value.

Sign in to reply to this post

sam308940

Hi Ray

so i would just enter the times -.30 to make a negative value?

but where is that apply after discounts checkbox?
im looking at the charges window and i dont see this.

sam

Sign in to reply to this post

Ray BorduinWebAssist

It only appears in the charges window when you use "based on cart subtotal"... and I think you may need the "0" in front of the decimal, so it would be:

times: -0.3

Sign in to reply to this post

Ray BorduinWebAssist

It only appears in the charges window when you use "based on cart subtotal"... and I think you may need the "0" in front of the decimal, so it would be:

times: -0.3

Sign in to reply to this post

sam308940

OK i did that. however - its not displaying anything for it.

i removed the item from discounts.
then i added a charge with all the same rules, based on subtotal, apply after discounts, and i tried -.3 and -0.3

it just simply seems to ignore it.

the only rules it has is
discountcode == pccw15
or
discountcode == PCCW15

I had a items > 0 in there, but removed it to test.
that didnt seem to change a thing.

any more ideas?

Sign in to reply to this post

sam308940

ok it did work. scratch my earlier email.

however i had to change the code for the charges to display on the page.

if ($pcccart->RuleLooperValue("Charges") > 0)

had to change this line to:
if ($pcccart->RuleLooperValue("Charges") <> 0)


THANKS

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