close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

discount codes case specific

Thread began 7/16/2012 6:10 am by sam308940 | Last modified 6/25/2015 5:54 pm by Ray Borduin | 859 views | 5 replies |

sam308940

discount codes case specific

how can i make it so the discount code is not case specific

right now if i have a discount code of SAVE10 and the user types in save10 or Save10 (or any other case combination) it does not apply the discount. i would like to make it so its not case sensitive.

thanks
sam

Sign in to reply to this post

Jason ByrnesWebAssist

you would need to edit the set session value code to use the strtolower() function to convert the entered coupon to lower case, then in your rule, make sure you use the lower case coupon code as well.

Send a copy of the cart page where the set session value behavior is applied, and I can tell you exactly what to change.

Sign in to reply to this post

rob256926

Jason, can you tell me where I can change this on my cart page?

Sign in to reply to this post

Ray BorduinWebAssist

If you post a copy of the cart page you are working on I can show you how to update the code.

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

rob256926

Here you go. Thanks

Sign in to reply to this post

Ray BorduinWebAssist

Change line 10 to:

$_SESSION["PromoCode"] = "".((isset($_POST["txtPromoCode"]))?strtolower($_POST["txtPromoCode"]):"") ."";

That will store the promo code as lower case so you just have to make all of your actual codes lower case and that will make it effectively not case sensitive.

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