Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Bug? Coupons Display Incorrect Prices in Cart
- This topic has 8 replies, 3 voices, and was last updated 12 years, 9 months ago by admin.
-
AuthorPosts
-
February 9, 2012 at 5:36 pm #5510ZainParticipant
Hi,
I’m currently trying to use coupons but finding that they’re affecting the displayed price in the cart. This is a bit confusing as the displayed/advertised price (and subtotal) shouldn’t really be affected when a discount is applied.If anything the column for the items, sub-total and total price should also display another row showing the discount.
e.g.
Item 1 – £2.50
Item 2 – £3.50
Subtotal – £6.00
Discount – £2.00
<- this is where the discount should appear
Total – £4.00
At the moment, the calculations when the discount is added is *correct*, however it’s confusing to the customer as they can end up thinking that the price is different to what’s advertised on other pages. Now… I’m not a lawyer, but I’m sure that this could potentially lead to legal problems.
Note: if you want to see this happening, you can see it here.
http://www.themaverickshop.com/childrens-books/
- add the “Dog Detectives Gift Set” (item 6 – £12.99) to the basket
- then update the cart for domestic or international
- when the amount is over £15, apply the coupon “Shipping Discount”
Notice how the amounts for the items and the sub-totals get adjusted. The product price changes from £12.99 to £9.49. This should not happen as it is not the advertised price.
Please can the advertised price remain the same in the cart when the discount is applied?
Thanks in advance.
Cheers,
Zain
February 10, 2012 at 7:12 am #41793adminKeymasterThis is actually intended behavior. We distribute the discount amount among the items in the cart for security reasons. In the post payment verification stage the plugin checks the value of each individual item against their corresponding prices in the database to detect fraudulent payment notification. Without going too much into details… this approach makes it to where an expert hacker can’t send a Genuine IPN with a low total price amount (claiming it to be a discounted total price).
I can potentially add a feature that will allow you to show the original item amount beside the discounted item amount. The original item amount can be slashed out which will give it the effect of discounted price.
February 11, 2012 at 1:40 am #41794ZainParticipantHi,
Thanks for the explanation – security is always a great thing… although I’m just wondering how many expert hackers will be sending a Genuine IPN with a low total price amount and claiming it to be a discounted total price. Don’t get me wrong – it’s good that it’s there (especially if you have very high ticket items being sold), so it’s re-assuring to know that WP eStore has that level of protection.
As the cart is a form, isn’t it also possible to use hidden fields to store the data while still displaying the original advertised price?
Displaying the advertised price is important for a couple of reasons, mainly:
- it’s less confusing for the customer.
Seeing a different/cheaper price on the list leads to disappointment if they go back and find out it’s not true (or as advertised).
- I’m pretty sure there’s a legal obligation for prices to be clear.
This type of “changed” price could be seen as misleading the consumer.
If it is possible to slash out the original item amount beside the discounted amount, then I think that would be sufficient. As long as the advertised price is shown, then I think we can avoid both issues I mentioned above.
As a request, would it be possible to put the slashed out amount in a
<span>
or<div>
with class on it? That way, at least the styling could be changed for both the discounted and advertised amounts.Thanks again!
February 12, 2012 at 2:53 am #41795adminKeymasterAdded a new option to show the original item price (before discount) side by side of the discounted price. The original amount will be crossed out giving it a *discounted* effect.
Get a new build of the plugin from here:
https://support.tipsandtricks-hq.com/update-request
After the update open the “eStore_advanced_configs.php” file and find the following line of code:
define('WP_ESTORE_DISPLAY_ORIGINAL_ITEM_PRICE_BEFORE_COUPON', '0')
Once you find it change it to the following:
define('WP_ESTORE_DISPLAY_ORIGINAL_ITEM_PRICE_BEFORE_COUPON', '1')
February 13, 2012 at 11:24 am #41796ZainParticipantWow, thanks a lot for this. I really appreciate the help and am grateful for your excellent customer service! That’s why I always recommend WP eStore.
I’ll download it now and have a play with it. I’m sure it will definitely make things clearer to customers and also help overcome any potential issues with displaying an “advertised” price.
Thanks again!
Cheers,
Zain
February 14, 2012 at 9:41 am #41797ZainParticipantI’ve now tested this and it works. The original price is definitely being slashed. Thanks again for the help and support with this.
Can you point me in the right direction for the PHP file that displays the shopping cart? There are a few additional styling tweaks that I’d like to amend with the table (i.e. position of the slashed out discount and alignment of the elements).
Cheers,
Zain
February 14, 2012 at 12:03 pm #41798PeterMemberHi,
For any CSS styling and alignment tweaks you are encouraged to enter your changes in the custom style sheet file.
This has been especially created for customized tweaking like you are planning on doing.
For example after looking at your site with firebug a quick alignment of some of the components can be done with the following code:
.shopping_cart table tr td {
text-align: left !important;
}
February 15, 2012 at 10:10 am #41799ZainParticipantHi Peter,
Thanks for the CSS tip. I’m okay when it comes to stylesheets – I simply need to know the file to use to add a few more elements, like adding the title “Discount” and making this a column in itself.
I realise that this can cause issues with updating the plugin, however I tend to back-up all php files prior to working with them. In each updated new file, I place comments at the top indicating what amendments have been made (and dated). In the main “wp_cart_for_digital_products.php” file, I even update the description to ensure any future developers will know which files have been amended and to look at. This is a good reminder to myself.
Seeing as I’m the only Developer on the site I’m building, I think it’s okay.
Anyway… any idea what file I need to tweak to get the shopping cart just right?
Thanks in advance.
February 16, 2012 at 12:03 am #41800adminKeymasterCheck the “eStore_cart.php” file.
-
AuthorPosts
- You must be logged in to reply to this topic.