User Tools

Site Tools


tutorials:zencartmods:tariff.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:zencartmods:tariff.html [2011/05/18 19:07]
ladyada
tutorials:zencartmods:tariff.html [2016/01/28 18:05] (current)
Line 1: Line 1:
 +====== Tariff information for each product ======
 If you plan to ship items abroad, the package will end up having to pass through the recipient'​s customs office. These offices basically look at whats in the package and send a tax bill for any import tariffs or VAT. To speed up shipping (especially with a automated shipping system) its handy to have each items tariff information attached to the product. This tutorial will show how we do this by creating three new product attributes that are stored in the database: Tariff Number, Country of Origin and brief description. If you plan to ship items abroad, the package will end up having to pass through the recipient'​s customs office. These offices basically look at whats in the package and send a tax bill for any import tariffs or VAT. To speed up shipping (especially with a automated shipping system) its handy to have each items tariff information attached to the product. This tutorial will show how we do this by creating three new product attributes that are stored in the database: Tariff Number, Country of Origin and brief description.
  
Line 7: Line 8:
  
  
-==== DB Mods ====+===== DB Mods =====
  
 As always, ALWAYS BACK UP YOUR DATABASE BEFORE APPLYING DB MODS.  As always, ALWAYS BACK UP YOUR DATABASE BEFORE APPLYING DB MODS. 
Line 18: Line 19:
  
  
-==== Adding a field to products ====+===== Adding a field to products ​=====
  
 We'll be adding three fields (products_customs,​ products_tariff_country,​ products_tariff). This method will work in general for any field that you would add to the table '​products'​. We'll be adding three fields (products_customs,​ products_tariff_country,​ products_tariff). This method will work in general for any field that you would add to the table '​products'​.
Line 27: Line 28:
  
  
-=== admin/​includes/​modules/​product/​collect_info.php ===+==== admin/​includes/​modules/​product/​collect_info.php ​====
  
 Find (line 41) Find (line 41)
Line 187: Line 188:
 </​code> ​ </​code> ​
  
-=== admin/​includes/​modules/​update_product.php ===+==== admin/​includes/​modules/​update_product.php ​====
  
 find (line 52) find (line 52)
/home/ladyada/public_html/wiki/data/attic/tutorials/zencartmods/tariff.html.1305745674.txt.gz · Last modified: 2016/01/28 18:05 (external edit)