logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne2  
#1 Posted : Thursday, February 11, 2021 8:02:33 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
Is Restock Notify triggered when a product record is edited via the admin? I don't see anywhere in the controller where that gets fired off?

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

mazhar  
#2 Posted : Thursday, February 11, 2021 10:03:02 AM(UTC)
mazhar

Rank: Administration

Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered
Joined: 10/5/2018(UTC)
Posts: 175

Thanks: 8 times
Was thanked: 17 time(s) in 15 post(s)
Yes, it will be triggered and I think returning an item does trigger it.
Joe Payne2  
#3 Posted : Thursday, February 11, 2021 10:40:48 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
Can you tell where? I can't find where it gets triggered. There's nothing in BeforeSave() in the repository. And nothing fires it in the postback when editing a product.
shaharyartiwana25816656  
#4 Posted : Friday, February 12, 2021 12:41:08 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 704

Thanks: 5 times
Was thanked: 113 time(s) in 112 post(s)
Restock Notifications triggers from the Manage Low Inventory page. You can find this under Reports - Products - Low Inventory.

You can see the code in ReportController - RestockNotify()


NOTE: Please go through this post before using this page. There is a bug identified and the fix was shared.
https://www.ablecommerce...-MM-yyyy-format#post2504
Joe Payne2  
#5 Posted : Friday, February 12, 2021 7:53:28 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
I understand it is triggered on the low-inventory page. My original question was how does it get triggered when someone edits a product? Mazhar says it does. I can't find where that happens.
mazhar  
#6 Posted : Friday, February 12, 2021 8:24:35 AM(UTC)
mazhar

Rank: Administration

Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered
Joined: 10/5/2018(UTC)
Posts: 175

Thanks: 8 times
Was thanked: 17 time(s) in 15 post(s)
Actually, I was saying it happens when you return an item on order. Seems I didn't follow the question which is related to editing the product. It doesn't fire when you edit product.
Joe Payne2  
#7 Posted : Friday, February 12, 2021 8:28:03 AM(UTC)
Joe Payne2

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 564

Thanks: 122 times
Was thanked: 26 time(s) in 25 post(s)
Ok thank you. Was there a particular design reason it was not implemented during edit-product? Seems like the best place would be the repo BeforeSave() or AfterSave()?
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.