PDA

View Full Version : JavaScript Case statement explination


dferguson
22nd September 2005, 02:14 AM
FYI

Some merchants have asked us how the case statements in the eziproducts.js file are formatted..

EXAMPLE:

case 22:return nA(149,10,15,30,0.5,0.1,0.1,0.1);

Case 22 = This is the product id
149 = extax price
10 = local freight (if using per product freight method, if not this value is ignored)
15 = domestic freight (if using per product freight method, if not this value is ignored)
30 = international freight (if using per product freight method, if not this value is ignored)
0.5 = weight of product
0.1 = tax (this figure represents the tax amount for local)
0.1 = tax (this figure represents the tax amount for domestic)
0.1 = tax (this figure represents the tax amount for international)

niko
24th September 2005, 03:06 AM
why would users want to muck around with this file?

dferguson
27th September 2005, 01:29 AM
This file controls the price, freight and tax for all the products on your site.. Some clients prefer to edit this file directly rather than get ezimerchant Pro to generate it (For example: Someone with a fully customised website which cannot be generated easily by ezimerchant Pro)