Forum
Welcome, Guest

Bug in coupon if item not purchased
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Bug in coupon if item not purchased

Bug in coupon if item not purchased 1 year, 1 month ago #2378

  • renpal
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
I have 3 coupons for testing, one Gift Coupon for all products, one Permanent Coupon for all products, Permanent Coupon for one product.

I place the product on the cart and use the Coupon for that specific item, but, What if I change my mind and don't purchase it?, I delete from my cart that product that had that particular coupon and if I want to buy a different product with a different coupon I can't do it, the Coupon box no longer appears and in the Total we get a 0.00 discount. I need to be able to promote different products with different coupons, yet if the purchase is not made I need the client to be able to apply a different coupon without having to flush everything from the cart and erase their cache and close the browser to do it.

Also I did try to remove the component and even if I do it the coupon new layout still appears on VM. I need to test other options but I don't know how to uninstall Target Coupon For Virtuemart.

Please help me out!

cart_after_coupon.png


cart_newcart_after_delete.jpg

Re: Bug in coupon if item not purchased 1 year, 1 month ago #2379

  • nicholas
  • OFFLINE
  • Moderator
  • Developing for Joomla since it was born!
  • Posts: 1197
Hello -

We'll post in a minute the files that you just need to rename and replace with the renamed original files to back out Target Coupon. What you are looking at, however, is core VM functionality. You will get the same issue on unmodified Virtuemart. We have code in our system that if the user deletes a product for which a product-specific coupon exists, then we will back out the coupon to prevent its use.

Once you reverse our code, you can confirm that core VM fails to redisplay the coupon box under the same condition as shown in your screen captures.

So its not our bug. It's core. We can look at fixing it in the core system, but that is going to take us a couple of days to review.
Nicholas
CIO - CorFun, Inc.
Publisher - orthodoxbiz.com
Webmaster - Orthodox Christian Network

Re: Bug in coupon if item not purchased 1 year, 1 month ago #2380

  • jasper
  • OFFLINE
  • Administrator
  • Posts: 148
You can back out the code but deleting to scripts and renaming the original scripts. They are locating in administrator/component/virtuemart/classes

Delete ps_checkout and ps_coupon

Rename ps_checkout.cfmxxx.php to ps_checkout.php
Rename ps_coupon.cfmxxx.php to ps_coupon.php. The xxx will vary depending on the version of target coupon you have installed.

I will add the display of the coupon box to my future enhancement list. I do not have an ETA for that. You will encounter the same thing in base virtuemart. Whenever you key in a coupon, it will remain unless the order is completed or the browser is cleared. This hasn't been a big issue though I do understand it is perhaps an inconvienance.

If you wish, you can simply rename the two scripts instead of deleting them and then if you wish to reactivate the product you can reverse the process.

Re: Bug in coupon if item not purchased 1 year, 1 month ago #2381

  • renpal
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Thanks so much for your quick reply!

We will keep the Target Coupon, is actually very helpful and simple. Please incorporate the coupon box in a future version, It would be great to have that help for the clients.

Best Regards.
  • Page:
  • 1
Time to create page: 0.51 seconds

Login