Jump to content

mailalerts module bug with re-stock products on canceled orders > not sending notif mail to customer


Recommended Posts

Hi,

 

I just met a small bug with mail alerts module. So here's the steps I took :

 

1. have a product X with qty 1

2. buy product X and confirm order / finish checkout

3. check stock movement : "product X , -1 , Order"

4. product X's qty is 0 and sold out in front end

5. click notify me when available on product detail (as customer)

6. go to order details in BO, and tick the checkbox to cancel products, and press "cancel products"

7. product X's qty is now 1

8. NO EMAIL NOTIFICATION (as a customer)

9. in my accounts > my alerts > there's still product X on that myalerts.php page

 

 

So I think, I've just found about the problem caused this :

10. check stock movement : "product X , 1 , ---ORDER---"

 

(I think "Order" is for decreasing value because it's set to -1 in database, and after that, I tried once again step 1 to 5, and change the next steps :

1 - 5. (like above)

6. set order to canceled (without check box and press cancel products)

7. set product X's stock movement to "Increase , 1"

8. GET EMAIL NOTIFICATION (as a customer)

9. in my accounts > my alerts > no more products to be notified.

 

My conclusion is, maybe it's because when canceling products on order detail page, the status should be changed to "Increase" not "Order".. I've tried to look inside classes/AdminOrders.php but didn't get any clue to change the stock movement reason after canceling products.

 

[ JUST TRIED ] to change config/defines.inc.php > define('_STOCK_MOVEMENT_ORDER_REASON_', 1); > I set the reason to 1 (Increase), and tried again like step 1-9 in the first try above, then stock movement changed to "Increase" not "Order" anymore, but the email notification was still not sent and there's still product X on my account > my alerts page.

 

Any help and fast reply would be much appreciated. Thank you.

Link to comment
Share on other sites

×
×
  • Create New...