New answers tagged

0

Try this code <?php namespace VendoreName\ModuleName\Controller\Index; use Magento\Framework\App\Action\Action; use Magento\Framework\Controller\ResultFactory; class Editcart extends \Magento\Framework\App\Action\Action { protected $resultPageFactory; protected $request; protected $cart; public function __construct( \Magento\...


0

=> Give permissions to pub/media folder chmod -R 777 pub/media


0

Rather than changing in every input type template the most common and effective way is to change in abstract.js and make every template to take placeholder Vender\Theme\Magento_Ui\web\js\form\element\abstract.js Line no 30 as of now, change placeholder: false to placeholder: '${ $.label }'. Of-course override in custom theme or even better to make js mixin ...


0

As you specified in your question that you have disabled Order Confirmation email from backend, I have assumed the same and write code in such a way that email will not be sent twice even if you have enabled Order Confirmation email from backend. So, Order Confirmation Email will only send from the success page when you have disabled it from the backend. I ...


1

You're asking how to run PHP inside a client-side rendered file which is not feasible. I believe you would need to build this yourself from scratch. The template is set in vendor/magento/module-checkout/view/frontend/layout/default.xml <item name="template" xsi:type="string">Magento_Checkout/minicart/content</item> As you can ...


0

In my situation (Magento 2.4.0), calling to indexer (either bin/magento indexer:reset or bin/magento indexer:reindex) doesn't get the backlog number of Product Categories and Catalog Product Rule down. After paying some investigation, I found that my cronjob wasn't run successfully. Calling it would significantly reduce these numbers. You'll want to give it ...


0

I think you might be running magento2 cron as sudo user which is generating those files for you, can you check if you have crontab as sudo and without, go to your working directory and write crontab -l sudo crontab -l it will show you. if you do have running it as sudo you can remove it by typing sudo php bin/magento cron:remove or manually through sudo ...


0

You should not commit generated files (pub/static,generated,...) into your repository from developer machine. If you want to keep your generated files in your git repository, you can commit them only for repository tags (for example release0.0.1), not branches. Or you can "package" these generated files into the docker image.


0

Well, it’s simple enough. You can create Event/Observer that hook into the event: customer_login and check as follows in the observer method: $customer = $observer->getEvent()->getCustomer(); $log = Mage::getModel('log/visitor_online')->getCollection()->addFieldToFilter('customer_id', $customer->getId())->getFirstItem(); if($log->getId())...


0

Okay so I finally figured out how to do this. To convert a virtual product order to simple product order, you need to update sales_order, sales_order_grid, sales_order_item, and sales_order_address. Change is_virtual to 0, add weight, change product type to non-virtual, and add address respectively. Hope this will help someone, cheers.


0

@Edmund is correct, Json.php expects the value is json encoded but it's not, it's serialized and thus a syntax error exception is thrown. Whilst some may find the overriden Json.php a possibly good solution, I prefer to not mess with core code. I fixed my problem quite simply as follows: Add debug code to the exception to output the actual erroneous value, ...


0

Nevermind solved it. The value in the giftcard_amount field must be saved as an allowed amount against the giftcard. Some extra bits will need doing if it's a "custom amount" giftcard. { "cartItem": { "product_option": { "extension_attributes": { "giftcard_item_option": { ...


0

You have 3 methods that I can see: solution 1: find the string Magento_Backend::system_convert into your codebase (app/code and vendor/magento). Then, hopefully, that should show your your items menu nodes as per the screenshot below. If you find the, that is half of the battle sorted as you just have to work out why they don't show up. You may try shorter ...


2

There are a few ways to debug it. Check in administrator role that Import/Export is not un-selected. Can you create a new user using command bin/magento admin:user:create and login to admin panel using these newly created credentials to check if you can see Import/Exports. Disable all the custom modules one-by-one to figure out which module is causing issue....


0

https://magecomp.com/blog/fix-pdf-attachment-not-working-issue-in-magento-2-3-3/ I followed this link and this worked for me.


1

I was looking for the same thing, but only found paid modules that required a monthly service fee. Ended up having this module made from an old magento v1 exention that is no longer supported. Try this module. It works with Magento v2 and adds the option to get UPS LTL Freight Shipping. https://github.com/jerdill/jmodz


0

For more speed-up you need to increase the value of these points, check the YSlow tab of the report : 1. Minify JavaScript and CSS 2. Use cookie-free domains 3. Reduce DNS lookups 4. Add Expires headers Change the website mode to Production as well.


0

By default, the date component prints out in the following formart "MMM d, YYYY h:mm:ss A". To change it, use the item "dateFormat" with the value "dd/MM/YYYY" to show the date as 01/11/1999, for instance. <column name="updated_at" class="Magento\Ui\Component\Listing\Columns\Date"> <...


0

In this file app/design/frontend/custom_vendor/theme_name/Magento_Theme/layout/default.xml, add this line, <move element="customer" destination="header.links" after="-"/> After that clear cache and check.


Top 50 recent answers are included