Unanswered Questions
627 questions with no upvoted or accepted answers
9
votes
1
answer
2k
views
Magento 2 - Move the afterMethods item (Discount and Gift Card Code) to the Order Summary sidebar
I would like to move the afterMethods xml item which contains the Discount Code and Gift Card code under the billing-step in the module-checkout/view/frontend/web/checkout_index_index.xml so that it ...
7
votes
0
answers
949
views
Magento 2: How to override cacheable="false" in layout in your own theme
We use a third party extension wich lets us add bundles with specific discounts to product pages. The problem is that they added a default.xml with the following code:
<block class="Magedelight\...
6
votes
5
answers
6k
views
$block->getViewModel() returning NULL
I am overriding the layout and adding ViewModel in that layout but when I try to fetch the ViewModel getting below error
PHP Fatal error: Uncaught Error: Call to a member function getCodes() on ...
6
votes
1
answer
1k
views
How to ignore(remove) <update handle="name" added in other layout
module-sales/view/frontend/layout/sales_order_view.xml
has following code:
<update handle="sales_order_info_links"/>
Is there any pretty way to remove such updates?
p.s. I know about removing ...
6
votes
0
answers
227
views
Remove Trailing Slash from Footer Links added via addLink
I have added several links in my layout.xml like this:
<action method="addLink" translate="label title">
<label>XYZ</label>
<url>xyz</url>
<title>...
5
votes
0
answers
1k
views
Move Elements on Magento 2 Product Page
I have the Porto Theme installed on my website using Magento 2.2.5.
I would like to move a couple of Elements on the Product page but only for specific products.
I have attached a screenshot of how ...
5
votes
0
answers
2k
views
Magento 2 - Move Category Page Toolbar/Sorting Options Above Both Columns
What I'm trying to do is move the toolbar/sorting options on the category page above the left column and right column so it spans the full width of my content area. I'm trying everything and nothing ...
5
votes
1
answer
1k
views
Magento 2 - assign custom email template to specific payment method
What is the proper way to assign custom email template to specific payment method upon creating an order? For example:
When choosing a Bank transfer payment method on the checkout it should send ...
5
votes
0
answers
2k
views
After assign custom home page layout getting blank page in Magento2
Magento2 by default provide 1column, 2columns-left, 2columns-right, 3columns layout and I want to set new layout for my Homepage so I do below process.
First copy 2 files from this path
1. ...
5
votes
1
answer
950
views
How can i remove update handle in magento 2
I have removed blocks from xml file using <referenceBlock name="page.top" remove="true" /> but how can i remove <update handle="customer_account"/> from the layout file.
5
votes
2
answers
1k
views
Custom page layout not working
Im going crazy here. Can't get this to work. I'd like to make a custom page layout like the 1column, 2columns-left etc.
I've searched and read multiple tutorials all doing the same. Nothing works ...
4
votes
2
answers
844
views
Magento 2 - Load values in di.xml from a helper class
Currently the template is defined like this:
Company/PdfDesign/etc/di.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
4
votes
0
answers
303
views
Call a Shipping field from front end to backend Magento 2 Layout processor
I have added a custom delivery date option in shipping method on front end using layout processor and it is showing and working fine. Is there any way to merge or call the same method in backend order ...
4
votes
0
answers
107
views
Product's "Layout Update XML" code disappears from the site every 24 hours
I have some products with "Layout Update XML" Design updates (simple XML pointing to a template file; very basic and in the correct format). Every 24 hours after a cache flush, the code vanishes from ...
4
votes
1
answer
2k
views
Magento 2 Blank Layout Page
I tried to create a new tab in customer edit backend.
First i create the
app/code/Namespace/Point/view/adminhtml/layout/customer_index_edit.xml
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...