Open the Includes\modules\shipping folder, copy the sto_express.php One more copies, the name is tt_express.php;
Two. Open tt_express.php, ctrl+f call "Find Replacement box" to replace All "sto_express.php" with "tt_express.php", all "Shentong Express" Replace with "Daily Express";
Three. Open the Languages\zh_cn\shipping folder, copy more copies of sto_express.php , rename to tt_express.php;
Four. Then open our renamed tt_express.php,ctrl+f to bring up "find replacement box" to replace All "sto_express.php" with "tt_express.php", all "Shentong Express" Replace with "Daily Express" (Note: Step 3.4 is to create a Chinese language pack, if you need to create English and traditional language packs, please open Languages\en_us \shipping and languages\zh_tw\shipping to do step 3.4)
Five. includes/inc_constant.php the No. 237 line plus the corresponding "|tt_express"
= = The original program is:
/* Delivery Method */
Define (' Ship_list ', ' cac|city_express|ems|flat|fpd|post_express|post_mail|presswork|sf_express|sto_express|yto| Zto ');
= = Modified after the program is:
Define (' Ship_list ', ' cac|city_express|ems|flat|fpd|post_express|post_mail|presswork|sf_express|sto_express| tt_ Express|yto|zto ');
Six. admin\templates\shipping_area_info.ht 12th line plus the corresponding such as "| | $shipping _area.shipping_code = = ' tt_express '"
= = The original program is:
{if $shipping _area.shipping_code = = ' EMS ' | | $shipping _area.shipping_code = = ' Yto ' | | $shipping _area.shipping_code = = ' Zto ' | | $shipping _area.shipping_code = = ' Sto_express ' | | $shipping _area.shipping_code = = ' Post_mail ' | | $shipping _area.shipping_code = = ' Sf_express ' | | $shipping _area.shipping_code = = ' post_express '}
= = Modified after the program is:
{if $shipping _area.shipping_code = = ' EMS ' | | Shipping_area.shipping_code = = ' Yto ' | | $shipping _area.shipping_code = = ' Zto ' | | $shipping _area.shipping_code = = ' Sto_express ' | | $shipping _area.shipping_code = = ' Post_mail ' | | $shipping _area.shipping_code = = ' Sf_express ' | | $shipping _area.shipping_code = = ' Tt_express ' | | $shipping _area.shipping_code = = ' post_express '}
Seven. Finally go to the background to update the site cache, complete the plugin Add.
Ecshop Add a new shipping method