Project:Ubercart Stock Notify
Version:6.x-1.0
Component:Code
Category:feature request
Priority:normal
Assigned:suncombo
Status:active

Issue Summary

Will there be a D7 port for this module?

Comments

#1

Assigned to:Anonymous» suncombo

I try to update modules for the first time. Want to help you.

AttachmentSize
uc_stock_notify.zip 10.52 KB

#2

Thank you so much for this suncombo! I'll give this a shot and will report back if I've any issues. :)

#3

Hey suncombo,

I installed this module on my site, then went to Edit a product, clicked on "Stock", and under "Active", I made a mark on its checkbox.

After I saved the changes, these error messages immediately appeared:

Notice: Undefined variable: result_array in uc_stock_notify_edit_submit() (line 122 of /var/www/URL.com/sites/all/modules/uc_stock_notify/uc_stock_notify.module).
Notice: Trying to get property of non-object in uc_stock_notify_edit_submit() (line 122 of /var/www/URL.com/sites/all/modules/uc_stock_notify/uc_stock_notify.module).

Would you know what would be the problem?

#4

I update the module,Please try it.

AttachmentSize
uc_stock_notify.zip 10.57 KB

#5

Thank you so much again for your effort suncombo!

I just tried it again, and this time, using the same exact steps that I described above, this error code is appearing again:

Notice: Undefined variable: result_array in uc_stock_notify_edit_submit() (line 145 of /var/www/URL.com/sites/all/modules/uc_stock_notify/uc_stock_notify.module).
Notice: Trying to get property of non-object in uc_stock_notify_edit_submit() (line 145 of /var/www/URL.com/sites/all/modules/uc_stock_notify/uc_stock_notify.module).

But this time it's on a different line.

At the product itself, these error messages are appearing:

Notice: Trying to get property of non-object in uc_stock_notify_form_alter() (line 77 of /var/www/URL.com/sites/all/modules/uc_stock_notify/uc_stock_notify.module).
Notice: Trying to get property of non-object in uc_stock_notify_form_alter() (line 83 of /var/www/URL.com/sites/all/modules/uc_stock_notify/uc_stock_notify.module).

#6

I have the same problem, I uploaded an updated version, please forgive me I was a rookie.

AttachmentSize
uc_stock_notify.zip 10.5 KB

#7

Hey suncombo,

Don't worry, I'm an even worse rookie. :P But thanks again for all your effort in this.

I think it worked fine now! Just one more error message that I spotted. Here's what I did:

1. Change stock level of a product to 0, and make it "active".
2. Go to "View" for the product, and click on the button for "Notify me when this product is in stock".
3. Change the stock level of that product to 3 (any value other than 0).
4. Then immediately this error message appears:

Notice: Undefined index: message in uc_order_mail() (line 564 of /var/www/URL.com/sites/all/modules/ubercart/uc_order/uc_order.module).

Actually, where do I go to edit the message for the e-mail to be sent?

The e-mail I received in the inbox has this exact title: "[store-name]: [title] back in stock" and the body of the e-mail is blank/empty.

#8

I have had this problem, I uploaded the new updates.
Please test again.

AttachmentSize
uc_stock_notify.zip 10.55 KB