| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
if a product is outstock, notify when in stock - preorder | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#51
|
|||||||||
|
|||||||||
![]() 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.
__________________
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 |
|||||||||
#52
|
|||||||||
|
|||||||||
![]() 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:
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:
skin1/main/product_details.tpl - Again just add the code between {* start funkydunk notify mod and the {* end of funkydunk notify mod Code:
__________________
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 |
|||||||||
#53
|
|||||||||
|
|||||||||
![]() 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:
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:
__________________
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 |
|||||||||
#54
|
|||||||||
|
|||||||||
![]() 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.
__________________
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 |
|||||||||
#55
|
|||||||||
|
|||||||||
![]() I have checked my SQL and i get in the database:
Code:
So that seems to be working OK with people who have logged in, but NOT guests ![]()
__________________
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 |
|||||||||
#56
|
|||||||||
|
|||||||||
![]() 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.
__________________
Dedicated Server provided by EWD Hosting X-Cart version 4.1.12 PHP 5.3.2 MySQL server 5.0.87-community Operation system Linux Perl 5.008008 dogbytecomputer.com |
|||||||||
#57
|
|||||||||
|
|||||||||
![]() DELETED AS IT WAS WRONG.
DONT USE THIS ONE, USE THE ONE IN THE FOLLOWING THREADS
__________________
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 |
|||||||||
#58
|
|||||||||
|
|||||||||
![]() 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:
__________________
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 |
|||||||||
#59
|
|||||||||
|
|||||||||
![]() 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:
__________________
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 |
|||||||||
#60
|
|||||||||
|
|||||||||
![]() 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:
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 ![]()
__________________
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|