Ecshop Add a new shipping method

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.