skip to content
AdaWiki
User Tools
Log In
Site Tools
Search
Tools
Show page
Old revisions
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
You are here:
start
»
tutorials
»
zencartmods
»
tariffhelper.html
Trace:
tutorials:zencartmods:tariffhelper.html
==== Making an Admin Helper File ==== {{:tutorials:zencartmods:tariff.png|}} So now we've got tariffs on each product and that's great, but maybe we have lots and lots of products and adding tariff data to each one individually through zen cart's clunky product interface isn't feasible. If this is the case, we'll need a custom Tariff info Editing file, and while we're at it lets put it in the dropdown menu under "Catalog". New Files: * admin/includes/boxes/extra_boxes/edit_tariffs_catalog_dhtml.php * admin/includes/extra_datafiles/edit_tariffs_definitions.php * admin/includes/languages/english/extra_definitions/edit_tariffs.php * admin/edit_tariffs.php This tutorial requires the [[tariff.html|Tariff Mod]] to function. === admin/includes/boxes/extra_boxes/edit_tariffs_catalog_dhtml.php === the name of this file decides which menu item the link will be under. If you want to put it somewhere else, say in "Tools", just call this file edit_tariffs_tools_dthml.php This is the entire contents of this file <code php> <?php $za_contents[] = array('text' => BOX_CATALOG_EDIT_TARIFFS, 'link' => zen_href_link(FILENAME_EDIT_TARIFFS, '', 'NONSSL')); ?> </code> === admin/includes/extra_datafiles/edit_tariffs_definitions.php === This is the entire contents of this file <code php> <?php define('FILENAME_EDIT_TARIFFS', 'edit_tariffs.php'); ?> </code> === admin/includes/languages/english/extra_definitions/edit_tariffs.php === All thats in this one <code php> <?php define('BOX_CATALOG_EDIT_TARIFFS','edit tariffs'); ?> </code> === admin/edit_tariffs.php === This is the actual Helper File. You can put anything you want in here, or use the quick and easy tariff editing file that we've already created. {{edit_tariffs.php.zip|edit_tariffs.php.zip}}
/home/ladyada/public_html/wiki/data/attic/tutorials/zencartmods/tariffhelper.html.1306355890.txt.gz
· Last modified: 2016/01/28 18:05 (external edit)
Page Tools
Show page
Old revisions
Backlinks
Back to top