Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
139 views

CSS put in block not reflecting in magento 2

in magento 2.3.5p2 In Admin Panel Content > Elements > Blocks a Block has been created to showcase a list of products for promotion The content of the block is as below <img src="{{media ...
Mohd Farhan Bin Ramli'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
2 answers
2k views

Magento 2 add custom static block on product detailed page next o addtocart button

I am working with the Magento2, in that, I like to add a custom block on product detailed page, next to add to cart button. for that, i wrote the below code on catalog_product_view.xml <body&...
senthil's user avatar
  • 1,739
0 votes
1 answer
2k views

how to get current products custom attribute value in block(phtml) to display in products details page magento2?

Here i am trying to get current products custom attribute value in block(phtml) and after that i want to show these custom attributes values in products details page using block,phtml file ...
Hitesh Balpande's user avatar
0 votes
1 answer
32 views

What are the cases in which $this from a custom theme's template does not recognize the theme's appropriate block?

Pardon me for my lack of Magento knowledge in advance. I'm adding custom functionality to a theme like this: app/code/local/Myvendor/Mymodule/Block/Catalog/Product/View.php: class ...
Ricardo Bastos's user avatar
2 votes
1 answer
304 views

Help create a block to insert view.phtml

Help create a block to insert view.phtml. I have a layout file that outputs to buy in one click in the right column. I need to put this block alongside a buy button. <checkout_cart_index> &...
Alex Nkl's user avatar
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
4 answers
218 views

Magento 1.9.x - Blocks not being displayed from local module

I am creating a module to add some extra call to action buttons. I cannot get an output to display. I believe I am getting either the naming conventions or the file location (or both) wrong. It may ...
OsulliP's user avatar
  • 31
2 votes
1 answer
355 views

Replace default price template in product view

I'd change the default catalog/product/price.phtml I've tried already: <reference name="catalog_product_price_template"> <action method="addPriceBlockType"><type>simple</...
apedic's user avatar
  • 923
18 votes
6 answers
24k views

Remove "product information, reviews, tags" block from product page

I am trying to remove a certain block from my product page in Magento, but can't seem to find where I should delete it. I think it's somewhere in the XML files, but since I'm not that good of a web-...
Jennie's user avatar
  • 339
6 votes
2 answers
3k views

Remove block from group

How do I remove a block from a group? In catalog.xml there are (around line 210) actions like: <block type="catalog/product_view_description" name="product.description" as="description" template="...
Akerus's user avatar
  • 402
1 vote
1 answer
7k views

How can I move the Related Products to specific location on view page

I'm having trouble moving the related products block to a specific area on my view page. I'd like to move the block right above the easy-tabs but when I try to specify either above=...
SR_Magento's user avatar
  • 5,229