
08-29-2005, 05:15 PM
|
|
 | |
|
|
 Senior Member
|
|
Join Date: Jul 2005
Location: London, England.
Posts: 118
|
|
|
Re: Modified to work with variants 4.0.13
Quote:
Originally Posted by jeanne
in skin1/modules/Product_Options/customer_options.tpl change
Code:
variants[{$k}] = new Array(new Array({$v.taxed_price|default:$v.price|default:$product.taxed_price|default:$product.price}, {$v.avail|default:0}, '{if $v.is_thumbnail eq 'Y'}{$v.variantid}{/if}', '{$v.weight|default:0}', {$v.price|default:$product.price|default:'0'}), new Array(), new Array());
to
Code:
variants[{$k}] = new Array(new Array({$v.taxed_price|default:$v.price|default:$product.taxed_price|default:$product.price}, {$v.avail|default:0}, '{if $v.is_thumbnail eq 'Y'}{$v.variantid}{/if}', '{$v.weight|default:0}', {$v.price|default:$product.price|default:'0'}, '{$v.productcode}'), new Array(), new Array());
after
Code:
var is_unlimit = '{$config.General.unlimited_products}';
add
Code:
var link1 = "<a href='notify.php?productid={$product.productid}&productcode=";
var link2 = "'><font class=FormButton>{$lng.lbl_stock_notify_button}</font>[img]{$ImagesDir}/go.gif[/img]</a>";
var link3 = "&guest=true'><font class=FormButton>{$lng.lbl_stock_notify_button}</font>[img]{$ImagesDir}/go.gif[/img]</a>";
after
Code:
if(document.getElementById('product_weight'))
document.getElementById('product_weight').innerHTML = variants[x][0][3];
add
Code:
if(document.getElementById('product_productcode')){
if (avail <= 0)
document.getElementById('product_productcode').innerHTML = link1+variants[x][0][5]+link2;
else
document.getElementById('product_productcode').innerHTML = "";
}
if(document.getElementById('product_productcodeguest')){
if (avail <= 0)
document.getElementById('product_productcodeguest').innerHTML = link1+variants[x][0][5]+link3;
else
document.getElementById('product_productcodeguest').innerHTML = "";
}
|
This is wrong, it should be in: skin1/modules/Product_Options/check_options.tpl
|
|