maniyatech/magento2-buynow
Composer 安装命令:
composer require maniyatech/magento2-buynow
包简介
Instant "Buy Now" button for Magento 2 product pages to speed up checkout and improve user experience.
README 文档
README
The ManiyaTech Buy Now module for Magento 2 adds a powerful "Buy Now" button to your product listing, view, search, and advanced search pages. It allows customers to bypass the regular add-to-cart flow and proceed directly to checkout — improving conversions and offering a faster purchase experience.
Key Features
- ⚡ Enable/Disable Buy Now Globally: Toggle the entire module with a single switch from admin.
- 📄 Flexible Page Targeting: Enable "Buy Now" on:
- Product listing (category) pages
- Product view (detail) pages
- Search results page
- Advanced search results page
- 🧠 Smart Cart Management: Option to either:
- Empty the cart before Buy Now (single product checkout), or
- Keep existing products in the cart
- ✏️ Customizable Button Title: Set your own Buy Now button label via system config.
- 🧩 Injectable Custom Button Code: Easily add the "Buy Now" button to custom templates using the provided HTML snippet.
- 🔐 FormKey & Session Validation: Secure request handling ensures Magento standards are met.
- ✅ Admin Configuration Ready: Fully integrated with Magento's native system config for seamless backend control.
Add Buy Now in custom template
If you wish to add the button to custom product templates, use following code snippet:
$buyNowBtnHtml = $this->getLayout()
->createBlock(\ManiyaTech\BuyNow\Block\Product\ListProduct::class)
->setProduct($_item)
->setButtonTitle('Buy Now')
->setTemplate('ManiyaTech_BuyNow::buynow.phtml')
->toHtml();
echo $buyNowBtnHtml;
Change $_item to current product object.
How to install ManiyaTech_BuyNow module
Composer Installation
Run the following command in Magento 2 root directory to install ManiyaTech_BuyNow module via composer.
Install
composer require maniyatech/magento2-buynow
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
Update
composer update maniyatech/magento2-buynow
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
Run below command if your store is in the production mode:
php bin/magento setup:di:compile
Manual Installation
If you prefer to install this module manually, kindly follow the steps described below -
- Download the latest version here
- Create a folder path like this
app/code/ManiyaTech/BuyNowand extract themain.zipfile into it. - Navigate to Magento root directory and execute the below commands.
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
maniyatech/magento2-buynow 适用场景与选型建议
maniyatech/magento2-buynow 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 07 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 maniyatech/magento2-buynow 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 maniyatech/magento2-buynow 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2025-07-17