Comments (3)
Hi @vinaykumar9999,
I use product.info.addto
block to adding buynow button in product view page. But product view page of ultimo theme is fully customized and this block is not available in product view page.
So you can call buynow button phtml file to product/view.phtml
of ultimo theme by this code:
Add this code in view.phtml file after addtocard button:
<?php echo $this->getLayout()->createBlock("Magento\Catalog\Block\Product\View")->setTemplate("Prince_Buynow::buynow-view.phtml")->toHtml(); ?>
from magento2-buynow.
Hi Prince
I have added the code in product/view.phtml. It is showing up on product page.
But there is no code for add to cart in view.phtml. Please find the attached view.phtml
There is code for addtocart button in list.phtml, but when i am adding code in list.phtml buynow button is not showing up.
After adding code in view.phtml. Coming like this in screenshot
How to show Buy Now button just in side of Add to Cart Button
from magento2-buynow.
Just apply float:left
in css to buy now button class.
from magento2-buynow.
Related Issues (20)
- Buy Now Button not redirected to checkout page HOT 1
- Buy Now Not working with configurable product HOT 2
- Buynow not working, after clicking buy now button its redirecting to checkout without product. HOT 3
- Buy now not working for configureable products, magento 2.3.2 HOT 1
- Not Redirecting to Checkout Page on second time HOT 1
- Buy now not working on list page HOT 1
- Buy Now Button Size is not symmetrical to Add to cart HOT 1
- buy now not working in configurable product page HOT 1
- Buy Now not working HOT 1
- Not working as expected. HOT 1
- Custom code for Buy Now button to put in File HOT 1
- Buy Now button not redirecting to onestep checkout page HOT 2
- Buy Now Not working HOT 2
- Buy now button change to Add to Cart HOT 1
- Notice: Undefined variable: escaper HOT 1
- Module works fine but at some points,the qty is added twice when clicking buynow from product detail page. HOT 2
- Buy Now Button is Not Showing HOT 1
- Bug in buy-now.js HOT 1
- Feature Request: Restore Other Cart Products After Placing Order When "Keep Cart's Products" is Set to No HOT 2
- For Configurable product what we can do? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2-buynow.