Most Popular
1500 questions
11
votes
1 answer
Magento 2: Observer add product to cart?
I've read some other post about adding products to cart, but nothing seems to fit.
I've an observer for checkout_cart_update_items_before that adds another product in same qty if specific product is added.
So quantity for product A and B should…
sv3n
- 11,657
- 7
- 40
- 73
11
votes
5 answers
Find Products with No Images
Is it possible to run a query to find a list of products with no images assigned to them? Ideally I'd like SKUs printed out on the screen.
Francis Kim
- 2,973
- 8
- 41
- 67
11
votes
7 answers
Prevent Spam Account Registration
How to prevent spam account registration, aside from enabling CAPTCHA on forms (which I've already tried)? We're dealing with a steady flood of them.
The first name field is always Russian characters, so failing an easier route, maybe a way to…
brackfost
- 1,020
- 2
- 18
- 46
11
votes
4 answers
How to override particular function of javascript in Magento2
I need to override the particular function (for example : accountFieldsBind) of vendor/magento/module-sales/view/adminhtml/web/order/create/scripts.js
Amit Naraniwal
- 1,298
- 10
- 20
11
votes
1 answer
Magento 2 rest API - How to Manage API Authentication Lifecycle on Mobile Devices Application?
In Magento [2.2.4] web API when I pass username and password then it generates token for that specific customer (Which is only valid for 1 hour - it is configurable from Magento…
Aditya Shah
- 7,617
- 3
- 39
- 77
11
votes
2 answers
Knockout If-else condition inside html file in Magento 2
I am customizing the shopping cart page, Here I worked knockout js and html code file. I successfully wrote If statement by below code.
//My Code goes here
For else statement not working, for these,…
Bojjaiah
- 3,992
- 4
- 56
- 119
11
votes
3 answers
Email templates from admin
I have this strange issue with the Magento Transactional Emails.
I have the same files on my local, development and production servers.
From Admin > System > Transactional Emails > Add new template
I select a template from the drop down, leave the…
Bractar
- 138
- 1
- 7
11
votes
1 answer
Magento 2.1.9 : Change store based on country
Important: I don't want to buy any GeoIP extension.
I have a Magento 2.1.9 website with multi-site and multi-store setup.
I have setup website for KSA, UAE, CHINA, EGYPT etc. and under each website are at least 2 Store views, e.g., for KSA I have…
Abid Malik
- 461
- 1
- 4
- 20
11
votes
6 answers
Single instalation with, multiple databases
Is it possible to make one installation, and from this installation to make multiple shops with different databases?
Something like I will make one installation on domain.1 with a database, and from admin I will crate a new website and a store on…
Mike
- 455
- 4
- 14
11
votes
3 answers
Magento 2 : Override core Interface and Model
I am trying to override core interface of Customer Group.
I add my custom get and set methods to core Api interface.
Vendor\magento\customer-module\Api\Data\GroupInterface.php
Where its working fine.
But when i am trying to override it its doesn't…
anonymous
- 3,722
- 3
- 25
- 67
11
votes
4 answers
Magento2 creating and calling modal widget
I want to create custom modal popup widget and call on my .phtml file. How can I do that?
What will be the whole procedure for creating modal and accessing it from the .phtml file?
akshay billore
- 465
- 2
- 7
- 22
11
votes
1 answer
Customer Attribute not showing in adminhtml customer account form in Magento Enterprise 2.2.0
I have created module "Wgac_Subscription". I want to create custom customer attribute. It is listed in admin as shown in below image, but does not show in customer adminhtml form.
Wgac/Subscription/Setup/InstallData.php
Shashank Kumrawat
- 2,110
- 23
- 61
11
votes
2 answers
What are the differences between a Model and a Resource model?
What are the differences between a Model and a Resource model? Also what is a model and a resource model?
Gianni Di Falco
- 1,008
- 1
- 16
- 31
11
votes
4 answers
Magento 2 - How to apply Slick Slider to Recently Viewed Widget
I have created a code but slider is not showing up in recently viewed products.
Here is my code -
I have downloaded slick js and css from the following link http://kenwheeler.github.io/slick/
Then i have done the following -
Step 1 -
Copied…
Vinay
- 443
- 1
- 7
- 20
11
votes
2 answers
Magento 2 checkout custom field validation
Magento2 checkout - what is the best method to add validation for my custom checkout field which depends on selected shipping method?
For e.g. I am adding field to address form in LayoutProcessor where I can specify validation rules. I need to make…
Maciej Domski
- 141
- 1
- 4