Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

if a product is outstock, notify when in stock - preorder

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #91  
Old 11-07-2006, 07:54 AM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default Re: if a product is outstock, notify when in stock - preorder

Working on the mod for 4.1.3 will be ready end of November 2006

CUSTOMER:

1. When customer is on "Product Details" page, s/he will see a new form:
------
Notify my when the product's information is changed: < "Enter the email here..." text field >
<"Submit" button>
------

The form will look similar for both logged and not logged customer. The only exception will be that the email from the user' profile will be pre-filled in the text-field, however, can be changed to another address, if needed.

2. After clicking "Submit", the script will create a special record in the database, containing the productID, current description, price, quantity in stock and specified email address (a new table will be created for this purpose).


ADMIN:

When changing the product details (submitting "Product Modify" form, or using "Products import" facility), the script will look if there are any email addresses, associated with the current productID.

If yes, it will look for the differences in one of the following fields:
- Short/Long description;
- Price;
- Quantity in stock (from 0 to a bigger value).

I.e., it will compare the date, was stored when customer submitted a new form and the currently submitted by the admin data.

If any of described changes have taken place, a special "Product information has changed" email will be sent to all the email addresses, associated with current product.

The email will contain the text, saying that the information about the product has changed (language variable, which the admin can change in "Languages" section) and the link to "Product Details" page. updated product's information.


Also, the information, saved about the product initially (in new table) will be updated with the new product's information (will allow to catch the next changes for the product).

Also with the email, you have the option to unsubscribe to the product notify.
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote
  #92  
Old 11-08-2006, 07:57 PM
 
LiLCrafter LiLCrafter is offline
 

Member
  
Join Date: Sep 2006
Posts: 20
 

Default Re: if a product is outstock, notify when in stock - preorder

I guess what I am reading between the lines here is that thismod does not work with 4.0.19 and will at some point in the future operate with 4.1.


Does no one have the 4.0.19 version and have this mod?

I have put this into three carts and this particular version simply does not work at all, so I assume it is a change in call(s) causing problems.
__________________
-vs- 4.0.19
Reply With Quote
  #93  
Old 11-10-2006, 07:18 AM
  ShishaPipeUK's Avatar 
ShishaPipeUK ShishaPipeUK is offline
 

Senior Member
  
Join Date: Jul 2005
Location: London, England.
Posts: 118
 

Default Re: if a product is outstock, notify when in stock - preorder

I did have this working in 4.0.19 but now moved to 4.1.3 and changeing it to work.
__________________
Apache/2.0.55 (Red Hat) & MYSQL Server: 5.0.24
PERL: 5.008005 / PHP: 4.4.4 - 4.3.1 X-CART

Shop carts at
http://www.nightscene.co.uk/shop/home.php
http://www.theshisha.net/shopcart/home.php
http://www.system-maintenance.com/maint/home.php
http://www.tabac4u.com
Reply With Quote
  #94  
Old 11-10-2006, 05:45 PM
 
LiLCrafter LiLCrafter is offline
 

Member
  
Join Date: Sep 2006
Posts: 20
 

Default Re: if a product is outstock, notify when in stock - preorder

Quote:
Originally Posted by ShishaPipeUK
I did have this working in 4.0.19 but now moved to 4.1.3 and changeing it to work.

Do you have any recollection of what the call changes were?

I cannot seem to find what is causing this to not operate properly.

This will be the format for this store period, and it will not be updated after it goes live.

Would be nice to have this capability.

I love this mod too much to not have it, lol.
__________________
-vs- 4.0.19
Reply With Quote
  #95  
Old 11-14-2006, 01:00 PM
 
alphastara alphastara is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 39
 

Default Re: if a product is outstock, notify when in stock - preorder

I will attempt to install this on 4.0.19 and see if I can get it working and note the appropriate changes...
__________________
Alphastara | New Age Products
www.alphastara.com.au
V: 4.1.6 + AOM
Reply With Quote
  #96  
Old 11-14-2006, 02:37 PM
 
LiLCrafter LiLCrafter is offline
 

Member
  
Join Date: Sep 2006
Posts: 20
 

Default Re: if a product is outstock, notify when in stock - preorder

Quote:
Originally Posted by alphastara
I will attempt to install this on 4.0.19 and see if I can get it working and note the appropriate changes...

bless you. I tried this and went over everyhting and it appeared to be ok, but it simply did not work.

I took it as a call change somewhere that was not noticed by me, and i am no php guru, just lower level hack you might say.

Level is above beginner, but not expert, lol.

I iwll watch and hope you find what I have missed.

thanks again.
__________________
-vs- 4.0.19
Reply With Quote
  #97  
Old 11-15-2006, 01:03 AM
 
alphastara alphastara is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 39
 

Default Re: if a product is outstock, notify when in stock - preorder

It had parsed the code for /skin1/modules/stock_notify/notifyme.tpl to links on the pages back, this code works for notifyme.tpl:
Code:
{* notifyme.tpl funkydunk.net 2003 *} {if $login ne ""} <a href="notify.php?productid={$product.productid}">{include file="buttons/notifyme.tpl"}</a> {else} <a href="notify.php?productid={$product.productid}&guest=true">{include file="buttons/notifyme.tpl"}</a> {/if}

I have also edited /skin1/buttons/notifyme.tpl to this:
Code:
<font class=FormButton><IMG src="{$ImagesDir}/notifyme.gif" border="0"> {$lng.lbl_stock_notify_button}</font>

It works fine otherwise I am going to tweak it a little more and I will post all templates again working in 4.0.19, things I will be doing is adding a link so when the person has entered their email the next screen allows them to go back to the product they were viewing (or category?) and a few other little tweaks....

Keep in mind I havent applied the Varient mods posted on page 9 as yet...
__________________
Alphastara | New Age Products
www.alphastara.com.au
V: 4.1.6 + AOM
Reply With Quote
  #98  
Old 11-15-2006, 11:01 AM
 
LiLCrafter LiLCrafter is offline
 

Member
  
Join Date: Sep 2006
Posts: 20
 

Default Re: if a product is outstock, notify when in stock - preorder

Quote:
Originally Posted by alphastara
It had parsed the code for /skin1/modules/stock_notify/notifyme.tpl to links on the pages back, this code works for notifyme.tpl:
Code:
{* notifyme.tpl funkydunk.net 2003 *} {if $login ne ""} <a href="notify.php?productid={$product.productid}">{include file="buttons/notifyme.tpl"}</a> {else} <a href="notify.php?productid={$product.productid}&guest=true">{include file="buttons/notifyme.tpl"}</a> {/if}

I have also edited /skin1/buttons/notifyme.tpl to this:
Code:
<font class=FormButton><IMG src="{$ImagesDir}/notifyme.gif" border="0"> {$lng.lbl_stock_notify_button}</font>

It works fine otherwise I am going to tweak it a little more and I will post all templates again working in 4.0.19, things I will be doing is adding a link so when the person has entered their email the next screen allows them to go back to the product they were viewing (or category?) and a few other little tweaks....

Keep in mind I havent applied the Varient mods posted on page 9 as yet...

Awesome, I will watch closely, thanks so much, looks like you will help me in a huge way by doing this.

I love this mod...
__________________
-vs- 4.0.19
Reply With Quote
  #99  
Old 11-15-2006, 08:21 PM
 
LiLCrafter LiLCrafter is offline
 

Member
  
Join Date: Sep 2006
Posts: 20
 

Default Re: if a product is outstock, notify when in stock - preorder

I have gone back into my files and found that my files match what is shown above already.

I went back into everything further and looked and as stated earlier, it was not working.

I remembered my stopping the smarty.php for looking for changes (to speed up things) and I decided to clear the template cache file to see if it made a difference.

I did not remember if I had done that or not. Upon clearing the cache file, I tested the mod, and it worked...

Looks like my issue was a simple need to clear the cache files out to enguage the mod into action.

Thanks for the attempt at help though.
__________________
-vs- 4.0.19
Reply With Quote
  #100  
Old 11-16-2006, 03:50 PM
 
tonyhsieh tonyhsieh is offline
 

Member
  
Join Date: Sep 2006
Posts: 11
 

Default Re: if a product is outstock, notify when in stock - preorder

I am looking at the update me when the product is restocked. Was there an upgrade to this mod? and if so, how much? I have the newest version of x-cart

Thanks

Tony
__________________
tony
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:04 PM.

   

 
X-Cart forums © 2001-2020