Questions tagged [magento-2.1.3]

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

Filter by
Sorted by
Tagged with
24
votes
6answers
25k views

Static Content is not loading after upgrade

After upgrade from the Magento 2.1.0 to the Magento 2.1.3 (using composer) static content is not loading anymore. In the browser console I can see that all files is unavailable (404): I don't see ...
9
votes
5answers
20k views

Magento 2: How to update order status programmatically in custom module?

$orderId = 1; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('\Magento\Sales\Model\Order')->load($orderId); $order->setState("...
9
votes
3answers
9k views

Magento 2: How to add additional block on checkout page?

I would like to override the above file & display my custom block in the li. magento\vendor\magento\module-checkout\view\frontend\web\template\shipping.html <li id="shipping" class="checkout-...
9
votes
0answers
813 views

Magento2 : How to hide a Product from a specific Customer Group?

I want to create an extension that will hide a product from a specific customer group.
8
votes
1answer
10k views

Magento 2 Products Not Showing in Category (but are visible via search)

Got a little issue here with Categories. Running Magento 2.1.3 All other categories display the correct amount of product, except this one Under Products->Categories->"Kingdom Death" category ...
7
votes
8answers
8k views

cannot read property 'section loadurl' of undefined

I'm getting this error on the firebug while loading homepage. Due to this error the pages are not loading fully. only the Header, Nav Menu and Footer and showing. The main content sections are not ...
6
votes
3answers
9k views

Magento 2: setdata() is not saving the values into the database

Controller file Post.php <?php namespace QaisarSatti\HelloWorld\Controller\Index; class Post extends \Magento\Framework\App\Action\Action { protected $_objectManager; protected $hello;...
6
votes
1answer
18k views

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.design_config_grid_flat' doesn't exist

I just upgraded to Magento 2.1.3 and I'm getting the following error message when I go to the design configuration section: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db....
6
votes
2answers
3k views

Notice: Undefined index: id_field_name in vendor/magento/module-ui/Component/Form.php on line 78

I am getting this error while editing my form. This is my code : <?xml version="1.0" encoding="UTF-8"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for ...
6
votes
2answers
688 views

Magento 2.1.3 : Indexer creates an extra index on production, not on local development

I've already created an issue about this, but I've got a strange problem. Locally, when I run indexer:reindex everything works fine. However, when I run it on producten I get thrown a MYSQL error: [...
6
votes
2answers
2k views

Magento 2 add custom filter to grid for date

We have a requirement to add a custom filter for date field. So that we can filter using dateRange filter and also by selecting from a dropdown which has these values (today, this week, tommorow) etc. ...
6
votes
1answer
186 views

Issues with deplyoing static files command and frontend loses css and js

I have a serious issue which is ongoing with running php bin/magento setup:static-content:deploy First, I installed Magento 2.1.3 by uploading the files and run the setup wizard, all went fine, ...
5
votes
2answers
6k views

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. <!-- ko if: isFreeShipping() --> //My Code goes here &...
5
votes
2answers
6k views

How to migrate only orders with Data Migration Tool?

I want to migrate ORDERS from magento1. What i already achieved: Migrate all data(customers,orders,products,categories,settings etc) Migrate ONLY Customers Main objective to know config steps ...
5
votes
1answer
3k views

Update Magento 2.1.2 for 2.1.3 : Undefined index issue

My magento current version is 2.1.2 and upgraded with Composer by following command: composer require magento/product-community-edition 2.1.3 --no-update composer update php bin/magento cache:clean ...
5
votes
2answers
315 views

How to override class which extends Abstract Class

I want to override a class Magento\Catalog\Model\Product\Type\Simple di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
4
votes
3answers
5k views

Magento2 Something went wrong while saving the page

I have problem with creating new page from backend it shows me this message: Something went wrong while saving the page. I can edit and save the page but I can't create the new page. any idea??
4
votes
1answer
4k views

Magento 2: Email Templates Template Style is not Working

In Template Content i have put <p class="test">Hi</p> Template Styles i have put .test { font-size: 40px;} Then i have clicked on Preview Template, but it's not applying. I like to ...
4
votes
1answer
4k views

Magento 2 “Layout Update XML” in Admin not working

I need to update sorting on just one category in our Magento CE 2.1.3 site. I tried placing the following code in the Layout Update XML field on the category in the admin, but it doesn't seem to do ...
4
votes
5answers
5k views

Magento 2 : Created Custom Product Attribute but Not showing in Configuration Section

I Have Created custom attribute for configurable products. It is Showing in Add configurable Product section. But I Can't get those attributes in below section. $eavSetup = $this->...
4
votes
1answer
1k views

Pass jQuery value to Observer in Magento 2

I want to pass my custom_price changed via jQuery to my Observer in Magento 2 to have the correct price in my cart. My /Observer/CustomPrice.php: <?php namespace Vendor_Name\Module_Name\...
3
votes
2answers
1k views

How to make magento 2 indexing fast [closed]

I have Magento 2.1 shop with about 3,00,000 products, let me know the ways I can make indexing of shop fast What should be the best server configuration
3
votes
2answers
1k views

Trying to override magento-customer layout XML

I want to override the layout of magento-customer in my theme. The vendor path is /vendor/magento/module-customer/view/frontend/layout/customer_account_index.xml And its code is <?xml version="...
3
votes
1answer
440 views

Upgrade Magento version to 2.1.4

I need to upgrade Magento to the latest 2.1.4 version. But when I go to the "Web setup Wizard" and select "System Upgrade" I am getting following message: You're already using the latest version, ...
3
votes
1answer
710 views

noUiSlider.js is not working in the magento 2

My sited loaded noUiSlider.js in the template file in custom module but when I call the function in my custom js I was getting this error: ReferenceError: noUiSlider is not defined In this code ...
3
votes
1answer
915 views

Increase display time of exception message in magento 2

I am using Magento 2.1.3 and I need to display an error message in the shipping information page. Currently I'm using this code: throw new StateException(__('Shipping is not available on the provided ...
3
votes
2answers
2k views

Mutiple website with multiple sub domain in Magento 2

I'm trying to implement multiple website in Magento 2.1.3 For that, I have created an extra website store and store view My site URL is like www.example.com My subdomain is www.kw.example.com(where ...
3
votes
1answer
1k views

How I can create New State and Status programmatically in the Magento 2? [duplicate]

$orderId = $orderIds[0]; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('\Magento\Sales\Model\Order') ->load($orderId); $order->setState(...
3
votes
1answer
870 views

how i update the order status in controller in magento 2?

<?php namespace Vendor\Module\Controller\Index; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\Context; use Magento\Framework\App\ResponseInterface;class Index extends ...
3
votes
1answer
3k views

Magento 2 move minicart to header.phtml file

I need to place my minicart icon in a specific position in header.phtml file below is header container in default.xml <referenceContainer name="header.container" htmlClass="main-header"> ...
3
votes
1answer
80 views

M2: Why My Observer Is Not Firing For API Calls

I have an observer which is configured in my module File : app\code\MStack\Exchange\etc\frontend\events.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
3
votes
2answers
1k views

Magento 2.1.3 Multi Website or Multi Store

I have a requirement like this: "Single backend admin site. Front end shows a main eCommerce website from which another website should open based on Product Category selection. I mean there will be ...
3
votes
1answer
3k views

How Can I apply server side validation in magento 2

I am new to magento 2, and I want to apply server side validations, Can anyone please help me, Or suggest me how to apply. I have searched many links for this but i didnot understand. Here is my phtml ...
3
votes
2answers
919 views

Magento 2.1.3 Module layout not being called

I'm trying to write a custom slideshow module for Magento 2. Everything almost works fine but when I try to load the block in home page, the module's layout file does not load, as the custom css is ...
3
votes
2answers
184 views

Magento 2.1.3 Create theme

I'm beginning with Magento and it's incredible that create a theme is so complicated... I've understand that to add my css to the head I need to override a layout. So I override default_head_blocks....
3
votes
1answer
351 views

How to add an ajax reload script to a sidebar block

I am using Magento 2.1.3 and I've made a block that contains a div with an id of "tableHolder", then I added this script to my themes html head: <script type="text/javascript" src="//ajax....
3
votes
0answers
143 views

How to maintain the customer's active quote after Magento 2 database migration?

As per our client requirement, after our Magento1 to Magento2 data migration they expecting that all the active quote customers should not loose their cart items when they back. To be more clear, A ...
3
votes
0answers
203 views

Prevent place order using observer in magento 2

Hi I'm trying to prevent placing order with the help of observer i have already trigger the event "sales_order_place_before" with this i got all the details of the order like products in cart ,...
3
votes
1answer
467 views

Magento 2 configuration hierarchy not working as expected

I have setup a fresh Magento 2.1.3 installation with four websites that all have only one Store view. I want to set the locale on website level and leave the Store view level as 'Use Website' but ...
3
votes
0answers
539 views

Fetching simple product data from a quote item, based on a configurable product

In my module I want to do some things if a product in the cart has a custom attribute 'servicepack'. So by using the /etc/catalog_attributes.xml I exposed the property <?xml version="1.0"?> &...
3
votes
1answer
809 views

Add customer custom attribute to customer grid for searching and filtering

I have Magento 2.1.3 and have added a custom field in to the admin area of customers which works nicely, however I am now trying to add that field to the customer grid view in the admin area so we can ...
2
votes
7answers
25k views

Magento 2: Requested store is not found

I had two websites with different store and storeviews. I just deleted one website which is not the default one. After deleting it the admin panel page and also the front page shows this error ...
2
votes
5answers
3k views

Upgrade Magento 2.1.3 to latest 2.1.7

My Magento version is 2.1.3 and i need to upgrade it to latest version which is currently 2.1.7 Should i upgrade to 2.1.7 directly or should i upgrade version by version like 2.1.3 to 2.1.4 then 2.1....
2
votes
9answers
5k views

Magento 2.1.3 static content issue

I have installed Magento 2.1.3 , After that i reload the page, css and js not loading so, I remove pub/static content then, regenerate the static content, after that I checked css url path http://...
2
votes
1answer
3k views

Importing products with custom options

I'm trying to add custom options for my products, using import product tools. This is how my csv file looks like: sku,custom_options 1001BG,"name=Line 1,type=field,required=0,price=0.0000,price_type=...
2
votes
4answers
641 views

Upgrading Magento 2.1.3 to 2.1.8

I'm currently facing an issue with regards to upgrading Magento from 2.1.3 to 2.1.8. Unfortunately, My ISP refuses to run commands on their shared hosting server as this affect other clients as well ...
2
votes
3answers
4k views

Magento 2: unable to set payment Transaction Id after successful payment processing (solved by myself)

I am unable to set payment transaction id after successful payment processing... I have got payment confirmation transaction details by payment gateway on my controller action. Now I need to save the ...
2
votes
1answer
2k views

How do you get the new product ID after programmatically creating the product?

I have a configurable product and am trying to programmatically create a new simple product and then associate it with my configurable product. This is what I have so far... $newProduct = $this->...
2
votes
2answers
3k views

Magento 2: How to show admin system configuration options conditionally?

I have a dropdown in Magento 2 config setting. Now I want the setting to get displayed only when there are any options available for the dropdown, else it should be not shown. I also want to display a ...
2
votes
3answers
1k views

Getting category image

I'm trying to create a list of child categories with links to those categories and their image. I'm having an issue with getting the image, but all the other functions seem to be working properly. ...