View Single Post
  #47  
Old 01-16-2005, 07:41 AM
  shishapipe's Avatar 
shishapipe shishapipe is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: London
Posts: 47
 

Default

I have added to the SQL database the below code and it seems to work ok, just need to sort out the emails. The above code works ok with a login user or a guest user now after adding the following SQL files.
I added these manualy in the Language section for text, email and Lables.
You just need to do one language and it replicates for the other 3 languages. (SE, FR and DE)
Code:
INSERT INTO xcart_languages VALUES ('DE', 'Notify Me', 'txt_addme_notify', 'Please enter your email in the box provided and we will notify you when stock arrives in.', 'Text'); INSERT INTO xcart_languages VALUES ('FR', 'Notify Me', 'txt_addme_notify', 'Please enter your email in the box provided and we will notify you when stock arrives in.', 'Text'); INSERT INTO xcart_languages VALUES ('SE', 'Notify Me', 'txt_addme_notify', 'Please enter your email in the box provided and we will notify you when stock arrives in.', 'Text'); INSERT INTO xcart_languages VALUES ('US', 'Notify Me', 'txt_addme_notify', 'Please enter your email in the box provided and we will notify you when stock arrives in.', 'Text'); INSERT INTO xcart_languages VALUES ('US', 'Stock Notify', 'txt_added_stock_notify', 'Thanks you will be sent a email when stock arrives back.', 'Text'); INSERT INTO xcart_languages VALUES ('SE', 'Stock Notify', 'txt_added_stock_notify', 'Thanks you will be sent a email when stock arrives back.', 'Text'); INSERT INTO xcart_languages VALUES ('FR', 'Stock Notify', 'txt_added_stock_notify', 'Thanks you will be sent a email when stock arrives back.', 'Text'); INSERT INTO xcart_languages VALUES ('DE', 'Stock Notify', 'txt_added_stock_notify', 'Thanks you will be sent a email when stock arrives back.', 'Text'); INSERT INTO xcart_languages VALUES ('DE', 'Stock Notify', 'lbl_stock_notify', 'Stock Notify', 'Labels'); INSERT INTO xcart_languages VALUES ('FR', 'Stock Notify', 'lbl_stock_notify', 'Stock Notify', 'Labels'); INSERT INTO xcart_languages VALUES ('SE', 'Stock Notify', 'lbl_stock_notify', 'Stock Notify', 'Labels'); INSERT INTO xcart_languages VALUES ('US', 'Stock Notify', 'lbl_stock_notify', 'Stock Notify', 'Labels'); INSERT INTO xcart_languages VALUES ('DE', 'Keep me updated', 'lbl_stock_notify_button', 'Keep me updated', 'Labels'); INSERT INTO xcart_languages VALUES ('FR', 'Keep me updated', 'lbl_stock_notify_button', 'Keep me updated', 'Labels'); INSERT INTO xcart_languages VALUES ('SE', 'Keep me updated', 'lbl_stock_notify_button', 'Keep me updated', 'Labels'); INSERT INTO xcart_languages VALUES ('US', 'Keep me updated', 'lbl_stock_notify_button', 'Keep me updated', 'Labels'); INSERT INTO xcart_languages VALUES ('DE', 'The following product is now back in stock and can be ordered by clicking on the link below', 'eml_stock_notification', 'The following product is now back in stock and can be ordered by clicking on the link below', 'E-Mail'); INSERT INTO xcart_languages VALUES ('FR', 'The following product is now back in stock and can be ordered by clicking on the link below', 'eml_stock_notification', 'The following product is now back in stock and can be ordered by clicking on the link below', 'E-Mail'); INSERT INTO xcart_languages VALUES ('SE', 'The following product is now back in stock and can be ordered by clicking on the link below', 'eml_stock_notification', 'The following product is now back in stock and can be ordered by clicking on the link below', 'E-Mail'); INSERT INTO xcart_languages VALUES ('US', 'The following product is now back in stock and can be ordered by clicking on the link below', 'eml_stock_notification', 'The following product is now back in stock and can be ordered by clicking on the link below', 'E-Mail');

Also added to SQL the following:

INSERT INTO xcart_modules VALUES (2,'stock_notify','Allows registered users to ask to be notified when a product is back in stock','Y');

Code:
CREATE TABLE xcart_notify ( email char(128) NOT NULL , productid int(11) NOT NULL , KEY email_proudct (email, productid), ) TYPE=MyISAM;
__________________
Regards Maxking

SERVER: Microsoft-IIS/5.0
MYSQL Server: 4.0.18-NT
PERL: 5.006001
PHP: 4.3.6
X-CART pro: 4.3
X-AOM: 4..3
X-RMA: 4..3X-FancyCategories 4.3
Skin: Own Design
Marketing Manager Professional 3.0 Bundle
Reply With Quote