New answers tagged

0

In case anyone else has this question: This seems to be normal the first time you fire up the Magento container. If you look at the Magento logs, it keeps going: docker logs magento_magento_1 Keep running this command every so often, until you see: /opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf -D FOREGROUND' At this point, you can ...


0

I looked into composer.json in root and found "require": { "experius/module-exceptiondebugger": "^1.0", "fooman/printorderpdf-m2": "^3.0", "google/recaptcha": "^1.2", "laminas/laminas-code": "^3.4.1", "magento/composer-root-update-plugin": &...


0

This is the native behavior (and it's ok like this, because there are cases when you maybe want the product to appear out of stock). You will have to update the parent product by hand or create a cronjob which checks if at least one of the childrens is in stock and set the proper stock status on the parent product.


0

Since the quantity is decreased only when you ship the order (until then it's just 'reserved'), you could create the shipment on the order in order to align the saleable qty with the product qty.


0

You are using composer version 2, which isnt compatible to magento 2.3 - either you "downgrade" composer to version 1: composer self-update --1 or you install a more recent magento version (I think, the support for version 2 was added in 2.4)


0

I fixed it. There was an entry missing in cataloginventory_stock Please try it INSERT INTO cataloginventory_stock (stock_id, website_id, stock_name) VALUES ('1', '1', 'default');


0

I realized that my main entity table i.e vinay_employee_entity attributes i.e. employee_name employee_email should also be in eav_attribute table.


0

I have never implemented a kind of complex integration like that, but I think you can base your code to the ElasticSearch connection. I know that you are working on Magento 2.3, and I do not remember which version of Magento require ES as default service, but even if you do not have the ES library you can analyze how it works here: https://github.com/Smile-...


1

It seems to be pretty simple, The default e-mail template that is sent by Magento is: Customer: vendor/magento/module-sales/view/frontend/email/order_new.html Guest: vendor/magento/module-sales/view/frontend/email/order_new_guest.html You must not edit those files directly on vendor. They can be loaded on admin panel: Marketing > Communications > ...


0

Same problem here on a fresh install. The issue ocurring because the bin/magento setup:install was not finished properly. After running again (fixing the errors that crashed the above command), everything worked as expected.


0

As indicated payment method Magento 2.3.3 delivery offers the two versions fundamental updates and changes in the stage, security, and installment techniques. Additionally, the new form is professed to incorporate in excess of 170 useful fixes to the center stage and improvements in the security. Because of the colossal local area, Magento endorsed and ...


0

You need to set your custom data in transport data object, for that you can use below observer app\code\Vendor\Module\etc\events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name=&...


0

First, you need to create “events.xml” file inside your extension folder. app\code\Mital\EmailSubjectItems\etc\events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd"> <event name="...


0

Check the magento default settings: Stores -> Configuration -> Sales -> Checkout -> Checkout Options Set Display Billing Address On to Payment Page


0

How to Add Custom fields to Checkout page in Magento2 See detailed explanation at: https://github.com/zendframework/zend-eventmanager/issues/79#issuecomment-562228837


0

You can do that two ways: Create a module and overwrite the template Copy that template under your current theme Here is the solution for #2. Create a directory VendorName_ModuleName under app/design/frontend/ThemeVendor/ThemeName/ Copy templates/product/view/list.phtml to app/design/frontend/ThemeVendor/ThemeName/VendorName_ModuleName/templates/product/...


1

You have to save that quote value to the order table and then get direct value in an email template. For save quote value to order table. Define Events in the events.xml file. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/...


0

This will be similar to the above answer but with adding the order status via ResouceModel and Model classes. Tested in M2 version 2.3.5 Steps; Create folder Setup/Patch/Data in your module Create the class (i.e. AddManuallyClosedOrderStatus) Add the patch class content <?php namespace Vendor\Module\Setup\Patch\Data; use Magento\...


0

I think you should have the 'cost' attribute as it is part of the M2.3.2 default setup. You can find the attribute as part of the product default attributes setup in Magento/Catalog/Setup/CategorySetup.php in the method getDefaultEntities() which is called by installEntities() method of the Magento/Eav/Setup/EavSetup.php.


0

- Download Magento Project using composer composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.3.0 - Install Magento 2 using the command php bin/magento setup:install --base-url="http://localhost/magento230" --db-host="localhost" --db-name=magento230_db --db-user=root --db-password=admin --...


1

This cronjob will (as its name already implies) run the consumers registered in Magento so that they can process the messages stored in the queues from both the Magento database and RabbitMQ.


0

It is wrong. In the latest version, in package/package-name/.env file There are 2 config, just put your key & cert absolute path there. #### Custom HTTPS certificates ################################################# # # Absolute path to the custom HTTPS certificate key file. # - Default when not set: CUSTOM_HTTPS_KEY= # # Absolute path to the ...


0

I have resolve isssue from below referance link: https://community.magento.com/t5/Technical-Issues/Error-Success-message-not-showing-on-one-page-in-custom-module/td-p/72823 I was using <script type="text/x-magento-init"> for the javascript validation. I changed it to <script type="text/javascript">


0

Go to folder pub/errors find file local.xml.sample Rename the file local.xml.sample to local.xml in the same folder pub/errors Also, set developer mode using the following command : php bin/magento deploy:mode:set developer You will then see the exact cause of the problem


1

Try the following way: Create a module where the sequence should be Amazon_Payment. E.g: <module name="Vendor_AmzPayment"> <sequence> <module name="Amazon_Payment"/> </sequence> </module> Create crontab.xml. Modify schedule tag. E.g: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...


1

The issue is Chrome 80+ and all other modern browsers, they are updating their cookie policy. The cookie policy is Third-Party not going to access the current browser cookie. So, We are using any third party plugins like payment gateway, while payment its redirected to their payment gateway only. when come back to our merchant site, merchant site not allowed ...


0

This is a Magento Commerce feature https://devdocs.magento.com/guides/v2.4/b2b/roles.html


0

Try using <dateFormat>d/MMM/YYYY</dateFormat> instead of <dateFormat>d/MM/Y</dateFormat> for more details check date.js this file.


0

Can you confirm that this module exists: module-inventory-indexer? If not, do composer update to get this module composer require module-inventory-indexer or composer update bin/magento setup:upgrade This file is readable vendor/magento/module-inventory-indexer/etc/communication.xml? If not fix permissions


1

I have searched so many times and tried lot of things to check whether customer is logged in or not in phtml file. in js script but not found any solution. i have achieved it myself by doing some tricky things. as it's a temporary solution. if someone as better answer for this query then it help would be appreciable. And This code will work on every pages. ...


0

In your first example you're using define() inline, rather than require(), which is causing the error. You can confirm this yourself using your browsers' web console, by copying and pasting the script and running it. Try running this: (note that I changed the define to require) require(['Magento_Customer/js/model/customer'], function (customer) { ...


0

You can refer this link Create a New Module


0

this is usually if you have filled the /tmp. Was a server backup running at a similar time or had you used all innodes?


0

It was due to upgrading Magento version via git or others. Also, it is known as Magento 2.1.3/2.1.4/2.1.5 issue. This is the accurate solution. We can easily add these two files on the original Modules folder. app\code\Modules\Catalog\etc\di.xml <?xml version=""1.0""?> <config xmlns:xsi=""http://www.w3.org/2001/...


0

Restore the composer.lock file from your version control system that was used before you updated. The composer.lock exactly records which software was installed. So it is paramount to commit this file into version control in order to be able to go back to a working version in case of update failure. Running composer install will always install the software ...


1

Your payload should be something like this: { "cartItem": { "sku": "HG-03", "qty": 1, "quote_id": "80", "product_option": { "extension_attributes": { "custom_options": [ { "option_id": "16", ...


0

Not using correct root user for cpanel.


1

It is likely one of your layout files (or 3rd party ones) has defined a block with the property display="...." So to find this file that gives your error, you may execute the line below from a terminal: grep -R --include="*.xml" "display=" app/. If this does not return anything (or does not help) grep -R --include="*.xml&...


1

Magento handles exceptions differently depending on modes: Production Mode: Does not show exceptions to the user (exceptions are written to logs only). Developer Mode: Shows errors on the frontend More details: https://devdocs.magento.com/guides/v2.3/config-guide/bootstrap/magento-modes.html Update: Schema validation is performed in \Magento\Framework\...


0

Using the same code as you show us. Since the data in the sales_shipment table are either 1 or null. I have used the source model like below: <?php namespace Mbs\ShipmentGrid\Model\Config\Source; use Magento\Framework\Option\ArrayInterface; class EmailSent implements ArrayInterface { public function toOptionArray() { return [ ...


0

https://github.com/viveksh2021/Bestseller please follow custom module for bestseller product collection on daily basis


0

I would suggest that you run code profiler to determine the run time of each PHP file. You may refer here


1

You are not doing anything wrong Its just the behavior of the text editor. What I will recommend is not to add Js in the editor in the first place Go to the setting if its cms page then magento 2 have settings from store -> configuration -> General -> content management system ->wysiwyg settings -> disable as default. This will prevent opening ...


1

But if you want latest bestselling product collection for the day please use this code in block public function getBestsellerProduct(){ $resourceCollection = $this->_resourceFactory->create('Magento\Sales\Model\ResourceModel\Report\Bestsellers\Collection'); $resourceCollection->setPageSize(6); $resourceCollection->setPeriod('day')->...


0

I have faced similar issue but I have sorted out by setting the Manage Stock "No" in the Admin->Configuration->Catalog->Inventory Tab Product Stock Options->Manage Stock


0

I had the same problem, reading your question gave me a facepalm moment - its literally telling us the issue in the error. We're adding a new item, but we haven't told M2 in which order to show it. This hopefully answers 2 and 3 for you :) Adding a "sortOrder" field did the trick for me 'my_custom_field' => [ 'visible' => true, '...


0

Hello im beginer any can make this file and send to me cuz not understand how to make. Im make folder Vendor\currency\Plugin\Locale\ and in directory Locale in put script and file name is Format.php But show this error Plugin class Vendor\currency\Plugin\Framework\Locale\Format doesn't exist or {Vendor}{ModuleName} what name need to be and script what name....


0

I had the same error, it's the credentials that don't have the necessary permissions see this : https://github.com/magento/magento-cloud/issues/518


0

At First delete the contents of the generated/code and generated/metadata directories rm -rf <magento_root>/generated/metadata/* <magento_root>/generated/code/* then Set the mode: bin/magento deploy:mode:set developer Enabled developer mode. will be show.


1

Use magento standard as below using collections public function __construct( \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Customer\Model\CustomerFactory $customerFactory ) { $this->customerFactory = $customerFactory; $this->orderFactory = $orderFactory; } public function execute() { $collection ...


Top 50 recent answers are included