Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
74 views

magento 2 EE should not save search terms with zero search results

I am using magento 2.1.8 Enterprise edition. I do not want to save search terms which have zero search results. Is there any solution ? There is no option in configuration to stop saving the search ...
2
votes
2answers
39 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: ...
0
votes
0answers
23 views

Cron Jobs Not Running

I'm having trouble configuring cron jobs for a client's website. The person working on it previously setup these cron jobs (MAGENTO v2.1.8 CE) : /usr/local/php70/bin/php-cli /home/XYZ/public_html/...
0
votes
1answer
61 views

Migrate Magento EE 2.1.8 to Magento CE 2.1.8

How to migrate Magento Enterprise Version 2.1.8 to Magento Community Version 2.1.8? I have installed a fresh copy of Magento CE with new database then Transfered the theme and the extensions. ...
3
votes
1answer
229 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
37 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: ...
0
votes
1answer
132 views

Magento 2.1.8 export not working

I try to export my products in Magento 2.1.8. When i select to export products and csv files format and i press continue then showing 'Please correct the data sent value.' Log file error: [2018-11-...
0
votes
0answers
93 views

Magento 2: How to reduce column width in admin grid?

I want to change column width. I don't want any scroller due to a large column width in admin grid. Here is the code. I am using: <block class="Magento\Backend\Block\Widget\Grid\Column" as="...
2
votes
1answer
51 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 ...
1
vote
0answers
16 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 ...
0
votes
0answers
52 views

Product export issue magento 2.1.8

When I am exporting products from admin getting error message: This page isn’t working example.com took too long to respond. HTTP ERROR 504 I have increase memory_limit and ...
2
votes
2answers
1k 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; ...
0
votes
0answers
22 views

`is_unique` is ignored when creating option via POST to /V1/products/attributes/{attributeCode}/option

When I repeatedly add new option (with same label) via API, multiple options are created. In UI the attribute options cannot be saved, because the unique constraint is violated. Why does not the ...
1
vote
1answer
195 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
3answers
435 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 ...
0
votes
0answers
62 views

How to update currency using cron in magento 2?

I have set multiple currency in my website, save currency rates and symbols all the functionality works fine. It is possible to make currency price automatically update in my admin side when currency ...
1
vote
1answer
287 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
votes
1answer
159 views

How to create magento 2 admin user from the root folder?

I want to create admin user from the root directory as it can be done in magento-1.9 , Is it possible? How can I create a new admin user without CLI (SSH) and database?
0
votes
7answers
254 views

How to uninstall extension Algolia_AlgoliaSearch in Magento 2?

I had installed Algolia_AlgoliaSearch extension via composer in Magento 2. Now I want to remove this extension from the website. So that I have deleted the complete files and folders of the extension....
0
votes
1answer
443 views

How to remove image url from sitemap.xml Magento 2?

I have created sitemap.xml in the website. In which, Image URL coming with cdn link. I have change setting from admin but still is showing. I don't want to use CDN URL in the sitemap. How to ...
0
votes
0answers
103 views

How to add brand page URLs in sitemap.xml

I have created sitemap.xml on the website. That's fine. But I want to show brands page URLs in the sitemap.xml How can do this?
0
votes
1answer
324 views

Magento 2 : Custom quote column value not copied on quote merge

I have created a custom column named 'campaign_id' through UpgradeSchema in quote table as below. $installer->getConnection()->addColumn( $installer->getTable('quote'), '...
1
vote
2answers
213 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?
0
votes
0answers
14 views

How to add schema tags on the product pages in Magento 2.1.8?

We are required to add schema tag on the product page for brand and sku. What is the way to add this?
0
votes
0answers
18 views

How to remove multiple 301 redirection via htaccess?

I have configured SSL on the website. I want to add 301 redirections if the URL hit in the browser with the below variation: http://www.example.com/ http://www.example.com http://example.com http:/...
0
votes
0answers
49 views

Issue with Associating existing simple product with a configurable product magento 2.1.8

I have created a configurable product and want to associate existing simple products. First, Add manually products button was not appear then I have created variations. Now, I am replacing the ...
0
votes
0answers
53 views

2.1.8 You have no items in your shopping cart

When I add the items into cart, I'm getting the message saying "You have no items in your shopping cart". I can see the following error in my browser console: undefined is not an object (...
1
vote
1answer
257 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
2answers
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
0answers
16 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 ...
0
votes
0answers
77 views

Some products have catalog/product/view/id/2221/name-of-the-product from product URL magento 2.1.8?

In the Site, product URL is like this: http://www.test.com/product-url-key But when I searching the product then some product URLs are showing like this: http://www.test.com/catalog/product/view/id/...
0
votes
1answer
110 views

Search product URL as catalog/view/id/213 Magento 2

I have disabled Use Categories Path for Product URLs, so the product URL Example: www.example.com/product-url Which is fine. But I have added some products which have visibility as search only. ...
0
votes
2answers
2k 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?
0
votes
1answer
267 views

How to hide COD payment method for specific product? [duplicate]

I want to hide cash on delivery payment method for a specific product. How can I do this?
1
vote
1answer
273 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 ...
0
votes
0answers
51 views

Order emails not sending to customer or admin magento 2.1.8?

I am facing an issue with sending the email. When I triggered email then server log shows below information: pr 4 11:11:35 ip-172-31-3-44 postfix/smtp[90393]: connect to gmail-smtp-in.l.google....
0
votes
0answers
26 views

How to checkout specific product from cms page magento 2?

I have a virtual product and want to add to the cart when clicking on a button which is on cms page. Customer must be redirected to checkout page after clicking on the button.
0
votes
1answer
170 views

Product image uploading issue from external path magento 2?

I am uploading images from an external URL. Image uploaded in the dir but getting an error message: 1. Imported resource (image) could not be downloaded from external resource due to timeout or ...
1
vote
2answers
81 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
0answers
219 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' ], ...
0
votes
2answers
368 views

How to show Additional charge on COD in invoice pdf magento 2?

I am using an extension to add additional fee on Cash on Delivery payment gateway. It is working fine but the COD fee is not showing in invoice pdf. This issue only for the admin invoice pdf. How ...
1
vote
1answer
634 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() -&...
0
votes
1answer
407 views

how to add product link on the checkout page order summary magento 2?

I want to add link on the product which is showing in order summary on checkout page. I have found HTML code in the file: module-checkout\view\frontend\web\template\summary\item\details.html Code:...
0
votes
1answer
482 views

How to skip Shipping method step in checkout if only one shipping method in Magento 2?

I have only one shipping method on my website. Do I want to skip shipping method step on the checkout page?
1
vote
1answer
576 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 ...
0
votes
2answers
120 views

How to make order id as transaction Id rather than random transaction with PayU?

I want to make order id as Transaction id for Order via credit card/debit card. Now, random ID generated. Below is the code. namespace PayUIndia\Payu\Model; use Magento\Sales\Api\Data\...
0
votes
1answer
1k views

How to add Additonal charge on COD in magento 2?

I want to add additional charge as COD payment method in Magento 2. How can I achieve this?
0
votes
1answer
315 views

how to add css and js in the footer in magento 2?

Currently, CSS and JS added in head section default_head_blocks.xml. But I want to add in the footer. In which I need to put the css and js?
2
votes
1answer
854 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
1answer
159 views

How to add Buy now button in Magento 2.1.8?

How to add buy now button in Magento 2.1.8 ?