New answers tagged

0

Reference Link Go To File: <your magento dir>/vendor/magento/module-cms/etc/di.xml Add your extension you want to allow <item name="svg" xsi:type="number">1</item> <argument name="extensions" xsi:type="array"> <item name="allowed" xsi:type="array"> <...


0

you can set the "backorders" option for sources with MSI Product Sources Configuration extension.


0

It is impossible in MSI. You can assign a single stock to a website only. Let me ask why do you need this? You can create a single stock and assign all sources to it. You'll assign a concrete source (and therefore a vendor) on the create shipment stage.


0

Formally, most of the Magento projects does not include media in their code base . Only add which requirements by theme or Magento editor related. /pub/media/*.* !/pub/media/.htaccess /pub/media/attribute/* !/pub/media/attribute/.htaccess /pub/media/analytics/* /pub/media/catalog/* !/pub/media/catalog/.htaccess /pub/media/customer/* !/pub/media/customer/....


0

follow this link and it is a work for me:- https://www.rakeshjesadiya.com/get-super-attribute-from-configurable-products-programmatically-in-magento-2/


1

Its because you have reached the limit of Max Emails Allowed to be Sent Threshold Value The default value of Max Emails Allowed to be Sent is 10 We can change the value in Admin Panel -> Stores -> Configuration -> Customers -> Wish List In Share Options Tab Change the Max Emails Allowed and refresh the cache


0

If someone still has trouble with getting magento 2 through composer because of authentication keys issue as given below, then make sure to update your auth.json with your Magento Authentication Keys (generated from marketplace.magento.com) inside your COMPOSER_HOME directory and then exit from your terminal / bash / shell and reopen it and try composer ...


0

pub/media/catalog/product The images are stored in subfolders based on the name of the image. salt.jpg would be in pub/media/catalog/product/s/a/salt.jpg. If they didn't get migrated you may need to do the following: cd root_folder/pub (on the old server) tar -cvf media.tar media/* move the media.tar file to the root_folder/pub (on the new server) tar --...


0

In mode production you must recompile to regenerate the new interceptor. bin/magento setup:di:compile If not work share please the content of the file: Tiny\ProductCustomization\Model\ResourceModel\Product\Collection\Interceptor Thanks


1

As per logs, its more like module wyomind/elasticsearchbrowser having some plugings/virtual types on class Class Magento\Elasticsearch\Model\Adapter\FieldMapper\ProductFieldMapper which was present till Magento 2.3 versions(See 2.3 version file on github). Now since 2.4 versions class is not available in 2.4 Magento(try to switch to 2.4 branch and check, you ...


0

I did same thing for one of site. First of all add your captcha element in any html template as per your need. Now add below code in your any .phtml template file which one must load on checkout page I used /vendor/magento/module-checkout/view/frontend/templates/onepage.phtml function waitForElement(query){ var poops = setInterval(function(){ ...


0

Please find solution here custom.php public function info(){ echo "string"; } CatalogInterface.php /** * GET for Post api * @param string $value * @return string */ public function info(); in postman pass some raw data for post method you used in post man header you pass like that and in Authorization ...


0

Finally, I have done this. I have posted the answer here because If anyone has the same requirement then use it. Edit below file path: app/design/frontend/Vendor/Theme/Magento_Theme/templates/html/breadcrumbs.phtml In my case My custom custom attribute code is category_seo_name. So this code according above attribute code, you can change this as per your ...


1

Within your di.xml for the resourceModel argument set the xsi:type to object. This will resolve the FQN to its relevant class. <virtualType name="Tiny\ProductCustomization\Model\ResourceModel\Product\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult"> <arguments> <argument ...


0

I haven't had a chance to check this myself, but from looking into the core code, you need to add it as a resource in acl.xml. Magento_CatalogSearch has an example of that. An additional resource is specified for the Catalog Search Group (in the Catalog Section). Since you can't specify a resource for a group, you would use the parent sections resource id, ...


0

Try it php bin/magento setup:di:compile php bin/magento c:c php bin/magento c:f


0

Same Problem here: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'TABLE 564 WHERE `Non_unique` = 1' at line 1, query was: SHOW INDEXES FROM TABLE 564 WHERE `Non_unique` = 1


0

It's a tracking script, that launched from Dotdigitalgroup_Email module, which is enabled by default and includes in Magento package. You may have experienced error by loading this script because you have enabled uBlock or other ad-block browser extension. For resolving this, try to whitelist your website in extension options. Reference: https://github.com/...


0

do you find where this configured?


0

From Tax Rule Information: I didn't have the right tax set for the country :( . See img: I leave this info here, maybe it will help someone!


0

It sounds like your collection instance is receiving a string instead of a class as argument for resource model (5th argument). Usually, magento uses ::class to initialize model & resource model with __init() method call, you can try the code below to check if it solves your error with string argument vs AdapterInterface implementation argument : ...


0

php bin/magento s:up php bin/magento s:s:d -f php bin/magento c:f


0

In my issue I have resolved it like this php /path_to_composer/composer.phar install So try to find right version of php and run composer by php


0

You are creating a virtual type with the namespace Tiny\ProductCustomization\Model\ResourceModel\Product\Collection which already exists. As a result, AbstractFactory will pass the arguments (mainTable and resourceModel) to the __construct function of AbstractCollection instead of SearchResult, which throws an exception because AbstractCollection does not ...


0

try it:- <?php namespace Tiny\ProductCustomization\Model\ResourceModel\Product; class Collection extends \Magento\Framework\Model\ResourceModel\Db\AbstractDb { protected $_idFieldName = 'id'; protected function _construct() { $this->_init( 'Tiny\ProductCustomization\Model\Product', 'Tiny\ProductCustomization\...


0

Need to Create a Virtual Host and the DocumentRoot should not be the root directory of Magento 2 installed, instead of that add pub to that. Before the line was /Users/shuvo/WebServer/MAGENTO/PWA now /Users/shuvo/WebServer/MAGENTO/PWA/pub <VirtualHost *:443> ServerAdmin webmaster@magento-pwa.devs DocumentRoot "/Users/shuvo/WebServer/MAGENTO/PWA/...


0

You start by placing this code in your constructor to make an object of the creditmemo collection public function __construct( ... \Magento\Sales\Model\ResourceModel\Order\Creditmemo\Collection $creditmemoCollection, ... ) { ... $this->creditmemoCollection = $creditmemoCollection; ... } and then inside your function, use the ...


1

Which payment method you are using, I have been facing similar issue n PayPal credit card which was occurring from PayPal, I have communicated to them and get it fixed.


0

May be that extension working. Download the extension from given link. Now unzip the download zip file. Put the \MyCompany\CustomListMode folder into magento on following location : app\code so extension path like this : app\code\MyCompany\CustomListMode Run following command from CLI: php bin/magento cache:clean php bin/magento cache:flush php bin/...


0

I seem to have found the solution, at least for me. I've delete my vendor folder and replaced it with a new one from a base magento 2 instance. Now the error isn't showing anymore. So probably the issue was indeed an old module badly uninstalled. I'll proceed with further testing to make sure everything works fine.


0

after scanning my database searching a corrupt or bad configuration, i found the problem, in my case CUSTOMER_EAV_ATTRIBUTE_WEBSITE, IN THE MULTI-LINE_COUNT COLUMN there was set with number 2, consequently showing only two lines in the address, so i set the column for 4, and it makes show 4 lines address in front-end store. But still stay the Big question; ...


0

This is javascript code that'll handle pasting the output of your javascript code directly in to the wysiwyg and therefore rendering it correctly on the frontend: tweet = tweet.replace(/&/g, '&amp;') .replace(/</g, '&amp;lt;') .replace(/>/g, '&amp;gt;') .replace(/"/g, '&amp;quot;'); I'm taking content input from the admin ...


1

Hello Vijay Put this code on message.js return Component.extend({ defaults: { cookieMessages: [], messages: [] }, /** @inheritdoc */ initialize: function () { this._super(); $('#validation-login-cust').html(''); $('#valid-promo-cart').html(''); try { var message = _.unique($.cookieStorage.get('mage-messages'), 'text'); ...


0

If we need to pass default value, then we need to check whether the default value is compatible with the type of field we are using is default Initializes the column with the specified default value. The default value should have the same datatype defined in xsi:type. so for having any int value as default use it like <column xsi:type="int" name=...


0

To add Custom Css class to the existing div element to the magento you need follow the below mentioned procedure. add <referenceContainer name="page.wrapper" htmlClass="page-wrapper example"/> in your custom theme default.xml layout file


0

The best way to do this is add your custom css File: If you have already a custom theme (inherited from Luma) i would suggest to place it in the folder "Magento_Theme\web\css\custom.css" and add your css there then you want to include your css in the pages that you want, if you need it in the whole site i suggest to declare it in: "...


1

Please add your css to vendor/module/frontend/web/css/style.css


0

I was able to do this by adding the attribute then importing via csv with text similar to the following '<a href='https://pirate.black/' target='_blank'>https://pirate.black//</a> It will also work if directly entered in the new product attribute.


1

This block is called absolute_footer, see magento/module-theme/view/frontend/layout/default.xml where the block is created: <referenceContainer name="before.body.end"> <block class="Magento\Theme\Block\Html\Footer" name="absolute_footer" template="Magento_Theme::html/absolute_footer.phtml" /> </...


0

this file use vendor/magento/module-catalog/view/frontend/templates/product/view/opengraph/general.phtml <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** @var $block \Magento\Catalog\Block\Product\View */ ?> ...


0

Hello, Please do, download that extension, it will help you out! https://store.webkul.com/Magic-Slideshow-Magento2.html


0

The following query is showing 0 results. SELECT attribute_id, attribute_code, backend_model, source_model FROM eav_attribute WHERE source_model != '' OR backend_model !='' Any idea what might be the other reason for this issue?


0

Hey Mit, Please run this command sudo php bin/magento setup:static-content:deploy -f Or if you migrated recently, that's mean you didn't install the theme properly, as in Codazon instruction you can install it through command line, so you will not get any error template related! Thanks, this will help you out.


0

Hello, Please do follow these steps to create the Drop-Down menu. Create the template file: Phtml <div class="customer-menu"> <span class="action toggle" data-mage-init='{"dropdown":{}}' data-toggle="dropdown" aria-haspopup="true"> <span class="title"><?= __("...


0

Check Below admin path setting: Stores -> Configuration -> Sales -> Checkout -> Shopping Cart -> Configurable Product Image Hope this solves your problem.


0

to check if you are looking at wrong DB check env.php under app/etc/ , how do you manage import?


0

If you are using REDIS cache for session data, restart the REDIS service. If you are using the file system for session data, remove all session data files in var/session folder.


0

Sometimes, when an image is retrieving from outside the frontend scope (sending emails via cron, etc) - make sure you are loading design area configs. E.g.: in .phtml: <?= $block->getImage($_product, 'product_thumbnail_image', ['class' => 'photo image'])->toHtml() ?> in block: /** * @var \Magento\Catalog\Block\Product\ImageBuilder ...


0

Replace the below code in items.phtml, path : app/design/frontend/[your_theme]/Magento_catalog/templates/product/list <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ // phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis // phpcs:disable Generic.WhiteSpace.ScopeIndent.Incorrect /* @...


0

try:- Override file-uploader.js path:- vender/magento/module_ui/view/base/web/js/form/element/file-uploader.js replace file:- /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ /** * @api */ /* global Base64 */ define([ 'jquery', 'underscore', 'mageUtils', 'Magento_Ui/js/modal/alert', '...


Top 50 recent answers are included