![]() |
Quote:
The thing is, i would pay for this, its cost me in time more money to try and work it out and i am not good with PHP, HTML yes, but PHP not my subject and i need this addon so bad. |
Now there are 3 amended template files, these are:
skin1/customer/main/product.tpl - Just ADD between the {* funkydunk notify mod *} and {* end of funkydunk notify mod *} The rest of the code is to show you where i have placed it the skin1/customer/main/product.tpl Code:
<TR><TD height="25" width="30%">{$lng.lbl_quantity}{if $product.min_amount gt 1} skin1/customer/home_main.tpl - Again just add the code between {* funkydunk notify mod *} and {* end of funkydunk mod *} in the skin1/customer/home_main.tpl Code:
{* funkydunk notify mod *} skin1/main/product_details.tpl - Again just add the code between {* start funkydunk notify mod and the {* end of funkydunk notify mod Code:
<TD class="FormButton" nowrap>{$lng.lbl_quantity_in_stock}</TD> |
Now you need to amend 2 php files, these are:
include/product_modify.php - Only add the files between // funkydunk added code for notify when back in stock and // end of code added by funkydunk for notify when back in stock. Code:
# Update the default price include/process_product.php - Only add between // funkydunk added code for notify when back in stock (shopcart/includes/process_product.php) and // end of code added by funkydunk for notify when back in stock (shopcart/includes/process_product.php) Code:
# Include 'avail' field into the updating list |
Here is the full list that you should have:
// Notify when back in stock mod // copyright funkydunk.net 2003 // designed to allow customers to sign up to recieve an automatic email notifying them of when the product is back in stock new template files: shopcart/skin1/modules/stock_notify/addedtolist.tpl shopcart/skin1/modules/stock_notify/stocknotify.tpl shopcart/skin1/modules/stock_notify/notifyme.tpl shopcart/skin1/buttons/notifyme.tpl shopcart/skin1/mail/stock_notify.tpl shopcart/skin1/mail/stock_notify_subj.tpl shopcart/new php files: shopcart/notify.php amended template files: shopcart/skin1/customer/main/product.tpl shopcart/skin1/customer/home_main.tpl shopcart/skin1/main/product_details.tpl amended php files: shopcart/include/product_modify.php shopcart/include/process_product.php You must add the extra items to the SQL that i posted. MAKE SURE YOU DO A SQL BACKUP FIRST. And also backup your PHP and template files so if it does not work you can revert back to your original settings. |
I have checked my SQL and i get in the database:
Code:
CREATE TABLE xcart_notify ( So that seems to be working OK with people who have logged in, but NOT guests :( |
This mod never did work but with signed in customers, I know because I was the one who originally paid the 'dunk to do it.
|
DELETED AS IT WAS WRONG.
DONT USE THIS ONE, USE THE ONE IN THE FOLLOWING THREADS |
Also placed this code into shopcart/skin1/customer/main/buy_now.tpl
So it shows in normal mode without going to the details section. Just add the code between {* funkydunk notify mod *} and {* end of funkydunk notify mod *} Code:
<TD width="20%" nowrap> |
Here is the NEW X-Cart 4.09 shopcart/skin1/modules/stock_notify/stocknotify.tpl file
This sends a responce (addtolist.tpl - {$lng.txt_added_stock_notify}) to a guest once the email address has been entered correctly and also a responce (addtolist.tpl - {$lng.txt_added_stock_notify}) to a login user. stocknotify.tpl Code:
{* stocknotify.tpl funkydunk.net 2003 - changed by Maxking *} |
Well, a guest now can request stock when it arrives back, this is the dump of my SQL after testing the notify.php script thats posted above.
Code:
INSERT INTO xcart_notify VALUES ('TEST@shishapipe.net', 16246); So its just the email that needs to be sorted now, will look at this later. But for X-Cart 4.09 if you follow the above posts Notify will work for a guest and a reg user :) |
All times are GMT -8. The time now is 05:38 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.