WordPress Coupon Plug-in DRP coupon use and optimization

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

WordPress Coupon Plug-in DRP coupon use and optimization

This is a foreign plug-in, do coupons students can try,

The coupon you generate can be clicked to open the link and copy the discount code. The function is not bad.

How to use:

After you set up the coupon, you can add the corresponding coupon in the article.

When you add an article, select the location of the coupon: figure.

  

The small button on the right side of the add media is. Click to jump out of the selection coupon interface, you can choose.

Article add coupon display effect as shown in figure:

  

Related issues:

The shadow today is going to talk about DRP Coupon coupons plug-in Some of the issues and considerations.

1. Database coding

Just install the classmate, usually the background install plug-in search DRP Coupon can be installed online.

Modify the Database field encoding after installation.

Find the DRP coupon 6184.html "> datasheet, encode the fields

Change from Latin1_swedish_ci to Utf8_general_ci to support normal display in Chinese

As shown in the figure:

  

2. Coupon Link entered

When adding coupons, we will enter a merchant link.

The default is to enter a link address with no http://

Some students want to enter the https://link address, found in the foreground coupon open address will be wrong.

For example, https://www.menglei.info/turned into a http//www.menglei.info/.

To solve this problem, code modification is needed.

Find File drp_coupon.php Open

Find the location shown in the figure:

  

Modify the following code in approximately 354 lines:

Modified to:

(Tips: If you are a copy party, please copy the comma in the code, single quotes, double quotes, and other characters for the English half angle.) )

Use an If statement to determine whether a linked address is http://beginning or https://, and automatically adding http://for no opening.

3. Coding problems.

Open the plug-in file with notepad++ and change the encoding to UTF-8 to support Chinese.

(Tips: Change the file encoding method, first cut all the code, and then format > to UTF-8 no BOM format coding, and then paste the original code. )

For example:

Modify

Expiration Time: Format ("m/d/y"): ' Never Expires ';? >

There will be no garbled problems.

4. The problem of Chinese translation

If the text in the Web page, it is necessary to carry out the third step of the code conversion.

The background of the Chinese, they can find relevant content, to replace Chinese characters, can be.

Before the Chinese, it is recommended to back up

If garbled, please encode the conversion operation.

About DRP Coupon coupon Plug-ins related issues, sorted here, if there are new discoveries, will continue to write.

Shadow original original source link: http://www.menglei.info/1095/reproduced please link form annotated source, thank you for your cooperation.

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.