Multi Coupon causes Coupon Free Product not to display

  • Posts: 23
  • Thank you received: 2
2 months 2 weeks ago #363757

-- url of the page with the problem -- : www.japprendslaguitare.ca/caisse/caisse/layout-show
-- HikaShop version -- : 5.1.1
-- Joomla version -- : 4.4.8
-- PHP version -- : 8.1.30

Hello,

Unfortunately the bug described in my previous post has returned with the latest update of Hikashop.

I have coupon free product plugin published on my site, but if I publish the Hikashop Multi Coupon plugin, the free product previously added now disappears and the coupon is deleted from the cart.

It would appear that Coupon Free Product and Multi Coupon are not compatible.

I realize that the previous version of Hikashop 5.1.0 was patched for this bug; can I roll back to this version while I wait for the bug fix?

Thank you for your attention.
Brett

Please Log in or Create an account to join the conversation.

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
2 months 2 weeks ago #363761

Hi,

You sure can rollback.

And yes, the coupon free product bases itself on the coupon system, but the multi coupon plugin, transforms coupons into additional fees so that several can be stacked. I'm even surprised both could work together at all.
For both to work properly together, the coupon free product plugin would have to be adapted to not only take into account coupons, but also additional fees. That's something the developer of the coupon free product, Obsidev, should add to the plugin.

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 2
2 months 2 weeks ago #363762

Hi,
Thanks for the reply.
How do I submit that request to Obsidev?
Can you please provide me as well with a download link to the patched version of Hikashop 5.1.0 starter so I can use those two plugins together.
Thank you in advance.
-Brett

Please Log in or Create an account to join the conversation.

  • Posts: 83022
  • Thank you received: 13403
  • MODERATOR
2 months 2 weeks ago #363773

Hi,

You can send an email to hello AT obsi DOT dev
Send them the link of this thread for context.

Regarding the 5.1.0, here is a download link for the Starter edition:
we.tl/t-107K2b4qCb
The link will expire in 3 days.

The following user(s) said Thank You: brettv

Please Log in or Create an account to join the conversation.

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
2 months 2 weeks ago #363793

Hello,

Thank you for the notification. I'll continue here instead of in an email (much more efficient here).

"Coupon Free Products" and "Multi-Coupon" are not compatible and it will be difficult for them to be.
Since the multi-coupon plugin clean the coupon field once it's added into its "multicoupon" section ; the coupon free product will automatically remove the free product from the cart on the next refresh.

Because they are using the same triggers, the same "logic" ; we can't know for sure of the order they will be called.
The multi-coupon need to perform some checks before adding the coupon into its list so it could result some kind of add/remove of the free products on each refresh of the cart/pages. More than that, the "coupon free product" remove a coupon if the associated product is removed from the cart...
Clearly, adding the support would make the "coupon free product" plugin a lot more complex, just to handle the various cases for the multi-coupon.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 2
2 months 1 week ago #363818

Hi Jerome, thanks for joining the discussion.

Unfortunately Coupon Free Product seems to be broken in Hikashop 5.1.1, beyond what we've discussed here.

I've installed the latest version of Hikashop starter on a test site to show you the bugs I've found. Try this link:
ncguitarlessons.com/index.php?option=com...d=142&coupon=CARRERA

This sends me to ncguitarlessons.com/cart/checkout with the item "Porsche Carrera 4964" added for free as well as the discount of 20 dollars which I set in the coupon. Great.

Navigate to ncguitarlessons.com/cart/ (which is the menu item HikaShop » Cart Display in the backend) and the discount of 20 dollars disappears, but the free product remains. Coupon Free Product adds the free item, but doesn't apply the discount.

So, Coupon Free Product seems to have different functionality depending on which cart view you choose.

Please Log in or Create an account to join the conversation.

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
2 months 1 week ago #363822

Hello,

I'm sorry but your issue is not related to the "coupon free product" plugin ; and it's not an issue/bug.
Your HikaShop cart view is not displaying discount coupons ; the discount hasn't disappear ; you just need to go back in the checkout to see it's still there.

More than that : Coupon free product is not responsible of applying the discount.
The plugin check if the cart's coupon is available for "free product" and add the related product.
Its behavior can't be different between the "checkout" and the "cart" ; the plugin only react to HikaShop triggers when the cart is loaded.
So if your coupon was really removed, the plugin would remove the product too.
In your case, it's just that it's not displayed by HikaShop.

I can re-assign someone from the HikaShop support team to your ticket if you want to go further with that.
But regarding my part on the "coupon free product" plugin, there is nothing I can do for your discount display in the cart view.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: brettv

Please Log in or Create an account to join the conversation.

  • Posts: 23
  • Thank you received: 2
2 months 1 week ago #363833

Hello,

Thanks for the clarification. You are right, the "show cart" menu item doesn't display the applied coupons, and it's https://www.hikashop.com/forum/orders-management/873780-display-coupon-discount-value-in-showcart.htmlbeen like that for a while . Please do the feature request at your earliest convenience.

Thanks,
Brett

The following user(s) said Thank You: Jerome

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum