Print Page | Close Window

Problem with Discount Codes Filtered by Product

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=4316
Printed Date: 21-November-2024 at 5:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with Discount Codes Filtered by Product
Posted By: mattprice
Subject: Problem with Discount Codes Filtered by Product
Date Posted: 16-February-2011 at 11:32am
I am struggling to get a discount code filtered by product to work and was wondering whether anyone else had come across the problem.
 
I can get it to work when a the type of discount code is set to Percent Discount but not when the type of discount is a fixed amount. 
 
In V4 I expect the discount only apply to the eligible items in the cart, which is does when the discount is a %, but when a fixed amount is used the value is deducted off the whole cart.  I am thinking that this may be a bug which hasnt be noticed before because it will only be noticed under a specific circumstance.  I.e when the total cost of elligible items is less than the total value of the fixed discount. 
 
Regards
Matt



Replies:
Posted By: Hamish
Date Posted: 16-February-2011 at 11:52am
Hi Matt, I am not sure I understand. If the discount is $10 on an eligible product then that would be the amount deducted from the total.
What am missing / misunderstanding here?

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Greg Dinger
Date Posted: 16-February-2011 at 11:58am
Hamish - I read Matt's post a bit differently.  Seems he is reporting that when the discount is set as a percentage and against a product, it works.  When discount is set as an amount and against a product, the discount is applied to the entire order (instead of eligible products).

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: Hamish
Date Posted: 16-February-2011 at 12:20pm

Hi, you mean if it's a $10 discount that is being applied to every product in the cart, so 5 products gives $50 discount? Or that if the qualifying product is $2 and the discount is $10 they are getting $8 credit towards other items? Sorry. Being a bit slow to understand the issue.

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: mattprice
Date Posted: 16-February-2011 at 12:31pm

I am never very good at explaining things but Greg summed it up pretty well.

Lets say I have a $7 discount code that has certain excluded products set.
 
If my customer has a cart with $5 of items that qualify and $5 of items that do not qualify, Productcart will still apply the whole $7 discount to their order.  I.e the code has applied $2 of discount to the non qualifying items.  The customer is happy, but I am $2 out of pocket.
 


Posted By: Hamish
Date Posted: 16-February-2011 at 12:42pm
Hi Matt, I see what you mean. Is it a 'bug' though? I guess the question in response is why offer a discount that is more than the value of the products it is applied to. I'll shop on your store all the time :-)
Seriously though, I suggest setting it as a percentage discount with a maximum value. That should solve the issue.




-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: mattprice
Date Posted: 16-February-2011 at 12:55pm

Yes I agree Its an odd scenario and why it has not come up before as I explained in my first post.  We use the discount code to offer customers free samples.  They are entitled to £4 of free samples and anymore they must pay for.  We do not want the customers using the samples for other products however.   This is where the problem arises. 

Using the % discount will not solve this problem ?
 


Posted By: Hamish
Date Posted: 16-February-2011 at 1:02pm
try a 100% discount and set a maximum value of 4 gbp - I think that should work as you want it to. let me know if it does and I'll then update the wiki.

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: mattprice
Date Posted: 16-February-2011 at 1:14pm
Hi Hamish,  I am afraid this will not work because we allow customer £4.00 of free samples but anymore they must pay for.  Most samples are set at a cost of £1.00 each.  Whilst most people choose just 4 samples and checkout at zero cost (after applying the discount code) there are some that put six different sample products in their cart at a cost of £6.00.  They get 4 free and have to pay for the other 2.
 
A 100% discount code limited at £4 would not allow them any free samples under the above scenario.
 
 


Posted By: Hamish
Date Posted: 16-February-2011 at 1:37pm
Hi, Are you sure? The logic (in my head anyway) says it would. Give it a test, if you haven't already.  

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: mattprice
Date Posted: 16-February-2011 at 2:15pm
Hi Hamish,
 
I did try it but I am afraid it does not work.  The order value determines whether the discount code can be used or not.  As soon as the cart total exceeds £4 it doesn't matter what is in the cart the discount code becomes void.
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net