All Questions

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

Magento 2.2.6 - Change the product name title

how I can change products name attribute. I create a new attribute second_name and I assigned to all products, now I want this attribute to replace the default name attribute. I need to change this on ...
0
votes
2answers
137 views

Blank Page with Front End Template in Controller

I have a controller that needs to display text, but I get a blank page. Here is what I have: Controller/Index/Index.php namespace Veratad\AgeVerification\Controller\Index; use Magento\...
0
votes
2answers
80 views

Magento Override frontend template in custom module file

I want to override the contact page frontend from my module file. To override the frontend template of contact form, i have created module and in that module i have created layout file mymodule.xml ...
2
votes
1answer
2k views

Magento 1.9 add layout and template to custom module in admin

I am new to Magento. When I try to create a custom module that shows two tabs on the main page with the option to change titles, backgrounds, and colors, I was successful in adding the module's tab ...
1
vote
1answer
33 views

Adding a preview product section on the product page

I am fairly new to the Magento platform so excuse my lack of knowledge! I'm working on a Magento 2 project. I need to add a preview section for my products. Ideally, it would be between the product-...
0
votes
0answers
56 views

Find referenceContainer in Magento 2.1 module

This is my first attempt to write a Module for Magento 2.1 I have read the documentation for referenceContainer that is not very helpful, I would like to know how can I access and apply my change in ...
0
votes
2answers
262 views

Can't override only template on custom module (uppercase problem)

The problem is I have the vendor name capitalized, and then, don't know why the overrides don't work. Only when you want to change the template but still using default block. For example: Override ...
1
vote
1answer
905 views

customer_account_create override not loading template

I created a module Pera_CustomerRegistration, i want to override /app/code/Pera/CustomerRegistration/view/frontend/template/form/register.phtml However, when i try to all i got is is an empty page ...
3
votes
0answers
600 views

Magento 2 - Display subcategories above product listing

I'm trying to display the first 8 subcategories above the product listing on a select few category pages. I know that I can easily do this using static blocks, but I'd rather use a custom template ...
6
votes
5answers
3k views

Magento 2: unable to override product/view/addtocart.phtml from my module

I am trying to customize the product/view/addtocart.phtml template in my extension. I was already able to customize other templates but for this one it just won't work. I found the template is ...
1
vote
1answer
1k views

can't add child block by reference in custom layout file (solved) [closed]

I'm trying to add new block to billing form in my custom layout file. I've debugged method getFileLayoutUpdatesXml from Mage_Core_Model_Layout_Update and i see that my file is loaded. I have the ...
0
votes
0answers
3k views

Magento 2 - Update Cart Block with Custom Discount Value

Magento 1.9 version - Controller file protected function myAjax() { $layout = $this->getLayout(); Mage::getSingleton('checkout/session')->setCartWasUpdated(true); $totalsBlock = $...
5
votes
2answers
14k views

Magento 2 - Custom Page Layout

I wish to add a custom home page layout in Magento 2. In Magento 1, it's very simple, i create my module : <?xml version="1.0"?> <config> <modules> <Vendor_Custom>...
15
votes
5answers
12k views

Magento 2: How to set custom template for core block

I'm trying to override the register.phtml in my module, but it seems there are some config problem that make Magento unable to use my custom template to override the one in core module. I've checked ...
8
votes
1answer
7k views

Cannot get custom frontend ajax layout to load

I always have challenges identifying the proper handles for everything, so please bear with me here. I've scoured Google, SE, and tried myriad variations, with no luck. (And yes, I've used ...
3
votes
2answers
7k views

Load Custom Admin Template

Developing a simple custom module, and the hardest part is getting the template to load in the admin. I'm sure I'm missing something simple (but important). The template will not load. I believe ...
0
votes
1answer
142 views

layout handle for add button to newsletter edit template in adminhtml

I develop module for add new button in newsletter edit template in adminhtml. And don't know which layout handle must use in my layout xml. I try something like this but did not work: <layout ...
14
votes
2answers
32k views

Adding custom layouts for CMS and Category use with custom module trouble

I have a category in my store that requires a totally different layout to the standard Magento layouts. So I created a new copy of the 1column.phtml and renamed it and made one small change to test. ...