You need to change the
init.php file
Look for this code:
Code:
"download_keys" => "xcart_download_keys",
"export_ranges" => "xcart_export_ranges",
and replace it with:
Code:
"download_keys" => "xcart_download_keys",
# START: SHISHAPIPE UK MOD - theshisha.com
"email_for_changed_products" => "xcart_email_for_changed_products",
# END: SHISHAPIPE UK MOD - theshisha.com
"export_ranges" => "xcart_export_ranges",
Now open up your
product.php and look for:
Code:
include "./vote.php";
require $xcart_dir."/include/categories.php";
and replace it with:
Code:
include "./vote.php";
# START: SHISHAPIPE UK MOD - theshisha.com
include "./changed_product_notify.php";
# END: SHISHAPIPE UK MOD - theshisha.com
require $xcart_dir."/include/categories.php";
OK, last file now, you need to edit
skin1/customer/main/product.tpl and place this code in the file.
Code:
{capture name=dialog}
<table width="100%" cellpadding="0" cellspacing="0">
<form action="product.php" method="post" name="notifyform">
<input type="hidden" name="mode" value="changed_product_notify" />
<input type="hidden" name="productid" value="{$product.productid}">
<input type="hidden" name="desc" value="{$product.descr}">
<input type="hidden" name="fulldesc" value="{$product.fulldescr}">
<input type="hidden" name="price" value="{$product.price}">
<input type="hidden" name="avail" value="{$product.avail}">
<tr>
<td colspan="3">{include file="main/subheader.tpl" title=$lng.lbl_notify_me}</td>
</tr>
<tr>
<td><br />{$lng.lbl_notify_about_changed_product}:</td>
<td><br />
<input type="text" size="25" name="notify_email" value="{$notify_email}"/>
</td>
<td><br />
{include file="buttons/button.tpl" button_title=$lng.lbl_submit style="button" href="javascript: document.notifyform.submit();" type="input"}
</td>
</tr>
</form>
</table>
{/capture}
{include file="dialog.tpl" content=$smarty.capture.dialog title=$lng.lbl_notify_me extra='width="100%"'}
I would recommend you place this just under your product description, i placed it after the below code:
Code:
{if $active_modules.Magnifier ne "" && ($config.Magnifier.magnifier_image_popup ne 'Y' || $js_enabled ne 'Y')}
<p />
{include file="modules/Magnifier/product_magnifier.tpl" productid=$product.productid}
{/if}
Thats it the full modification for x-cart 4.1.3, enjoy.