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?
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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()?
|
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close