ManiyaTech BuyNow module for Magento 2
maniyatech/magento2-buynow
Adds a "Buy Now" button to product listings and pages, allowing customers to skip the cart and go directly to checkout. Provides a faster purchase process.
Build Tests
Code Quality
Recent Test History
Each release is tested against the latest Magento version at that time.
No test history available yet.
Share This Module's Status
README
Loaded from GitHubManiyaTech BuyNow module for Magento 2
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
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
This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.