Giter VIP home page Giter VIP logo

mageprince / magento2-buynow Goto Github PK

View Code? Open in Web Editor NEW
67.0 6.0 32.0 91 KB

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.

Home Page: https://mageprince.github.io/magento2-buynow/

PHP 51.54% HTML 23.25% JavaScript 21.52% Less 3.69%
magento2 magento2-extension free-extension buynow adobecommerce free-module magento2-extension-free magento2-module magento2-module-free mageprince

magento2-buynow's People

Contributors

ecoprince avatar hbprincepatel avatar mageprince avatar pprincepatel avatar princektpl avatar themist8 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

magento2-buynow's Issues

Module fails in product view with configurable products Magento 2.2.6

Hi,
i'm facing this error in product view, when the product is configurable:
PHP Fatal error: Uncaught Error: Call to a member function isSaleable() on null in /var/www/html/vendor/mageprince/module-buynow/view/frontend/templates/buynow-list.phtml:4

It works fine with simple products.

What can i do to fix this issue?
Thanks in advance,
Antonio

Position

Hello sir am using your module pincode cheker and buynow button with a custom theme but after installing your module all goes right exect the button position you can check my website xenbarg.in please sir how to fix it..

Module is not working to the third Party theme

I installed this module to third party theme to check that, but the module is working on fresh luma theme. In the third party theme, it just working for Configurable products but not working for simple products.

Could you check it to third party theme ?

Thanks

Not Redirecting to Checkout Page on second time

Hi,

I have installed & configured this module and its working for first time and its not redirecting to the checkout page when I proceed Buy now button on second time on the same product?

Steps to Reproduce the Issue.

  1. Go to Product page and click on Buy Now button and its goes to Checkout page
  2. After that Go to same product page and click on Buy Now button but its not goes to Checkout Page and its loading the same product page instead of going to Checkout page.

Expected Result :
When we click on the Buy Now button on product page then it should always redirect to Checkout Page

Can you please check it?

Thanks.

There has been an error processing your request in magento 2.1

I am using magento version 2.1.6
I had installed this extension and getting the error as follow.
a:4:{i:0;s:37:"Object DOMDocument should be created.";i:1;s:11852:"#0 /home/reinvent/public_html/vendor/magento/framework/View/Element/UiComponent/Config/Reader.php(95): Magento\Framework\View\Element\UiComponent\Config\DomMerger->getDom() #1 /home/reinvent/public_html/vendor/magento/module-ui/Model/Manager.php(258): Magento\Framework\View\Element\UiComponent\Config\Reader->read() #2 /home/reinvent/public_html/vendor/magento/module-ui/Model/Manager.php(166): Magento\Ui\Model\Manager->prepare('product.buynow....') #3 /home/reinvent/public_html/vendor/magento/framework/View/Element/UiComponentFactory.php(144): Magento\Ui\Model\Manager->prepareData('product.buynow....') #4 /home/reinvent/public_html/vendor/magento/framework/View/Layout/Generator/UiComponent.php(124): Magento\Framework\View\Element\UiComponentFactory->create('product.buynow....', NULL, Array) #5 /home/reinvent/public_html/vendor/magento/framework/View/Layout/Generator/UiComponent.php(93): Magento\Framework\View\Layout\Generator\UiComponent->generateComponent(Object(Magento\Framework\View\Layout\Data\Structure), 'product.buynow....', Array, Object(Magento\Framework\View\Layout\Interceptor)) #6 /home/reinvent/public_html/vendor/magento/framework/View/Layout/GeneratorPool.php(86): Magento\Framework\View\Layout\Generator\UiComponent->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context)) #7 /home/reinvent/public_html/vendor/magento/framework/View/Layout.php(327): Magento\Framework\View\Layout\GeneratorPool->process(Object(Magento\Framework\View\Layout\Reader\Context), Object(Magento\Framework\View\Layout\Generator\Context)) #8 /home/reinvent/public_html/var/generation/Magento/Framework/View/Layout/Interceptor.php(89): Magento\Framework\View\Layout->generateElements() #9 /home/reinvent/public_html/vendor/magento/framework/View/Layout/Builder.php(129): Magento\Framework\View\Layout\Interceptor->generateElements() #10 /home/reinvent/public_html/vendor/magento/framework/View/Page/Builder.php(55): Magento\Framework\View\Layout\Builder->generateLayoutBlocks() #11 /home/reinvent/public_html/vendor/magento/framework/View/Layout/Builder.php(65): Magento\Framework\View\Page\Builder->generateLayoutBlocks() #12 /home/reinvent/public_html/vendor/magento/framework/View/Page/Config.php(197): Magento\Framework\View\Layout\Builder->build() #13 /home/reinvent/public_html/vendor/magento/framework/View/Page/Config.php(509): Magento\Framework\View\Page\Config->build() #14 /home/reinvent/public_html/vendor/magento/framework/View/Page/Config.php(467): Magento\Framework\View\Page\Config->getElementAttribute('body', 'class') #15 /home/reinvent/public_html/vendor/magento/module-catalog/Controller/Category/View.php(199): Magento\Framework\View\Page\Config->addBodyClass('page-products') #16 /home/reinvent/public_html/var/generation/Magento/Catalog/Controller/Category/View/Interceptor.php(24): Magento\Catalog\Controller\Category\View->execute() #17 /home/reinvent/public_html/vendor/magento/framework/App/Action/Action.php(102): Magento\Catalog\Controller\Category\View\Interceptor->execute() #18 /home/reinvent/public_html/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #19 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Catalog\Controller\Category\View\Interceptor->___callParent('dispatch', Array) #20 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Category\View\Interceptor), Array, 'contextPlugin') #21 /home/reinvent/public_html/vendor/magento/module-store/App/Action/Plugin/Context.php(106): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #22 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Store\App\Action\Plugin\Context->aroundDispatch(Object(Magento\Catalog\Controller\Category\View\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #23 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Category\View\Interceptor), Array, 'customer-app-ac...') #24 /home/reinvent/public_html/vendor/magento/module-customer/Model/App/Action/ContextPlugin.php(61): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #25 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Customer\Model\App\Action\ContextPlugin->aroundDispatch(Object(Magento\Catalog\Controller\Category\View\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #26 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Category\View\Interceptor), Array, 'storeCheck') #27 /home/reinvent/public_html/vendor/magento/module-store/App/Action/Plugin/StoreCheck.php(44): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #28 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Store\App\Action\Plugin\StoreCheck->aroundDispatch(Object(Magento\Catalog\Controller\Category\View\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #29 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Category\View\Interceptor), Array, 'weee-app-action...') #30 /home/reinvent/public_html/vendor/magento/module-weee/Model/App/Action/ContextPlugin.php(112): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #31 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Weee\Model\App\Action\ContextPlugin->aroundDispatch(Object(Magento\Catalog\Controller\Category\View\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #32 /home/reinvent/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Catalog...', 'dispatch', Object(Magento\Catalog\Controller\Category\View\Interceptor), Array, 'tax-app-action-...') #33 /home/reinvent/public_html/vendor/magento/module-tax/Model/App/Action/ContextPlugin.php(91): Magento\Catalog\Controller\Category\View\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #34 /home/reinvent/public_html/vendor/magento/framework/Interception/Interceptor.php(142): Magento\Tax\Model\App\Action\ContextPlugin->aroundDispatch(Object(Magento\Catalog\Controller\Category\View\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #35 /home/reinvent/public_html/var/generation/Magento/Catalog/Controller/Category/View/Interceptor.php(39): Magento\Catalog\Controller\Category\View\Interceptor->___callPlugins('dispatch', Array, Array) #36 /home/reinvent/public_html/vendor/magento/framework/App/FrontController.php(55): Magento\Catalog\Controller\Category\View\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #37 /home/reinvent/public_html/vendor/magento/framework/Interception/Interceptor.php(74): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #38 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(70): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #39 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'requestPreproce...') #40 /home/reinvent/public_html/vendor/magento/module-store/App/FrontController/Plugin/RequestPreprocessor.php(94): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #41 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Store\App\FrontController\Plugin\RequestPreprocessor->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #42 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'install') #43 /home/reinvent/public_html/vendor/magento/framework/Module/Plugin/DbStatusValidator.php(69): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #44 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\Framework\Module\Plugin\DbStatusValidator->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #45 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(63): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...') #46 /home/reinvent/public_html/vendor/magento/module-page-cache/Model/App/FrontController/VarnishPlugin.php(55): Magento\Framework\Interception\Chain\Chain->Magento\Framework\Interception\Chain\{closure}(Object(Magento\Framework\App\Request\Http)) #47 /home/reinvent/public_html/vendor/magento/framework/Interception/Chain/Chain.php(67): Magento\PageCache\Model\App\FrontController\VarnishPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #48 /home/reinvent/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Framewo...', 'dispatch', Object(Magento\Framework\App\FrontController\Interceptor), Array, 'front-controlle...') #49 /home/reinvent/public_html/vendor/magento/module-page-cache/Model/App/FrontController/BuiltinPlugin.php(73): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #50 /home/reinvent/public_html/vendor/magento/framework/Interception/Interceptor.php(142): Magento\PageCache\Model\App\FrontController\BuiltinPlugin->aroundDispatch(Object(Magento\Framework\App\FrontController\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #51 /home/reinvent/public_html/var/generation/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array) #52 /home/reinvent/public_html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #53 /home/reinvent/public_html/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch() #54 /home/reinvent/public_html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http)) #55 {main}";s:3:"url";s:46:"/english1/hair-extensions/hair-extensions.html";s:11:"script_name";s:10:"/index.php";}

does anyone have any idea about that, please help. You help is appreciated.

shop.com/checkout/noroute after click "Buy Now"

Magento ver. 2.2.7
Theme: Solwin Freego
Browser: Chrome v71.0.3578.98

After clicking on "Buy now" URL parameters change to:
shop.com/checkout/#size=167&color=49
and it seems to be loading the Checkout page for a second, but then redirects to 404

Custom code for Buy Now button to put in File

$buyNowHtml = $this->getLayout()
->createBlock('Prince\Buynow\Block\Product\ListProduct')
->setProduct($_item)
->setTemplate('Prince_Buynow::buynow-list.phtml')
->toHtml();
echo $buyNowHtml;

I want this code for Magento 2.3 with Your Latest version of Extension.

There is an issue in "createBlock" line and in "setPorduct" line, I think.

Buy now not working for configureable products, magento 2.3.2

Buy now is working as it should for simple products, but when there is configureable product, the buy now button is able to successfully add the specify child product to the cart, but is not able to redirect. After clicking on url the product is added to cart and then this url - example.com/#color=32
Then it throws a 404 error with this url - example.com/checkout/noroute
I think it is failing to redirect. How to solve this issue?
I am using basic Luna theme with magento 2.3.2

Buy Now not working

Hi,

After clicking the button, it goes to xxx/checkout/noroute/

Can you please solve the issue?

Buy now button not showing on Product Compare Page

Hello,

I have face one issue, we try to compare three product and that page I can't see buy now button.

So, can you please help for display and working buy now button on Product Compare Page ?

In other pages buy now button is working verywell

Thanks in advance...

Regards,
Bhrugesh

Buy Now not working for ajax loaded products

Hello,

we are using your extension for our shop. We added a new Infinitiy Scroll to the catalog Page, which reloads more products with ajax. And our used theme has product Lists on the homepage, which loads products via ajax after the user clicked a categorie.
The problem now is, that the - with ajax loaded - products (in both cases) have the Buy now button, but it is not working right. A click on the button just adds the Product to the cart or simple doesnt do anything.

On the Product Category Page the button is added with your extension and on the Homepage, the button got added directly with programming.

I hope you can help me to get the Buy now also work for ajax loaded Products.

Best Regards

Bug in buy-now.js

i found a bug in js, it's must be element.form

define([
'jquery'
], function ($) {
"use strict";
return function (config, element) {
$(element).click(function () {
var form = $(element.form);
// change form action
var baseUrl = form.attr('action'),
buyNowUrl = baseUrl.replace('checkout/cart/add', 'buynow/cart/add');
console.log(baseUrl);
form.attr('action', buyNowUrl);

        form.trigger('submit');

        // set form action back
        form.attr('action', baseUrl);

        return false;
    });
}

});

Buy now not working on list page

After enable list page option "Yes"... it not working. after add the code on list page ...

I am using magento 2.3.2.
can u plz help ..

Not working - Magento 2.2.2

Not working with magento 2.2.2 default theme. Javascript's stop working, image load forever and tabs doesn't works, button buy now dont work tho...

Notice: Undefined variable: escaper

Magento ver 2.3.6
1 exception(s):
Exception #0 (Exception): Notice: Undefined variable: escaper in /var/www/html/app/code/Mageprince/BuyNow/view/frontend/templates/buynow-view.phtml on line 18

Buy Now button not redirecting to onestep checkout page

Dear Team
I am using magento 2.3.2 and used buy now button with one step checkout page from Mageplaza. The difficulty I am facing is when click on buy now button it redirects me to Magento default 2 step checkout not redirecting to Mageplaza one step checkout while checkout from shopping cart working fine and redirecting to one step checkout

Pl solve this issue

Buy now button is not showing at category page and css issue at detailes page

Hello Prince,
I just installed on magento2.2.6 website.
Buy now is appeared at product detailed page and its working great.
But, Not showing at category page and having css related issue at product details page.

  1. Category page : http://www.depoto.com/vizag/hand-tools/adjustable-spanners/adjustable-spanners-phosphate-finish.html

  2. Product details page : http://www.depoto.com/vizag/long-nose-plier-new.html

And what is the Rest api for this extension to built mobile application?

Thanks

Product is Still in Cart.

After clicking on the buy now button , the product is adding to cart and then redirects to checkout page. If the user click on buy now button, when he redirects to checkout page, then he goes back, the item is in still cart.

Not working in Magento 2.2.1

Hello,
I followed the installation guide but it doesnt show up neither in the storefront nor in the configuration page.

image

I also believe that it should be found in /app/etc/config.php but its not there.

Not working as expected.

Extension not working as expected. Button not showing in list and add to cart and redirect to checkout not working.

BuyNow button works but

The button works, but there is a bug I identified.
When there are products in the cart, it redirects to cart but eliminate all other products.
Any possible fix?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.