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

Next revision
Previous revision
Next revision Both sides next revision
tutorials:zencartmods:tariff.html [2011/05/18 19:03]
daigo created
tutorials:zencartmods:tariff.html [2011/05/18 19:08]
ladyada
Line 1: Line 1:
-This is walkthrough ​for adding tariff data to 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 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.
  
 {{:​zencartmods:​tariff.jpg|}} {{:​zencartmods:​tariff.jpg|}}
Line 7: Line 7:
  
  
-==== 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 18:
  
  
-==== 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 27:
  
  
-=== admin/​includes/​modules/​product/​collect_info.php ===+==== admin/​includes/​modules/​product/​collect_info.php ​====
  
 Find (line 41) Find (line 41)
Line 187: Line 187:
 </​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/pages/tutorials/zencartmods/tariff.html.txt · Last modified: 2016/01/28 18:05 (external edit)