All Questions
116 questions
1
vote
1
answer
791
views
How to add CMS directive {{block}} on custom module field in Magento 2
I have developed a custom slider for Magento 2. The fields for my slider in the backend are; Title, Image and Content. The Content is a Wysiwyg editor and I am trying to make it work like a CMS Page ...
0
votes
0
answers
596
views
Magento 2 how to create custom tabs in custom module
We want to remove default product tab and want to use custom
Query tabbing like this
1
vote
1
answer
778
views
Magento 2: What is purpose of StateInterface & when to use?
In vendor\magento\module-contact\Controller\Index\Post.php
They are using \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation
$this->inlineTranslation->suspend();
$this->...
1
vote
1
answer
59
views
Magento2: How to get simple products Assosiate to configurable products [duplicate]
I want to get simple products Associate to configurable products in custom module using factory method.
(not using object manager)
0
votes
1
answer
151
views
Magento 2 Custom Cli comand Area not set
I am geting this error comand "[Magento\Framework\Exception\LocalizedException]
Area code is not set
"
this is my code which I want to add a product. Tip if a comment " $product->save();" I am not ...
1
vote
1
answer
84
views
Magento 2 - Creating admin page error 404
I have create an admin page but i get 404 error. What i'm wrong?
etc/adminhtml/routes.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
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
1
answer
268
views
Magento 2: Captcha overwrite fatal error on PHP 7
Magento 2: How to override Zend library files function only?
I overwrite Captcha module on my WAMP PHP 5.X & it works fine.
On linux server which has PHP 7 gives below error
Fatal error: ...
0
votes
1
answer
242
views
Custom Taxation
I am trying to figure out how to customize tax base on shipping information. If the customer is residing in US and the product will be shipped on US, the tax is 2%. However, if the customer is from US ...
0
votes
1
answer
320
views
How i can integrate 3rd party tax engine in magento2?
I have a 3rd party tax engine and i want to create a module in Magento2 that collect the data that the tax engine need(ie shipping address, amount, etc). and send it to the tax engine. This is the ...
0
votes
1
answer
154
views
How to include a js file into a custom module in Magento 2?
Added app/code/Namespace/Customtab/view/frontend/layout/customtab_index_index.xml
<?xml version="1.0"?>
<head>
<css src="Namespace_Customtab::css/viewer3d.css" />
</head&...
0
votes
1
answer
147
views
Magento 2.1 Custom Theme/Module
I have created a custom theme and a custom module. The documentation does not explain enough detail about whether I need a theme or a module or both.
Does a custom theme need a custom module? Do I ...
1
vote
0
answers
112
views
Mangeto 2: How to override core abstract class function? [duplicate]
Magento 2: How to Override Abstract Class for Product Category Indexing Issue?
I need to override below files one function only
magento\vendor\magento\module-catalog\Model\Indexer\Category\Product\...
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
0
answers
73
views
How to make custom php in home page
I need to make a website, let's call it shop.com, that manages other providers on subdomain (p1.shop.com, p2.shop.com...).
So, I successfully make all the websites works, but now I need to make shop....
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/...