Novice tutorial: magento separate payment plugin

Source: Internet
Author: User
Tags .mall aliyun app create default directory distribution example

Intermediary trading http://www.aliyun.com/zixun/aggregation/6858.html"> SEO diagnostic Taobao customer hosting technology hall

magento separate payment plugin

Last time to others to do station payment, after the end of the file is not backed up, the other brother to modify this plug-in, in fact, is looking for documents, write down here, let buddies familiar with magento

Take Tpay as an example:

File distribution, starting from the site's root directory:

/app/code/local/Company/Tpay/app/design/frontend/default/default/template/Tpay/app/design/frontend/default/OSG/layout/Tpay.xml/app/etc/modules/Company_Tpay.xml

Related files and directories download down on the corresponding directory, even finishing

When needed, directly cover the root directory of the website;

Style files are not independent, so need to adjust the staff to look;

Generate a folder corresponding to the directory, I believe Baidu search a lot, but used unhappy, I wrote directly in php one, usually directly used in the editor to execute it:

PHP CREATE DIR PATH

/ ** * @author ado * @copyright 2012 * Create directory * / $ path = '/ app / etc / modules /'; $ root = 'F: \ Desktop \ magento_Tpay Payment Plugin'; $ path = str_replace (array $ Path = trim ($ path, DIRECTORY_SEPARATOR); $ _ parhArr = explode (DIRECTORY_SEPARATOR, $ path); $ root = rtrim ($ root, DIRECTORY_SEPARATOR); $ foreach ($ _ parhArr as $ _path) {$ root. = $ _ path.DIRECTORY_SEPARATOR; if (! is_dir ($ root)) {mkdir ($ root, 0777);}}

Use is very simple, as long as the change path, the operation will create the corresponding folder in the root directory

Related Article

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.