This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:zencartmods:customs.html [2011/06/01 18:04] daigo |
tutorials:zencartmods:customs.html [2016/01/28 18:05] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | Once you've done the [[tariff.html|Teriff Mod]], you'll be able to generate an international customs form as well. | + | ==== Commercial Invoices ==== |
+ | |||
+ | Once you've done the [[tariff.html|Tariff Mod]], you'll be able to generate an international customs form as well. | ||
{{:tutorials:zencartmods:customs.png|}} | {{:tutorials:zencartmods:customs.png|}} | ||
+ | If you add the customs form to the end of admin/invoice.php, then it will print out nicely every time you print the invoice. | ||
+ | |||
+ | [[http://www.uline.com/Product/Detail/S-2634/Special-Use-Packing-List-Envelopes/5-1-2-x-10-Red-Customs-Papers-Enclosed-Packing-List-Envelopes|We like to stick them on the outside of the box in an customs envelope from ULINE]] | ||
+ | |||
+ | {{:tutorials:zencartmods:s_2634_l.gif|}} | ||
+ | |||
+ | **in admin/invoice.php** | ||
+ | |||
+ | find (end of file) | ||
+ | <code php> | ||
+ | </table> | ||
+ | <!-- body_text_eof //--> | ||
+ | </code> | ||
+ | |||
+ | and replace it with | ||
+ | |||
+ | <code php> | ||
+ | </table> | ||
+ | <?php | ||
+ | if ($order_check->fields['delivery_country'] != "United States") { // change this to your own country | ||
+ | <p style="page-break-before: always"> </p> | ||
+ | <?php | ||
+ | // | ||
+ | // put the code for the invoice here | ||
+ | // | ||
+ | } ?> | ||
+ | <!-- body_text_eof //--> | ||
+ | </code> | ||
+ | |||
+ | note that the | ||
+ | <code php> | ||
+ | <p style="page-break-before: always"> </p> | ||
+ | </code> | ||
+ | just makes it print on a separate page, if you'd like to save trees then this can be taken out. | ||
+ | |||
+ | == Sample == | ||
+ | |||
+ | Here's an example of what ours looks like. | ||
+ | |||
+ | {{:tutorials:zencartmods:invoice.php.zip|}} | ||
+ | You should be able to mix and match between this mod, the [[barcodeinv.html|barcode mod]], and the [[addrmismatchinv.html|address mismatch mod]]. |