All Questions
116 questions
2
votes
1
answer
2k
views
Magento 2: Use Custom Variable in Layout File
We can use Magento default variables in layout file using
<item name="link" xsi:type="string">{{baseUrl}}</item>
I would like to create one variable in Block File & Use it. Like
...
2
votes
1
answer
320
views
Category-Listing on Custom Page
I want to show the category-listing on a custom module-page.
For example: [url]/brandstore/index/listing/brand/1/category/10
I tried to copy the content of the catalog_category_view.xml to my custom ...
1
vote
0
answers
549
views
Magento 2: Custom Module Listing MassDelete Not working [SOLVED] [closed]
When i'm trying to delete all records from Listing, By selecting all. Not able to delete.
app\code\Custom\Module\Controller\Adminhtml\Messages\MassDelete.php
namespace Custom\Module\Controller\...
0
votes
2
answers
1k
views
Magento 2 Custom Module Delete Issue [SOLVED]
I'm using Magento 2 Version 2.1.0
{folder path}\magento2\app\code\Custom\Module\view\adminhtml\ui_component\custom_module_index.xml
<massaction name="listing_massaction">
<argument name=...
1
vote
1
answer
3k
views
Magento 2 Custom Module Frontend Error
I'm using Magento 2 CE Version 2.1.0
I'm following http://www.mage-world.com/blog/how-to-create-a-simple-module-in-magento-2-0.html
I have followed steps when i run it gives below error.
{folder
...
2
votes
2
answers
4k
views
Custom Translation of Backend in Magento 2 - path of the translate.csv?
I am familiar with translations in Magento 1 and found out also how translations in M2 work for the frontend. My questions is where to do my translation for my own custom module for the backend. Is ...
9
votes
6
answers
12k
views
404 Page not found error when I try to access Custom module in Magento 2
I have created 2 custom module inside vendor folder .This is my layout structure :
-app
-code
-Company
-Blog
-HelloWorld
-Controller
-Hello
-World.php
...
1
vote
3
answers
304
views
Can I dynamically change Layouts?
On the view.phtml is it possible to write php to change the layout depending on what item is displayed on that page?
Using code similar to this:
$this->loadLayout()
->...
0
votes
1
answer
211
views
Override do not apply in a custom module
I try to override the mini cart but by changes are not getting applied. I have the following in my di.xml inside custom module
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/...
1
vote
2
answers
52
views
Error on production with custom module
on production server I get main.CRITICAL: Invalid template file: 'my.phtml' in module: MyVendor_myModule, on dev machine everything works fine. How do I debug this?
under app/code/MyVendor/MyModule/...
0
votes
1
answer
5k
views
Custom add to cart form
I would like to create my own custom add to cart form which is the same as original but with custom retrived products. How would I do that in a custom block?
the block class
<?php
namespace ...
12
votes
7
answers
49k
views
Magento2 : How to get product id to my custom module
I am new to magento2 and currently I'm building a custom module and i want to get the product ID/SKU from the catalog.
I'm trying to call using a function located in the Block folder. please advise!
5
votes
1
answer
14k
views
Magento 2: Creating a custom layout
I'm having trouble creating a custom layout. I have successfully created a layout called home_page.xml which is a copy of the default 1column layout.
I have selected this layout for my home page, ...
4
votes
2
answers
3k
views
Magento 2 custom module not loading and it throws error
I am using windows 7.
app\etc\config.php
<?php
return array (
'modules' =>
array (
'Test_Module1' => 1,
),
);
?>
When I add My Test_Module1 in app\etc\config.php admin all ...
11
votes
3
answers
10k
views
Magento 2 How to uninstall attributes added by custom module?
So far I know that when uninstalling a custom module, it is possible to remove custom tables or columns added by custom module by using uninstall.php which extends \Magento\Framework\Setup\...
0
votes
4
answers
1k
views
can't call controller in magento2 2.0.0-rc?
i have custom module. i can't call controller in view of my module.
this url call
http://localhost/magento2-2.0.0-rc/index.php/namespace/modulename/product/view/custom/
Code file Custom.php in ...