Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

2,333 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
143 views

Magento2.1 add pagination to my wishlist

Want to add pagination and toolbar to my wishlist page on customer panel. Mean that i want to do something like list.phtml on wishlist page in customer account - customer panel.
4
votes
1answer
517 views

How to implement content security policy in magento 2

I want to know how to implement CSP on Magento 2 with GTM. The site has multiple stores. Tried to google but was unable to find any concrete result. Implimenting a Content Security Policy Magento 1....
4
votes
1answer
924 views

How do i eliminate render blocking css and js in magento 2

In google page-speed test it shows best opportunity to speed up is eliminate blocking resource. So is there anyone who can guide me to do this?
4
votes
0answers
853 views

Uncaught TypeError: $.initNamespaceStorage is not a function magento2

Some functionality is not working properly and it shows some errors in console Any help will be appreciated.
4
votes
1answer
48 views

URL Building Changes in Backend from 2.1.12 to 2.2.5

We are facing a regression during an Magento update from 2.1.12 to 2.2.5 which I want to understand better. Our code looks like this and is in a block on a tab of the backend order sales public ...
4
votes
1answer
2k views

Magento 2 : settings.$elementF.fotorama is not a function

I installed Magento 2.2.2 and getting issue with image gallery js. Product page images are not loading sometimes with below error settings.$elementF.fotorama is not a function
4
votes
1answer
263 views

Magento-2.1 : Warning: Missing argument 2 for OAuth\Common\Consumer\Credentials::__construct()

I have used below code, it's working in Magento-2.2 but not working in Magento-2.1 after code compilation. public function __construct( \OAuth\Common\Consumer\CredentialsFactory $...
4
votes
0answers
502 views

Random integrity constraint errors saving orders in Magento 2.1 after payment

I have a system that generates quotes, then submits the quotes, which processes a payment. The system is pretty standard: nothing really complicated is going on. The quotes have a single product in ...
4
votes
1answer
2k views

Pop-up modal on clicking 'Add to Cart' button!

In Magento-2.2, when we click 'Add to Cart' button, we need to show the following message as a pop-up modal: "Product is added to cart!" I know how to create modal outside of Magento with css. ...
4
votes
2answers
62 views

broken minicart - urgent

I have attempted to edit the minicart on our webstore, however this resulted in an error occurring which seems to be quite common but no one seems to have an easy fix. The minicart now outputs a JS ...
4
votes
1answer
1k views

How to sort by popularity in magento 2 product list?

I want to sort products by popularity and discount(high to low). How can I achieve?
4
votes
0answers
547 views

Is there a way to search by sku with hyphen without extensions?

I have some skus that have a very short string before the hyphen, like LC-100-PI, so the search brings up around 400 results that include "100" in them but the one I am looking for is not found until ...
4
votes
1answer
2k views

Magento 2.1 update special price dates programmatically

I have a problem updating the special price dates of a simple product. I've tried 2 versions of code, but without results. In both cases the special price will be update, but no affect to the start ...
4
votes
0answers
133 views

Magento 2 FPC with Varnish

We have Magento ver. 2.1.7 where I have installed varnish and enabled it from backend after exporting varnish 4 .vcl file. It seems to be working fine and pages which are once loaded do load quickly ...
4
votes
1answer
1k views

Magento 2 Fotorama click event

Is there a way to fire a fotorama click event from a template file? What I am trying to do is have the functionality where, when the user selects an options from the dropdown from the catalog-product-...
4
votes
0answers
755 views

Magento 2 : How to Return the Collection from afterload

I have implemented this jquerytokenizer in Ui Component form shown in the below image. It works well , the data is saved accurately- but when I go to edit a saved record this field is empty ...
4
votes
0answers
582 views

Magento 2.1 Rest API - Adding to Extension Attributes for VI/Orders/?searchcriteria

I have some custom data that I gather on checkout. Using etc/extension_attributes.xml, I was able to add this data to the extension_attributes output on VI/Order/#id, but when I use VI/Order?...
4
votes
0answers
503 views

search_tmp processes slowing whole site and making it inaccessible

Magento 2.1.8 installation, left catalog search index running overnight. It appeared to be successful and all products were showing this morning in the store. However shortly after the site has become ...
4
votes
0answers
697 views

Magneto2 remove widget via xml in custom page

In all cms pages i use widget. How can i remove widget by id on specific CMS pages? For remove block i use: <referenceBlock name="block_name" remove="true"/>
4
votes
0answers
767 views

magento 2 wishlist remove items

I need to make the code snippet work.In file magento\app\design\frontend\Webkul\agorae\Magento_Wishlist\templates\catalog\product\view\addto\wishlist.phtml Code snippet Code taken from path ...
4
votes
1answer
2k views

magento 2 : show all attributes even after filters applied in layered navigation

I'm using Magento-CE-2.1.7.and i want to use Layered Navigation.I have added an attribute from stores-->Product. catalog input type: Multiple select under manage options, I have added 4 Attributes (...
4
votes
0answers
1k views

OTP login for customers in magento 2

I want to implement customer login using OTP (one time password functionality). Customer should receive sms with code on phone whenever they login, which they fill on magento to login. Some ...
4
votes
4answers
1k views

try to get all products by category id but get only enable products in magento2

How can i get all the products(including disable) programmatically? in Magento2. try to get all products by category id but got only enable status products. My code is : $category = $objectManager-&...
4
votes
0answers
438 views

Getting Configurable Options to Show for Related Products

A the title suggests, I am trying to get configurable product options to show for products in the upsell and related products lists on the product view page. So far, Google has come up empty handed ...
4
votes
1answer
2k views

Something went wrong while saving this configuration: Incorrect theme identification key when saving store theme?

I changed the site to Single Store Mode It then defaults to no theme So when trying to update the theme I get: Something went wrong while saving this configuration: Incorrect theme identification ...
4
votes
1answer
294 views

Want to like getCustomAttributes() to my own table

I have created an admin page with a specialised ui component, which renders my custom table "galleries", which has several field "gallery_id", "colour", "background colour" etc. When loading the ...
4
votes
0answers
373 views

When I tried to save a Email Template in Admin, it thows me a 404 error: Page not found (only with some values and only in production)

Recently we upload our site to Production Server. In Developer Server all is apparently Ok. But, in production server, in Admin, when I go to Marketing > Email Templates, and I try to modify some ...
4
votes
1answer
955 views

After upgrade 2.1.2 to 2.1.7, Redis cache ends up in bad state intermittently, then all requests return 503

This site was stable on Magento CE 2.1.2. After upgrading to 2.1.7, we have encountered some issues in production. There are 2 recurring errors with an interval of hours to days between occurrences. ...
4
votes
0answers
1k views

Get active filters in Category/View Block in Magento 2

I want to return all active filters in a custom View Block in module catalog. While the categories are returned in the layered navigation view, this always returns an empty result: class CategoryView ...
4
votes
0answers
145 views

Update product stock based on store id Magento 2

I have created a multi-store view for my Magento site. In my custom extension I've successfully load store id and product, now I want to update the product quantity for specific store id, is there a ...
4
votes
1answer
3k views

how to extend default javascript

I try to extend standard magento javascript configuration but I just get nothing. I'm following this: http://devdocs.magento.com/guides/v2.1/javascript-dev-guide/javascript/custom_js.html and this: ...
4
votes
0answers
824 views

Magento 2 fotorama slider show more than 1 image at a time

I want to show 3 product images at a time on Product detail page. Here is the example image: But fotorama image only show 1 image at a time on slider. It doesn't have slides or items options to set ...
4
votes
1answer
202 views

Magento 2.1 : Calendar Frontend

I have some data on front-end , which I want to show on specific days in the calendar. I got this code to show the calendar on the front end . <?php $a = 'some text'; $b = 'some ...
4
votes
1answer
2k views

Magento 2 - Search title/product name only

Magento 2.1.2 We disabled the default Search value (YES/NO) of "Description" and "Short Description" to "NO", we will search only in the "Product Name" - but if the Search Keyword is "live" it does ...
4
votes
1answer
2k views

cannot get extension attributes value

The value can post However,I cannot get Extension attributes on my plugin which intercept Checkout success controller code. getExtensionAttributes always return null <?php namespace Genning\...
4
votes
0answers
418 views

How can I remove a custom attribute from a product via REST?

I can add or change a custom attribute of a product, i.e. via curl -X PUT --header "Content-Type: application/json" \ --header "Accept: application/json" \ --header "Authorization: Bearer MYTOKEN" -d ...
4
votes
1answer
2k views

'Option values are not specified' when saving configurable

I have a product import routine which calls $this->productRepository->save($product); but it's failing with the following error: [Magento\Framework\Exception\InputException] Option values are ...
4
votes
1answer
2k views

Magento2.1: How to override the template in custom module?

I want to create an extension that will give shop owners ability to edit their product image. So I understand I need this template Magento/ProductVideo/view/adminhtml/templates/helper/gallery.phtml I ...
4
votes
0answers
89 views

Get ID of created product in middle of database transaction

I am doing a webapi for Magento 2.1 and i need to create configurable product and simple products and then linking it all up. A psuedo-code normal transaction will look something like this. //...
4
votes
1answer
1k views

XML - Cannot move product.info.review after product.info.overview

I'm trying to do the following, moving product.info.review after product.info.overview (short description) I've used the following code, but it is not working: <move element="product.info.review"...
4
votes
0answers
706 views

Multiple dependency system config in magento 2

Example: field_1 values 1,2,3 field_2 values a,b,c field_2 depends on field_1 value 2 Now I want to make dependency on field_3 field_3 shows only when if field_1 value is 2 or 3 or if field_2 ...
4
votes
1answer
1k views

Magento 2.1. How to display select box instead of box in checkout shipping address?

As checkout page layout is mostly build in knockout.js and I have zero knowledge of knockout.js. I want to show shipping address in select box <select> instead of Box (ref to image - section 1) ...
4
votes
1answer
728 views

Magento 2 inline edit date issues

In magento2 Inline Edit date issues while i edit the record it display current date instead of my date My Ui component <!-- Date Column --> <column name="date" class="Magento\Ui\...
4
votes
0answers
141 views

products became "out of stock" after update from 2.0.7 to 2.1.0

After updating from 2.0.7 to 2.1.0 all the products in catalog became "out of stock". That's how they displaying in my bestseller widget (pic.1). But in admin panel they always have positive ...
4
votes
1answer
407 views

How to avoid duplicate code error while upload extension on Magento marketplace

I have developed a module which extends customer registration feature. In this module, I have overridden two controllers 1. \Magento\Customer\Controller\Account\EditPost I have added custom method ...
4
votes
2answers
983 views

Run .sql external file when installing extension in Magento 2

I have an .sql file which contain a lot of insert data, and i want import this .sql file to current magento 2 database file, everytime my custom extension finish installing and creating all custom ...
3
votes
1answer
264 views

Magento 2: How to set up Paypal Payflow Pro Sandbox?

Can someone provide clear instructions on how to set up Magento 2 to work with a Paypal PayflowPro Sandbox? I feel like I've tried every possible combination of user/vendor/merchant id/account id/...
3
votes
0answers
894 views

how to solve a error "Unable to save shipping information. Please check input data." while saving a data in checkout page in magento 2

how to solve an error Unable to save shipping information. Please check input data. while saving a data in checkout page in Magento 2
3
votes
0answers
68 views

Magento 2 Elastic search results show different relevant results

We are using Magento 2.1.8 and facing issue with elastic search results, it's returning all relevant results instead of exact results.
3
votes
0answers
377 views

Magento 2.1.10: Sort by Special Price doesn't working

I'm working on category page, and try to sort the products collection by Special Price. I've override setCollection() of \Magento\Catalog\Block\Product\ProductList\Toolbar And the result is the only ...

1
2
3 4 5
47