New answers tagged magento2.2
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:/...
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 ...
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.
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 ...
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 "/&...
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 ...
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 :)
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/...
Top 50 recent answers are included
Related Tags
magento2.2 × 2486magento2 × 1013
magento-2.1 × 180
magento2.3 × 180
php-7 × 122
php × 82
checkout × 76
magento2.4 × 67
product × 66
database × 57
module × 56
rest-api × 56
layout × 50
uicomponent × 50
admin × 48
product-attribute × 45
customer × 42
error × 42
sales-order × 41
magento2.2.6 × 40
frontend × 39
magento2.2.2 × 39
api × 37
orders × 36
configurable-product × 35