Hongmu Notes
Home Practical Collection pbootCMS Manual Payment Plugin
Practical Collection pb tool

pbootCMS Manual Payment Plugin

pbootCMS Manual Payment Plugin

Alipay Face-to-Face Payment Plugin – includes video tutorial!

pbootCMS Manual Payment Plugin

To apply for Face-to-Face Payment on Alipay, simply follow the video tutorial once your application is approved.

bf2a5ae8cf193126

Installation Documentation

Step 1: Copy the files to the website's root directory; these are all newly added files.will notMake modifications to the original pbootCMS system.
Step 2: Apply for an Alipay Face-to-Face Payment Key (search for it yourself on Baidu); Enter the key:\apps\home\controller\PayController.php
Step 3: Create two custom fields in the website backend.
Payment amount:price(The pbootCMS default product model already includes this field; if you are using the product model, you do not need to create this field anew. If you are using the news model, you should delete this extended field from the product model and then add this field to the news model.)

Content displayed after payment:downcontent

Please note: The names of these two fields remain unchanged – do not modify them. If you need to make changes, please adjust the corresponding sections in the file response; for detailed instructions, please refer to the newly added files. For users without a background in coding, it is not recommended to make any modifications.

Step 4: Copy the following code into the appropriate location within your content page template file; e.g.:\template\default\html\product.html

 隐藏内容:评论后查看
<!-- pay -->
<button type="button" id="getOrderQrcode" data-id="{content:id}" data-toggle="modal" data-target="#myModal">点击支付</button>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
</div>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$("#getOrderQrcode").click(function(){
$("#myModal").modal({backdrop: 'static', keyboard: false});
var id = $(this).data('id');
$.ajax({
type: 'POST',
url:"/index.php/Pay/index",
data:{ 'id': id},
async:true,
success:function(result){
$("div.modal-body").html(result);
}});
});
});
</script>
<!-- pay end -->

Video Tutorial:

 

 隐藏内容:评论后查看

Download address
☁️
Download #1
Baidu Skydisk
Download now
微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

pbootCMS Website Builder: Beginner's Tutorial and Practical Source Code

pbootCMS Website Builder: Beginner's Tutorial and Practical Source Code Practical Collection pb tool

This video was recorded spontaneously, so there might be some parts where the explanation isn't perfect – we'd really appreciate your understanding! Download the source code for this video tutorial 🔒 Hidden content: Please leave a comment to access the link: https://pan.baidu.com/s/15kHHZY68jIv-Eun9g2UJfg?pwd=aw05 Extraction code: aw05 – Simply copy this link and open the Baidu Netdisk mobile app to access the content – it'll make things much easier!
👁 262
PBOOTCMS Authorization Code Record

PBOOTCMS Authorization Code Record Practical Collection pb tool

Some time ago, a friend gifted me a mobile device authorization code – reportedly at a considerable cost – without me asking why. Recently, I needed this code again, so I found it and recorded it once more! I have no intention of selling it; it's simply for my own convenience when looking it up. If you're interested, please visit the official website. 🔒 Hidden content: Paid subscription – 'sn' = '3822550667', // Authorized user's phone –' sn_user' =...
👁 200
Insert related articles in the middle of imperial cms articles (article page optimization, the effect is super good)

Insert related articles in the middle of imperial cms articles (article page optimization, the effect is super good) Practical Collection empire plugin

Those who understand will know – this feature allows you to aggregate related articles. By displaying these articles in the middle of the main content, it not only enhances the user experience but also achieves effective optimization. I've noticed that many high-authority websites are already using this feature, so I spent several hours researching it and wrote this tutorial! The benefit for website optimization is significant – I'm sure even seasoned SEO experts will agree! This feature was suggested to me by an experienced website optimization expert; I hope it will be helpful to all webmasters! Whether you run a content aggregation site or...
👁 474
EmpireCMS AutoTitlePic – Automatically generates title images

EmpireCMS AutoTitlePic – Automatically generates title images Practical Collection empire plugin

AutoTitlePic – a plugin that automatically generates article title images. When building a website, image copyright issues often arise; in such cases, having a plugin to generate thumbnails becomes extremely important! I have customized this plugin by adding a scheduled generation feature, allowing images to be automatically generated during periods of low site traffic – this can be seamlessly integrated with the scheduled tasks functionality in Baota. Key features: 1. Easy installation and simple to use; compatible with both existing and new websites. 2....
👁 419
High-Speed Rail Data Collector – PHP Title Tokenization Plugin

High-Speed Rail Data Collector – PHP Title Tokenization Plugin Practical Collection High-speed rail collection

I wonder if any webmasters have encountered this issue while using the High-Speed Rail Data Collector for data scraping: the article tokenization performance is not quite satisfactory! Well, how unsatisfactory – most of you have probably tried it already, so I won't dwell on it further. Instead, let me introduce the plugin directly. Plugin functionality: Tokenizes scraped article titles. It requires the presence of both "Keywords" and "Tags" tags; you can configure the tokenization to target either keywords or tags separately. Plugin demo: This shows three rounds of tokenization...
👁 2686
Empire CMS 7.5 Baidu Active/Batch Push Plugin

Empire CMS 7.5 Baidu Active/Batch Push Plugin Practical Collection empire plugin

This plugin is compatible with EmpireCMS 7.5 and 7.2 (UTF-8 versions); its installation and uninstallation process is simple and straightforward. Many novice webmasters using EmpireCMS may often struggle with how to automatically push newly published articles to Baidu in real time. If website articles are not regularly submitted to Baidu, website indexing will be significantly delayed, which can negatively impact SEO performance. Especially for content aggregators, manually submitting articles would be a tedious and time-consuming task...
👁 341

Recommended reading

(Adaptive mobile version) Responsive construction machinery equipment PBootCMS website template – Download HTML5 excavator website source code – 0650

(Adaptive mobile version) Responsive construction machinery equipment PBootCMS website template – Download HTML5 excavator website source code – 0650 Practical Collection pbootcms Template

A responsive website template for construction machinery and excavators using PbootCMS, compatible with both PC and WAP devices. The design features a bold yellow color scheme, ideal for showcasing excavators, construction machinery products, and project cases. This template helps construction machinery companies showcase their products online and attract clients in the construction and mining industries. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5...
👁 53
PHP – Extract the content between two specified strings from a web page.

PHP – Extract the content between two specified strings from a web page. Language Notes PHP PHP collection

To extract the content between two specified strings from a web page, you can use the following regular expression: $pattern = '/string1(.*?)string2/is'; This regular expression matches the content between string1 and string2 and uses the (.*?) quantifier to capture that content. Here is an example code snippet: // Extract the HTML content from the target URL...
👁 283
Hua Mu Nursery Greenery Seedling Base Website Template 0721

Hua Mu Nursery Greenery Seedling Base Website Template 0721 Practical Collection Yiyou template

This EyouCMS template is ideal for flower and tree nurseries as well as landscaping苗木 bases. Its fresh and natural design style is perfect for showcasing苗木 products, plant varieties, cultivation sites, and landscaping projects. It helps苗木 businesses showcase their products online and expand their sales channels. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (Ey...
👁 49
(PC + WAP) Automotive Parts Lubricants – PBootCMS Website Template; Download Source Code for Automotive Repair 4S Store Websites – 0651

(PC + WAP) Automotive Parts Lubricants – PBootCMS Website Template; Download Source Code for Automotive Repair 4S Store Websites – 0651 Practical Collection pbootcms Template

A PbootCMS website template designed for the automotive parts, lubricants, and auto repair industry, supporting both PC and WAP devices. Its robust and professional design effectively showcases automotive parts products and repair services. This template helps automotive parts manufacturers or 4S dealership repair businesses build their online brand identity and expand their sales channels. Template Display | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin...
👁 47
Responsive Green Agricultural Products Website Template 0722

Responsive Green Agricultural Products Website Template 0722 Practical Collection Yiyou template

An EyouCMS responsive website template designed specifically for the green agricultural products industry. Its fresh and natural design is ideal for showcasing agricultural products, organic farming practices, brand stories, and sales information. This template helps agricultural brands effectively present their products online and attract health-conscious consumers. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | Eyou...
👁 35
(Adaptive mobile version) Responsive online education and training website template (PBootCMS); Educational institution website source code – 0652

(Adaptive mobile version) Responsive online education and training website template (PBootCMS); Educational institution website source code – 0652 Practical Collection pbootcms Template

A responsive online education and training PbootCMS website template compatible with both PC and WAP devices. Featuring a modern educational design, this template is ideal for K–12 schools, vocational training institutions, and other organizations wishing to showcase their courses and faculty. It helps educational institutions establish online teaching platforms and expand their student recruitment channels. Template Preview | Installation Instructions | Website Backend: /admin.php | Username: admin | Password: admin | Extraction Password: www.4s5.cn...
👁 46