All Questions
Tagged with product-view phtml
9 questions
17
votes
2
answers
57k
views
call static block in view.phtml insted of phtml file
we are displaying text field in view page to check COD availability.
view.phtml
echo $this->getLayout()->createBlock('core/template')->setTemplate('checkdelivery/checkdelivery.phtml')->...
2
votes
1
answer
896
views
How to access a variable declared in a phtml from another phtml?
I have inserted two blocks in the catalog_product_view.xml file:
<block class="Magento\Catalog\Block\Product\View" name="product.info.custom-product-attributes" template="product/view/custom-...
1
vote
1
answer
245
views
use phtml code instead of xml code to display reviews
i added below code in catalog.xml file , now reviews section is displaying in product view page. but i want to display that only under particular tab.
<block type="review/product_view_list" name="...
0
votes
1
answer
404
views
How to call displayProductStockStatus() method from a custom block?
in catalog_product_view.xml of my theme I have a block like this
`<block class="Magento\Catalog\Block\Product\View" name="extra.product.info" template="product/view/extra-product-info.phtml" after=...
0
votes
2
answers
992
views
How to use category image in detail page?
I need to display relevant category image alongside product detail page. I need to display product's sub category image. Im using custom phtml file to display logo image on top of/before the product ...
0
votes
1
answer
335
views
remove multiple price value from product page
in this configurable product
under check delivery Availabilty text, you can see price Rs 100, 2 times.
i want to remove one and i want to display only one price as like in this link
view.phtml :
&...
0
votes
1
answer
559
views
M2 - Markup changing when a product has been added to wishlist
For some reason adding a product to my wishlist changes the markup of my add to wishlist button.
Screenshots:
Before adding to wishlist
<a href="#" class="action towishlist wishlist-button" data-...
0
votes
3
answers
911
views
Magento 2 : Call custom file in virtual product view page
I want to call my custom phtml file in virtual product's view page. That file will call within form of that page so my data are post on add to cart.
I already develop a code for this purpose and ...
0
votes
1
answer
67
views
Products don't appear in the products view page as they should
The problem i am dealing with is the following, i have added 5 products in my site which are displayed in a slider in the homepage, but when i click on a certain product i can see the page menu, both ...