New answers tagged

0

In theme module-overrides you can omit the view/frontend folders in the path, making the path to your overwrite file as follows: (magento_dir)/app/design/frontend/(VendorName)/(ThemeName)/Magento_OfflinePayments/web/template/payment/purchaseorder-form.html


1

You need to build objects which you then pass through to email templates. https://magento.stackexchange.com/a/283338/70343 If it's a custom template then it's going to be custom code passing the variables.


3

Add your block in default.xml and in checkout_index_index.xml write below code: <referenceBlock name="form.subscribe.home" remove="true" /> It will solve your issue.


1

Try this code instead: echo $this->getLayout() ->createBlock("Magento\Directory\Block\Currency") ->setTemplate("Magento_Directory::currency.phtml") ->toHtml(); This should work anywhere in any phtml


0

I came to a solution app/code/Xigen/UsernameLogin/view/frontend/layout/customer_account_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer ...


0

Try replacing text: with i18n:, this is the translation binding although I don't know how that will work with your inline logic. IMO that is more suited to being in the JS file. See https://devdocs.magento.com/guides/v2.3/ui_comp_guide/concepts/knockout-bindings.html#i18n for more info


0

Run the following command rm-rf /var/view_processed pub/static/frontend/Vendor/Custom_theme/lg_lG/js-translations.json php bin/magento setup:static-content:deploy -f lg_LG php bin/magento cache:clean php bin/magento cache:flush Visit js-translations.json file in browser. Visit your site.


0

You can enable a template path hints for admin System > Configuration > Developer > Debug Select Yes to Template Path hints and Add Block names to hints You can get the controller from the Url. Hope it Helps.


0

Mage/Adminhtml module is responsible for backend functionality. Here you can find Controller & block related to each module in backend. For Customer block, you can refer in Mage/Adminhtml/Block/Customer/. For Backend layout & template, you can check on below two paths: app/design/adminhtml/default/default/layout/ app/design/adminhtml/default/...


2

I've found a solution pretty simple. $block = $result->getLayout()->setData(['test'=> 'Content here'])->getBlock('category.description'); $block->setTemplate('Vendor_Module::myTemplate/blank.phtml') ->toHtml(); Then my blank.phtml: <?php print_r($this->getData()) ?> It prints: Array ( [test] => Content here [module_name] =&...


3

You should try this echo $this->getLayout()->createBlock("Vendor\Module\Block\Myblock")- >setTemplate("My_Module::history-suite.phtml")->toHtml();


0

Another Way using sort order argument. File Path - app\design\frontend\<companyNAme>\<ThemeName>\Magento_Catalog\layout\catalog_product_view.xml Add the sort order argument inside the product.info.details reference block container. Example code <block class="Magento\Catalog\Block\Product\View" name="shipping_tab" template="Magento_Catalog:...


0

Thanks @RkRathod to pointing me. I have found solution of my answer.Actually I am using Google Tag Manager extension which is using this template. So this module was override my items file.I just replaced with my theme items file and issue resolved.


0

Below will work fine: YourThemesVendor = your theme vendorname e.g. Mine is "pearl" YourThemeNamespace = your theme themename e.g. Mine is "customize" app/design/frontend/YourThemesVendor/YourThemeNamespace/Magento_Catalog /templates/product/list/items.phtml


0

In Your Theme If you want to override in your theme then create a following directory structure app/design/frontend/Vendor/Mytheme/Magento_Catalog/templates/product/list Copy items.phtml file from below path vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml You can also override Layout file catalog_product_view.xml ...


0

To correct this, please try to set Use Secure URLs in Admin to true, in System -> Config -> General -> Web. or connect to database and change following record value to 1 : SELECT * FROM core_config_data where path like '%web/secure/use_in_adminhtml%'; Note: if you have multiple stores make sure it's on all store.


0

In controller: use Magento\Framework\App\Action\Action; use Magento\Framework\Controller\Result\JsonFactory; use Magento\Framework\View\Result\PageFactory; use Magento\Framework\App\Action\Context; use OX\OfferNotifier\Helper\Data; class Index extends Action { protected $_resultPageFactory; protected $_resultJsonFactory; protected $_helperData;...


1

As i see a problem with cms block associated with the method \Experius\DonationProduct\Block\Donation\ListProduct::getIdentifier. The problem is that when we get the block name in cms, we get a name that contains an element "\" that can not be properly processed. Please try change method getIdentifier for that return str_replace('\\', '-', parent::...


Top 50 recent answers are included