New answers tagged

2 votes
Accepted

Magento2.3.5: How to optimize product export scripts?

I recommend to use standard performance improvement loop: Testing (profiling) Find bottleneck Fix it and repeat https://github.com/NoiseByNorthwest/php-spx is good for quick start For example app:/...
KAndy's user avatar
  • 20.7k
1 vote

Magento2.3.5: How to optimize product export scripts?

Your script looks quite comprehensive, and it's good that you are considering optimization. Here are some suggestions to optimize and improve your script: 1. Use Dependency Injection: Instead of using ...
Rakesh Patidar's user avatar
0 votes

Magento2.3.5: How to optimize product export scripts?

You are using $collection->addAttributeToSelect(*) it getting all attributes. Try to define array with attribute names only that you need. Collection won't be so heavy.
Alkos's user avatar
  • 33
1 vote

Magento2.3.5: How to optimize product export scripts?

Start by not using object manager but dependency injectrion. Then in term of performance i would say The closest you are from the system the fastest it is. That means accessing threw repositories will ...
Claims's user avatar
  • 1,049
1 vote

Magento2.3.5: How to remove index.php and theme id from url?

Go to Admin -> System -> Configuration -> Web -> Search Engine Optimisation -> Web Server Rewrites : YES. You should make sure that your Secure and Unsecure base urls end with "/&...
Grazitti Dev's user avatar
1 vote

Magento2.4.3: While importing products, getting this error (The value specified in the URL Key field would generate a URL that already exists)?

it can be problem with url_rewrite table. When you want to solve problem, pls check few points: Whether url_key in existing products is unique Whether url_key in product which you want to import is ...
K. Maliszewski's user avatar
0 votes

Magento2.3.5: How to remove index.php and theme id from url?

you should add url-rewrite to your .htaccess or nginx rule. I think it is the fastest way. Define there redirect rule and issue is closed :)
K. Maliszewski's user avatar
0 votes
Accepted

Magento2.4.3: After decreasing quantity to 0 on cart page, product doesnt remove from cart?

I've used this script and it solves the problem, but it takes more time while loading <script> require ([ 'jquery', 'Magento_Checkout/js/action/get-totals', 'Magento_Customer/js/...
Afzel Arshad's user avatar

Top 50 recent answers are included