[Prestashop] Problem with free shipping and use of coupon


  • Default avatar
    riga75    
     a year ago
    0

    Here is my problem.
    I have set the courier that over 250€ shipping is free, but if one puts a 270€ product in the cart and then maybe applies a coupon and the amount becomes 240€ the system always considers me free shipping but in reality it is not, how do I do that?

    thanks a lot

    stefano
  • Your avatar
    seyi    
     a year ago
    0

    Hello,

    Testing in 1.7.8.4, seems to work fine for me.  Setup free shipping over 50 with a carrier:



    Cart without coupon:



    Cart with coupon added from AwoCoupon, order total 48.92.


  • Default avatar
    riga75    
     a year ago
    0

    I don't, how can I understand where I went wrong?

  • Your avatar
    seyi    
     a year ago
    0

    Not sure, start with how did you setup free shipping?
  • Default avatar
    riga75    
     a year ago
    0

    I configured it like this
  • Your avatar
    seyi    
     a year ago
    0

    Do not recognize that interface.  Are you using some type of extension to do this?  If so then would probably need some custom coding to get it to work.

    another thing you can do is check the overrides in
         /override/classes/Cart.php/CartRule.php
    and see how those files compare to
         /modules/awocoupon/helper/override/17/classes/Cart.php/CartRule.php



  • Default avatar
    riga75    
     a year ago
    0

    they look identical to me, if I try with the native prestahop coupon it works perfectly, the problem seems to be only with awocopuon coupons
    Any ideas?
  • Your avatar
    seyi    
     a year ago
    0

    Awocoupon is developed to work with Prestashop system, it cannot foresee what will happen with other extensions.  The only option here is to custom code awocoupon or the extension or both so that they work together.
  • Default avatar
    riga75    
     a year ago
    0

    OK sorry again, consider that I am not a programmer so maybe I am wrong.
    Why does the native Prestashop coupon work fine and if I use a coupon made with awocoupon instead it gives me the problem?
    Can you see if I have set the awocoupon coupon wrong?
  • Default avatar
    riga75    
     a year ago
    0

    I did another test to make sure: I used an address that matches the Italia zone.

    The Italia zone has two rules, for which delivery is 10 euros if the basket amount is less than 200 euros and free delivery if the basket value is more than 200 euros. Please take a look at the screenshot - https://prnt.sc/QLEd136259iy

    I put an item worth 230 euros in the cart. So shipping should be free. Please take a look at screenshots -

    https://prnt.sc/1QDrTUHnnPBE

    https://prnt.sc/B1xgMqDKqZ7Z

    I created a discount coupon through Prestashop functionality. Please take a look at the screenshot - https://prnt.sc/RvMsBRi5NR0y

    Shipping becomes chargeable when I apply a discount coupon. Please take a look at screenshots -

    https://prnt.sc/nCPDg1wnR7Zn

    https://prnt.sc/wyiT-RP1-6ay

    If I use AwoCoupon to create a coupon and apply that coupon, then the shipping cost doesn't change. Please take a look at screenshots -

    https://prnt.sc/u9Fifp-JVDR6

    https://prnt.sc/t0KLDyynmDqQ

    The module I use for shipping works correctly with coupons created via Prestashop's default functionality.

    I'm always more sure that I've done something wrong with the coupon configuration on awocoupon but I don't know where because I use awocoupon on other sites and it doesn't give me this problem.

    Can you help me?
  • Your avatar
    seyi    
     a year ago
    0

    Why does the native Prestashop coupon work fine and if I use a coupon made with awocoupon instead it gives me the problem?

    Just like awocoupon was built to work with prestashop shipping, the shipping extension was built to work with prestashop coupons.
  • Default avatar
    riga75    
     a year ago
    0

    But no in another site I have both plugins and it works perfectly
  • Default avatar
    riga75    
     a year ago
    0

    I have also tried deactivating the shipping plugin and still have the free shipping problem. So as I said I think it's really a problem with the awocoupon configuration, can you help me?
    Thanks
  • Your avatar
    seyi    
     a year ago
    0

    On both sites, are you using the same versions of Pretatshop and Awocoupon?  If so, I would suggest comparing the files in the /override directory of both sites.  More than likely there is a difference there.