https://github.com/mageprince/magento2-buynow
The Buy Now extension for Magento 2 enhances the shopping experience by allowing customers to make instant purchases with a single click. It adds a "Buy Now" button to product pages, enabling customers to bypass the cart and proceed directly to the checkout page.
https://github.com/mageprince/magento2-buynow
adobecommerce buynow customer-experience free-extension free-module magento2 magento2-extension magento2-extension-free magento2-module magento2-module-free mageprince mageprince-buynow mageprince-extensions
Last synced: 6 months ago
JSON representation
The Buy Now extension for Magento 2 enhances the shopping experience by allowing customers to make instant purchases with a single click. It adds a "Buy Now" button to product pages, enabling customers to bypass the cart and proceed directly to the checkout page.
- Host: GitHub
- URL: https://github.com/mageprince/magento2-buynow
- Owner: mageprince
- Created: 2017-02-25T06:40:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-05-04T08:22:13.000Z (about 1 year ago)
- Last Synced: 2025-10-24T08:16:57.988Z (8 months ago)
- Topics: adobecommerce, buynow, customer-experience, free-extension, free-module, magento2, magento2-extension, magento2-extension-free, magento2-module, magento2-module-free, mageprince, mageprince-buynow, mageprince-extensions
- Language: PHP
- Homepage: https://mageprince.github.io/magento2-buynow/
- Size: 91.8 KB
- Stars: 83
- Watchers: 4
- Forks: 36
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](//packagist.org/packages/mageprince/module-buynow)
[](//packagist.org/packages/mageprince/module-buynow)
[](//packagist.org/packages/mageprince/module-buynow)
[](//packagist.org/packages/mageprince/module-buynow)
[](https://scrutinizer-ci.com/g/mageprince/magento2-buynow/?branch=master)
[](https://scrutinizer-ci.com/code-intelligence)
# Magento 2 Buy Now
The Buy Now extension for Magento 2 streamlines the purchase process by adding a “Buy Now” button on product pages. With a single click, customers can skip the cart and go straight to checkout, making quick purchases faster and more convenient.
Admin Configuration: `Admin > Stores > Configuration > MagePrince > Buy Now`
# 🚀 Installation Instructions
### 1. Install via composer
Run the following command in the Magento 2 root folder:
composer require mageprince/module-buynow
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
### 2. Install manually (Not recommended)
Copy the content of the repo to the app/code/Mageprince/BuyNow folder and run the following command in the Magento 2 root folder:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
# ⚠️ Notice
We do not provide support for placing the Buy Now button on related products, upsell blocks, wishlist, or any other custom locations, as this would require overriding Magento core .phtml files — something we strongly advise against in extension development. Many free and paid Buy Now modules override core files, which can lead to maintenance and upgrade issues.
# 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(\Mageprince\BuyNow\Block\Product\ListProduct::class)
->setProduct($_item)
->setButtonTitle('Buy Now')
->setTemplate('Mageprince_BuyNow::buynow.phtml')
->toHtml();
echo $buyNowBtnHtml;
Change `$_item` to current product object.
You can use the code above to display the Buy Now button wherever you want on your product page. Just remember not to paste this code into the add to cart form or any other form. Put the code after `` tag. Below is a screenshot showing how to use the code.
**Sample template:** _vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml_

# 🤝 Contribution
Want to contribute to this extension? The quickest way is to open a pull request on GitHub.
# 🛠 Support
If you encounter any problems or bugs, please open an issue on GitHub.
# 📸 Screenshots
### Product view page

### Product list page

### Custom product template with buy now code
