Project:Ubercart Out of stock Notification
Version:6.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Your out of stock module is nice because of the stock validation. Thanks!

Now if we want customers to be notify when a product come back in stock, it would be great to add a notify functionnality like here: http://drupal.org/project/uc_stock_notify

Do you think it is possible?

Comments

#1

I wanted this too. I activated this module AND installed uc_stock_notify...and it worked! uc_stock_notify replaced whatever html uc_out_of_stock had set with it's notify button. GREAT!!!... problem however, arose when I went to activate attributes and added uc_multi_stock for attributes. Now uc_stock_notify only works on objects without attributes. Objects without attributes get the html set in uc_out_of_stock.

I would love an option to use uc_stock_notify although I'm not sure how best to implement it. A token? A hook?

#2

mcaden subscribe. how you resolve this issue?

#3

The client decided just to not use stock for the few products he had attributes for. Sorry i can't be more help.

#4

Title:Intégration of uc_stock_notify» Integration with uc_stock_notify

Well, first of all, I wouldn't use uc_multi_stock, the D6 version of this module kind of override that module as far as I can tell. Then about uc_stock_notify, I don't really use that module, so leaving this issue open for further notes and references.

#5

For integration uc_out_of_sock with uc_stock_notify and popups modules I made some changes in uc_out_of_stock.js

// Show out of stock message
msg_attr_active_text = Drupal.settings.uc_out_of_stock.msg.replace( '[attr_size]',$(":input[@name*=attributes] option:selected", form).text().substring(0,2) );
msg_attr_active_object = $(".uc_out_of_stock_html", form).html(msg_attr_active_text);
Drupal.attachBehaviors(msg_attr_active_object);

in uc_out_of_stock.module in function uc_out_of_stock_form_alter(&$form, $form_state, $form_id)
$node = $form['node']['#value'];
$settings_js['uc_out_of_stock']['msg'] = check_markup( token_replace(
  variable_get('uc_out_of_stock_text', UC_OUT_OF_STOCK_DEFAULT_HTML), "node", $node ),
  variable_get('uc_out_of_stock_format', FILTER_FORMAT_DEFAULT), FALSE);

On uc_out_of_stock configuration page /admin/store/settings/uc_out_of_stock i wrote something like that:

<a class="popups" href="/stock_notify/[model][attr_size]?destination=node/[nid]" >Let me know</a></span>

It's just my example how i resolved this issue.
i hope author will add universal code into uc_out_of_stock module

(as usual sorry for my english)

nobody click here