Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
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')->...
Baby in Magento's user avatar
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-...
Max's user avatar
  • 176
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="...
Baby in Magento's user avatar
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=...
Max's user avatar
  • 176
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 ...
Joey's user avatar
  • 581
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 : &...
Baby in Magento's user avatar
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-...
Ben Crook's user avatar
  • 15.7k
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 ...
Krupali's user avatar
  • 379
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 ...
vasilisdmr's user avatar