Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [magento-2.1.8]

Denotes questions related to Magento CE and EE of version 2.1.8 Used in case the issue is connected with 2.1.8 version: update to this version, this version bug etc.

Filter by
Sorted by
Tagged with
6
votes
4answers
7k views

getting Fatal error: Class 'IntlDateFormatter' not found in magento 2.1.8

When I deployed my magento store from local host to server then I am getting Fatal error: Class 'IntlDateFormatter' not found in vendor\magento\framework\ObjectManager\Factory\AbstractFactory....
4
votes
4answers
7k views

Magento 2 set & get Registry values

I want to set an array in registry in controller_action_predispatch_checkout_cart_add event observer and read this in a phtml page. The following code will give blank result . => Code : namespace ...
4
votes
1answer
3k views

Magento 2 Mail Queue / log

Does Magento 2 log mails to the database? i.e. where did Magento 1's core_email_queue go? Does it make a difference if Sales Emails -> Asynchronous sending is enabled?
3
votes
3answers
2k views

Programatically update cart item quantity

Below is my code: namespace Ves\Productlist\Controller\Cart; use Magento\Quote\Model\QuoteRepository; class CartUpdate extends \Magento\Framework\App\Action\Action { protected $quoteRepository; ...
3
votes
1answer
512 views

How to downgrade Magento Enterprise 2.x to Community edition

My site uses Magento EE 2.1.8, I want to downgrade to Magento CE 2.1.8 , I havn't found steps to do that. I just found lot of articles for Magento 1. I see that there are two methods for downgrading, ...
3
votes
1answer
82 views

Magento 2 EE getting error when we try to save order from the backend

I have tried many solutions to fix this core issue. Whenever I am going to edit the order, update shipping or payment method and click on save. I am getting below error Fatal error: Uncaught Error: ...
3
votes
1answer
113 views

How to Override custom module Model in custom module Magento 2?

I have two Modules in app/code. Xyz_Xyz - Module that already exists. I can't change its file. Abc_Abc - Module that I creating to override Xyz_Xyz Model. The code I try is here. app/code/Abc/Abc/...
2
votes
1answer
1k views

Magento 2.2.2 Where did var/generation and var/di go?

I've recently upgraded from 2.1.8 to 2.2.2 CE(Commerce). Seems that var/di and var/generation are nowhere to be found. Also did the logic behind the code generation changed ? I've noticed some high ...
2
votes
2answers
1k views

Uncaught TypeError: data.some is not a function

In magento 2 Suddenly i got this error on product-> catalog -> relevant product . And round circle keep sniping in console I got this select.js:67 Uncaught TypeError: data.some is not a function at ...
2
votes
1answer
928 views

Magento 2.1.8 issue Undefined variable: imageBlockBuilder

I got following error in Magento 2.1.8 in my custom theme e.g. mytheme. Exception #0 (Exception): Notice: Undefined variable: imageBlockBuilder in /home/public_html/app/design/frontend/Company/...
2
votes
3answers
560 views

Load my regsitartion page in CMS page - Magento 2

My registration page is coming from path: /app/design/frontend/Mgs/claue/Magento_Customer/templates/form/register.phtml I am trying to load that in a CMS page. Not sure how to do that. Tried many ...
2
votes
2answers
3k views

How to add canonical tag for all cms pages magento 2?

I want to add canonical tag for all cms pages. Currently canonical tag enabled for category and product page. How to do this?
2
votes
2answers
2k views

PHP requirement incompatible with your PHP version | Composer module installation error

I try to install an extension using the composer: composer require magenest/module-worldpay-and-subscriptions:2.0.0 And get this: [InvalidArgumentException] Package magenest/module-worldpay-and-...
2
votes
2answers
1k views

Magento 2 - GIF Images , Animation is not working on frontend

I am trying to upload .gif image for few products , image is uploading from admin panel successfully and animation also working in admin panel. But issue here is when i am checking this product on ...
2
votes
1answer
202 views

How to add Buy now button in Magento 2.1.8?

How to add buy now button in Magento 2.1.8 ?
2
votes
1answer
315 views

Cron job on specific time not working

I've written a custom module and this module has to run every day at 12:30 AM. I've written a cron job and in the schedule I've update as follows: <config xmlns:xsi="http://www.w3.org/2001/...
2
votes
1answer
90 views

Magento 2: argument type error on compilation

I have compilation issue in my module. While I am running command php bin/magento setup:di:compile facing this issue in magento 2.1.8. It's showing this error: Incompatible argument type: Required ...
2
votes
2answers
148 views

Getting error in catalog product price indexing

I am facing below error while running indexing for catalog product price. Command: php bin/magento indexer:reindex catalog_product_price Error: SQLSTATE[23000]: Integrity constraint violation: ...
2
votes
1answer
275 views

How to call custom 503 page without error message in developer mode?

I have create custom error template into pub\errors\custom folder and Customize 503.phtml template file and write custom message into it. In Site Default Mode and Production Mode Template File ...
2
votes
1answer
713 views

Special Price not displaying on Wishlist

UPDATE - This is a reported isue in v2.1 but there is not fix for it. In Magento 2 special prices do not seem to be displayed on the Wishlists page. Is it possible to display these? How? Is there ...
2
votes
1answer
1k views

Warning: Illegal offset type in vendor/magento/module-catalog/Model/CategoryRepository.php on line 133

I am getting Warning: Illegal offset type in vendor/magento/module-catalog/Model/CategoryRepository.php on line 133 on product details page in Magento 2.1.8 Which is caused by vendor/...
2
votes
1answer
59 views

Magento2 : Child theme catalog module layot xml is not overrided

I have created two themes first is parent and second is a child to change the design of product page. I want to set different layout for some product layout so I have created the child themes. A ...
2
votes
0answers
161 views

Can't set additional options for configurable product in Magento 2

I'm using following code to set additional options for configurable product in magento 2 <?php namespace Company\ModuleName\Observer; use Magento\Framework\Event\ObserverInterface; use Magento\...
2
votes
0answers
23 views

Magento 2.1.8 Language Pack Only English is selected

I've created a Chinese and Japanese store views for my Magento store. In storefont the options for Japanese and Chinese are displaying. However, when I click on Chinese or Japanese, only English ...
2
votes
3answers
3k views

Magento 2 Get Product Url For Specific Store

I have multi stores enabled in my Magento instance. I am trying to get product url for each store as I need to index data in Elasticsearch. What I have tried but not getting the result with store ...
1
vote
2answers
1k views

HTML tags are not allowed in footer copyright

I just wanted to change my theme config and it gives me this error on Footer Copyright section: HTML tags are not allowed. => Screenshot : But if I make this copyright empty and Save the ...
1
vote
1answer
463 views

How to add custom field in catalog price rule and cart price rule?

I've custom module of banner. I want to add banner id as drop-down in price rules to select as custom field. When, I select banner Id during sales rule then the particular banner must be activated ...
1
vote
4answers
4k views

Magento2 Cron job not running

I have made all the admin settings based on previous post from magento stack exchange. I have created a custom module to send emails and I want to schedule the email based on cron job. I want to know ...
1
vote
2answers
709 views

Magento 2.1.7 to 2.1.8 upgrade issue

During Magento 2 upgrade process from 2.1.7 to Magento 2.1.8, when I run command: php bin/magento setup:upgrade I was getting below error: Cannot instantiate interface Magento\Framework\App\...
1
vote
2answers
354 views

How to move category to another parent category magento 2.1.8?

I want to move a category from parent category to another parent category. category Drag and drop from admin is too slow. So how can I do this using code?
1
vote
1answer
2k views

How to add 301 redirection rule magento2?

How to add 301 redirections for the base URL in Magento 2.1 via .htaccess. http://www.example.com/ http://www.example.com http://example.com http://example.com/ https://example.com http://...
1
vote
2answers
245 views

How to show “apply discount” option on checkout magento 2

I want to use apply discount option on the checkout page. How can I show this?
1
vote
1answer
551 views

FileUploader.js throws TypeError: postData.data.set is not a function in Safari

In my custom form I use the file uploader element: <field name="image"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <...
1
vote
1answer
356 views

Magento 1.9.3.4 -> 2.1.8 data migration tool error

I have tested steps of the import one at a time to determine that the issue occurs right after the map step. When I migrate customer and sales data using the data migration tool I get the following ...
1
vote
1answer
377 views

How to change Invoice increment id?

I want to change Invoice increment id from new series with the prefix. I have checked sequence_invoice table in the database. I have found 4 table: sales_invoice_0 sales_invoice_1 sales_invoice_2 ...
1
vote
1answer
744 views

how to remove decimal value from product price Magento 2?

The price-utils.js solution did not work for me. I have changed from const DEFAULT_PRECISION = 2; To const DEFAULT_PRECISION = 0; in /vendor/magento/framework/Pricing/PriceCurrencyInterface.php ...
1
vote
1answer
120 views

Creating copy of same product in different stores programmatically?

I have a scenario where I need to import translations of a product in different stores. At first this product exists in a single store, but after sometime when the translations will be available it ...
1
vote
1answer
2k views

Magento 2 : Indexing for large database is taking so much time

I have imported more than 250000 of products for two stores. I am trying to indexing those products but it is taking long time through SSH.Indexing Taking so much time and then after indexer lock. If ...
1
vote
2answers
3k views

How do I remove the category title on category pages for Magento 2?

I am trying to remove the category title on category pages on Magento 2.1.8. I got this page vendor/magento/module-catalog/view/frontend/layout/catalog_category_view.xml and removed this- <...
1
vote
0answers
24 views

Magento 2.1.8 Renaming image url after import or save

Is there anyone that knows a way of renaming product images after import or at save, from the original to the product's url + .jpg? e.g. if the product url is black-backpack.html and the original name ...
1
vote
0answers
20 views

PayPal orders using existing Order IDs

On our Magento 2.1.8 CE site we noticed random problems with orders where PayPal Express was used. Once the order is placed, it will not show up in the Magento admin. When we check in our PayPal ...
1
vote
0answers
290 views

Entity attributes not listed when exporting products magento2!

I am exporting products but entity attributes list not appearing on the page. When I check in response, it is showing script but not response. <script> require([ 'mage/adminhtml/grid' ], ...
1
vote
1answer
911 views

How to filter related product collection by is_salable magento 2?

Related products are showing with out of stock products, I want to hide out of stock products from related products only. $this->_itemCollection = $product->getRelatedProductCollection() -&...
1
vote
1answer
174 views

Error Notification “Design config must have area and store” in backend

In the M2 backend when I am trying to enable "Front-end Builder Account" in System > All Users > a user and save it is giving me error Notification "Design config must have area and store" in the ...
1
vote
1answer
107 views

Magento 2 - product is showing via url, but it isn't appearing in the frontend

I'm having a problem with Magento 2, I've created a configurable product like how I do it every time. However, some products aren't showing in the frontend of the categories, If I try opening it up ...
1
vote
0answers
43 views

Magento 2.1.8: SMTP - Configured store email addresses are not reflecting in the email

I'm using Mageplaza SMTP extension to send the emails from my Magento store. I've configured Email Addresses for my Store and also updated sales email configuration. However, when email send upon ...
1
vote
2answers
85 views

Magento 2 Admin Login Error [duplicate]

I am receiving this error, when i try to login through ADMIN. SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '0' for key 'PRIMARY', query was: INSERT INTO admin_user_session (...
1
vote
0answers
46 views

how can i uninstall sample-data-media in magento 2?

how can I uninstall a component without a module name? I'm trying to look for a solution to remove the sample-data-media.
1
vote
0answers
219 views

Configurable Attribute selection based on previous configurable attribute value in Magento 2

I have a configurable product with 4 configurable attribute, and this configurable product has 1000 of values in each configurable attribute. So my simple products of above configurable product ranges ...
1
vote
0answers
46 views

Magento 2 Custom Theme Not Working

I have created a custom theme and added Magento_Checkout, Magento_Theme, Magento_Catalog and Magento_OfflinePayments into it and edited some view files and both the Magento_Checkout & ...