Questions tagged [magento2.2.2]
It should be used for questions about Magento 2.2.2
302
questions with no upvoted or accepted answers
1
vote
0
answers
670
views
Magento 2: Facing Error -> Uncaught TypeError: data.some is not a function
I am using magento version 2.2.2. From yesterday I suddenly started getting error when I try to add a new product. Spinner continue to move on this page but having this error on console.
Uncaught ...
1
vote
0
answers
20
views
Magento 2.2.2 Differet Store Category page was give 404 error
Magento 2.2.2 website Category Page Give 404 Error into Different Store , Into Default Store it is worked Fine .
I have Reindex Many time and also i have cleared Cache Many Times But No any kind of ...
1
vote
0
answers
33
views
Colour swatch switching back to default randomly [Mage2]
For the past 2 days I've been monitoring my configurable products to see if there is an issue and not to my surprise, I see there is.
Basically, I set up a test product with a colour, and checked ...
1
vote
1
answer
2k
views
Magento 2 how to refresh/reload shipping-method-item.html
I would like to reload the shipping methods information on a click of button for example.
When the country change it does an ajax to
http://magento2/rest/default/V1/guest-carts/...
1
vote
1
answer
737
views
Fetch website specific category URL based on store id in custom module
I am working on fetching category URL for stores which are part of two different websites on a multiwebsite setup i.e abc.com and abc.co.uk, Issue happens when I fetch URL for abc.co.uk it returns me ...
1
vote
0
answers
448
views
How to save configurable product with its attributes in magento 2
I wish to save product with its attributes. I have tried below code,It works fine while saving simple products. but if i gave configurable product sku in my csv file, then it shows an error as
...
1
vote
2
answers
4k
views
Magento 2 Blank Screen Product Detail page
I added one product from Magento admin panel (Magento 2.2.2)
Cleared cache and indexing, Product appears in search and listing page and you can even add to cart from Listing page.
But when you click ...
1
vote
0
answers
214
views
Magento 2 - passing variable output to another variable in email template
I'm working on order confirmation email and I want to pass variable output:
{{var order.getMyCustomItem().getSomething('key')}}
To another variable. In my case it's an order model:
{{var order....
1
vote
0
answers
477
views
Magento 2 SOAP API Question
I am using Postman to test send data to different websites e.g
I have 2 websites each has its own domain e.g onoe website one store and one store view per domain.
e.g
1- http://test.com have:
...
1
vote
0
answers
462
views
Magento 2 - creating a Custom Attribute of type Boolean and assigning its default value to all the existing products in the DB
I have created a custom Attribute for the Product which if type Boolean and set the default value as Yes.
When I try to fetch the newly created attribute through Rest API I am not able to get the ...
1
vote
0
answers
104
views
How to add new div section in ko template(Checkoutpage payment section) in magento 2
I wish to add one div section on the checkout page(payment section) to add a custom message. How do I add it in below KO template
Magento/SalesRule/view/frontend/web/template/payment/discount.html.
...
1
vote
0
answers
1k
views
Magento 2.2.2 - The configuration parameter "componentType" is a required for "" component
I have found one error when I try to add product from admin side.
I have found some articles which have similar error but they have component name in my error it's not showing component name.
The ...
1
vote
1
answer
784
views
Magento2.2.2: UI Component Grid Filter Issue
In my custom module, my Grid Records are deleting perfect without applying filter. When i apply filter on grid records and try to delete only filtered records, it not only delete filtered records but ...
1
vote
1
answer
3k
views
Magento 2.2.2 Store and Admin not loading
OS Windows Server 2008
Magento 2.2.2
XAMPP 3.2.2
PHP 7.1.13
I was working on a local install of Magento 2.2.2 (I installed it when it was 2.2 and then when the 2.2.2 version came it auto-updated ...
1
vote
0
answers
81
views
How can add an image for submenu(subcategory) in magento 2?
I am creating a new module but I want to add images for subcategory in magento2 2.2.
Is there someone to show me how to customize it ? Thanks.
1
vote
0
answers
116
views
Magento 2.2.2 On product page when i save product sometime get error like ''Invalid Form Key'
what is exactly issue and why only sometimes arrive? sometimes working fine. anyone have a permanent solution for that?
1
vote
1
answer
796
views
Could not find package 2.2.3
When updating from 2.2.2 to 2.2.3 with
composer require magento/product-community-edition 2.2.3 --no-update
I get this error:
[InvalidArgumentException]
Could not find package magento/product-...
1
vote
0
answers
2k
views
System configuration:array serialization in magento 2
I have created system configuration for my custom module like below
Group 1
It works fine for a group 1 and generates a unique id for each row.
But while adding the second group, It adds the same ...
1
vote
1
answer
155
views
Top Nav Menu is not appearing in all pages?
Categories show in Menu When i install the Magento 2.2.2 v with sample data but when i install by custom theme the menu will disappear in luma default theme.
Please help me.
1
vote
0
answers
138
views
ReferenceError: initializeFieldsetDataByDefault is not defined Upgrade issue Magento 2.2.2
I have upgraded website from 2.0.7 to Magento 2.2.2 but when i try to open product or category in admin than console showing me below error.
ReferenceError: initializeFieldsetDataByDefault is not ...
1
vote
0
answers
331
views
Cannot save any products
I have done a basic product import (sku, name, etc) but now when I go to add more details to the product page and then click save I get this error.
I also keep getting this error randomly when ...
1
vote
0
answers
255
views
custom ajax call on billing address update magento 2
I am developing custom payment method, I need to call my js method renderer function when customer update billing address while checkout.
I try to place this call in initialize but my method is not ...
1
vote
0
answers
683
views
Not able to set Magento 2.2.2 to production mode
I am done with all the work of my website but now when I try to set it to production mode, it abruptly terminates in shell without giving any error details in log file. At least I was not able to ...
1
vote
2
answers
126
views
How can i add custom css and js in magento 2.2.2
Please help me how can i add my custom abc.css and filename.js in magento 2.2.2 .
default_header_html.xml file path
app/design/frontend/custom-theme/my-first-theme/Magento_Theme/layout/...
1
vote
0
answers
463
views
How to configure magento 2 billing address different from shipping address with paypal
I'm trying to enable the customer to assign a different billing address from shipping address in the checkout process using Paypal payment and I can't find a way to do it.
Thanks
1
vote
1
answer
578
views
Magento 2 overriding Block Class Function
I just want to override vendor/magento/module-backend/Block/Dashboard/Orders/Grid.php
I added this line $collection->addAttributeToFilter("status",["neq"=>"failed"]);
Core overriding is ...
1
vote
1
answer
269
views
Magento 2.2.2 does not load store properly and admin url through 404
Please help me with magento 2.2 installation issue.I have paid two days but no luck.
following are my system specs:
-
- Magento : 2.2.2
PHP: 7.1.11-0ubuntu0.17.10.1 (cli) (built: Nov 1 2017 16:...
1
vote
0
answers
61
views
Content Blocks Backend not loading
I'm not sure what caused this but out of nowhere my blocks in the backend of my Magento is not loading it sits there with a loading icon. https://imgur.com/a/9Osu2
I am also getting this error with ...
1
vote
0
answers
426
views
How to add owl carousel slider for recent view products in Magento 2.2.2 version with knockout js?
How to adding owl carousel slider for recent view products. I have successfully added it for related product, up-sell products etc. But I am not able to add it for recent view because in Magento 2.2.2 ...
1
vote
1
answer
40
views
Magento-2.2 development with CSS only (no use of LESS)
I know Magento 2 uses LESS for styling but what if I'd like to build a site with CSS only?
I don't want to use LESS in my custom theme.
How can I achieve this?
1
vote
0
answers
1k
views
How to override minicart content.html?
How can I override the following file for Magento-2.2.2
vendor/magento/module-checkout/view/frontend/web/template/minicart/content.html
Is there something different between .html and .phtml ??
As I ...
1
vote
2
answers
1k
views
Magento 2.2.2 - InstallSchema.php - update multiple tables
While developing a new extension, I'm trying to update two tables at installation time by using Setup\InstallSchema.php. The tables are "admin_user" and "customer_entity", and I basically need the ...
1
vote
1
answer
3k
views
Magento 2 Add extension attributes in Quote Item
I want to add custom attribute in quote items Magento\Quote\Api\Data\CartItemExtensionInterface
<extension_attributes for="Magento\Quote\Api\Data\CartItemExtensionInterface">
<attribute ...
1
vote
1
answer
503
views
magento 2 : event to capture the cart price rule coupon?
How to get the coupon code which customer enters in the checkout page and giving custom discounts to the customer according to the country code using observers.
please help me out.
0
votes
1
answer
82
views
Use Custom Module collection in other custom Module magento 2
I want collection of one module in other module. I am doing it like
use Test\CompanyAddresses\Model\CompanyAddressFactory;
class ReformatTelephoneField implements DataPatchInterface
{
protected $...
0
votes
3
answers
602
views
Magento 2.2 How to trigger billing address form validation programatically
I created a custom credit card payment method and I want to trigger the validation of billing address fields when "Place order" button is clicked.
0
votes
1
answer
31
views
Magento website backups
Sorry for the low level of this question; I'm a beginner, and I'm kinda unaware of the extent of my own ignorance at this point.
I need to back up my Magento 2.2.2 website before upgrading to v2.4.
So ...
0
votes
2
answers
2k
views
magento 2 error - "Fatal Error: 'Uncaught Error: Cannot instantiate interface
I have a custom module to expose an API to get the best selling products & most viewed products separately.
This module is working fine in my localhost and staging server. When i moved the same ...
0
votes
1
answer
98
views
How to get ordered products withing a date range in magento 2 programmatically?
I want to get the products ordered within a date range for a report.
As the result, I need like, product, product type, product Qty.
I tried to load all orders and get the sum of products, it want ...
0
votes
1
answer
349
views
How to remove ?___from_store=default from other store code url of my magento 2 website?
I have 2 stores on my Magento 2 website.
one for Srilanka & the other for Australia.
I am redirecting my customers based on customer's IPs to relevant sores.
Whenever I am redirecting the customer ...
0
votes
2
answers
576
views
How many years Magento 2 certificate is valid?
How many years Magento 2 certificate is valid?
How much time it will take to prepare for Magento 2 exam?
If Magento upgraded to magento 3 4...then the certificate is acceptable or not?
0
votes
1
answer
1k
views
Magento 2 Product Image are not showing on cart page and checkout page
Product Image are displaying fine on the category page or list page and product description page but it's not showing on cart page and checkout page.
I have tried following command:-
php bin/magento ...
0
votes
1
answer
178
views
How to change "You can create an account after checkout" label on checkout page?
How to change "You can create an account after checkout" label on checkout page?
0
votes
0
answers
73
views
Stopwords not working in Magento 2.3 for ElasticSearch 6.0+
I want to implement stopwords functionality in Magento 2.3 but it is not working.
I am overriding the file stopwords.csv using a custom module.
Someone, please suggest the solution.
Thanks,
Rashi
0
votes
1
answer
386
views
Magento 2.2.8 and Paypal error 500
I have some problem since several month, with Google Chrome Browser, when someone want to make a checkout, paypal return us an error 500. The error given are "POST [lang]/paypal/transparent/...
0
votes
1
answer
298
views
Show Multiple Quantity + Product Price on Product Detail Page in Magento 2.3
How we can show quantity table + product prices as given below screenshot on product Detail Page. If someone have idea, Please guide me i want to implement like this. These prices should be change ...
0
votes
1
answer
133
views
Magento2.2.2 SOAP API Create Partial Invoice
Partial invoice doesn't seem to be working correctly for SOAP requests when multiple item has been ordered.
POST URL: http://dev.test.com/soap/all?services=salesInvoiceOrderV1
SOAP BODY:
<?...
0
votes
1
answer
345
views
Magento 2 Payment Method Billing Address Country
Can one only show/allow specific countries in the billing address form in countries drop down ?
See screen shot attached. I need only/available in E.G: United Kingdom
0
votes
1
answer
66
views
Magento 2 is not showing product in categroy pages
I use Magento 2.2.2 and since yesterday I can't see any products in category pages. products are available individually but not available in any category pages
I've done these solutions but still, it'...
0
votes
0
answers
50
views
Delete Order associated Invoice, Shipments, Creditmemos
public function execute()
{
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
echo "=========================<br/>";
$request = $objectManager->get('Magento\...