Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

Filter by
Sorted by
Tagged with
0
votes
0answers
17 views

Getting error on payment page

Getting below error on payment page. I am using my custom theme but not overriding the checkout page and payment
0
votes
1answer
44 views

Magento2 Translate cross sell, up sell and related products

we have magento 2.1.16 ce I can't get these three title translated: cross sell, up sell and related products Inline translation does not work for this ... They are not editable. And I also have an ...
0
votes
1answer
27 views

Integrity constraint violation 1062 duplicate entry - Magento 2.3.0

I'm facing this error in during when i run this setup:upgrade command. Can you help me regarding this issue, how to i'll fix this error ? Thanks
1
vote
1answer
21 views

Magento 2 - Increase customer session timeout for inactivity

Customer gets logged out after 30 mins of inactivity. I want to increase it to 1 hour. Any idea how to that?
0
votes
1answer
53 views

How to show tier price in Magento 2 catalog listing page

Tier price is working fine on the product page, but when we try to show on the listing page then it's not working. <?php /* @escapeNotVerified */ echo ($block->getShowDetailedPrice() !== false) ...
0
votes
1answer
45 views

Magento 2 Filter product collection by multiple attributes with OR

In Magento 2.3.3, How Can I Filter Product Collection by Multiple Attributes? First attribute SKU needs to check using "IN" second attribute is yes/no value. I need to filter collection by SKU array ...
0
votes
0answers
11 views

Get Dropdown field Label from value for custom collection in magento 2.3

I have created a backend Module 'deliveryslot'. We have two Dropdown fields 'Delivery Day' and 'Delivery Time'. I want to get the Dropdown fields Label from its value in Collection with Factory ...
0
votes
0answers
17 views

How to use {{trans “”}} in custom module?

I want to use {{trans ""}} tag in my custom module i have added editor field in my custom module. I have added {{trans ""}} string in my custom module but that not working it display {{trans ""}} as ...
1
vote
1answer
28 views

How to secure magento store with password protected with htacess?

My site is running on the server .I want to make it password protected by using htacess but i am confused about the htacess file location
0
votes
2answers
28 views

How to load categories and its product in magento 2?

Basically i am writing a PHP script in that script i want to load the categories by category name.When the category is load i want to load its product.For this purpose i have write this code but i ...
0
votes
0answers
7 views

how can i move the product tab section to the below of the product gallery with 50% width in magento 2

how can i move the product tab section to the left of the gallery section with the width 50% which is now having 100% width in magento 2.3.3 please help
0
votes
0answers
24 views

Top Search Not working in Menu Section in Magento 2?

I want to move my top.search to the menu that's why I added below the line in my default.xml file <move element="top.search" destination="catalog.topnav" /> After doing that tap cart ...
0
votes
0answers
38 views

magento 2 upgraded issue while runing setup upgrade command Magento_Sales. Original exception message: Warning: Illegal string offsetQ

Unable to apply data patch Magento\Sales\Setup\Patch\Data\ConvertSerializedDataToJson for module Magento_Sales. Original exception message: Warning: Illegal string offset 'option_type' in [Site Path]...
0
votes
1answer
18 views

magento 2.1.5 unable to add product getting mysql error

i am getting below error while adding product in magento 2.1.5 SELECT `e`.* FROM `catalog_category_entity` AS `e` WHERE (()) 2 exception(s): Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[...
0
votes
1answer
45 views

Which files need to be changed after uploading Magento store from localhost to online

I am a newbie I installed Magento on my local server XAMP in Windows 10. But then came to know THAT Magento does not support Windows OS Also Kindly guide me on which files include the URL which needs ...
0
votes
1answer
230 views

Magento 2.3.X “main.CRITICAL: Exception message: Invalid header value detected” while customer password reset request

I am showing these errors in my system log while requesting for a password reset. [2020-01-09 05:16:28] main.CRITICAL: Exception message: Invalid header value detected Trace: <pre>#1 Zend\Mail\...
0
votes
0answers
7 views

Magento 2.1 backend Filters localization

Im trying to localize the backend of Magento 2.1. i managed to translate most of the admin area except for The grid filters area. (image below) i added the translation to "app/i18n/...
0
votes
0answers
15 views

Magento 2 admin Ajax call failed bad request

I'm using custom js in Product Add/Edit page of magento 2 admin. I need to make a ajax call when the product save button clicked. I used the below code. require(['jquery', 'domReady!'], function ($) {...
1
vote
2answers
41 views

Magento 2.3.X country dropdown issue in backend while customer address edit

I have selected Allow Countries as Saudi and one another as you can see in below screenshot https://prnt.sc/qjyde9 the issue is that while edit customer record it's showing the different countries as ...
0
votes
1answer
32 views

I can't load default_head_blocks.xml and default.xml file in magento 2

I tried to load css file from default_head_blocks.xml but nothing happen, so if you can provide what did I do wrong?Is it wrong in structure files or something else ? Thank you Note : This theme ...
1
vote
0answers
51 views

How to add selected items on a page to a separate block in Magento 2?

Please help with the implementation of this functionality. I have a separate module with a separate route. There will be elements on the page (picture and checkbox under it) as in the screenshot. ...
0
votes
0answers
9 views

knockout - set event to fire when knockout has completed ajax call

I need to display a loader / spinner div on page load, and only remove it after the knockout.js ajax call has completed and the appropriate data-bind effects have completed. How can I register my own ...
0
votes
0answers
14 views

Magento 2 - Entity is not initialized error in both frontend and backend

My site is giving "Entity is not initialized" in frontend. Also when i try to access Customer list grid and Order list grid in admin facing same error. No idea where it is generating from. If anyone ...
4
votes
1answer
92 views

Magento 2 - How to add dynamic-row multiselect?

This image what I already have. I have to make second column as multiselect. How to achieve this? This should be configuration field.
0
votes
0answers
11 views

Creating an element through the admin panel and getting it in the template

How to create a separate part of the functionality in the admin panel that will look and work similarly to the products, but will be a separate functional. For example, in this part of the admin ...
0
votes
2answers
32 views

Magento 2 check user is loged in or not when click on any link in my account section

I want to check when the user clicks on my custom link in my account section it should verify that the customer is logged in or not then it should open.the particular action.Otherwise, it will ...
0
votes
0answers
11 views

How to do custom filtering using Ajax in magento 2

Hello I have one table in frontend , and this table contain 4 column: firstname,lastname,join date,price now i want to do one dropdown in that two option 1. This month and 2. This year when user ...
0
votes
0answers
24 views

Combining price and add to cart button in one element

How can I combine price and "Add to cart" button in one interactive element at Magento 2.1? Now it looks like: [ $120 ] [ Add to Cart ] How to make it look like: [ $120 Add to Cart ] ? Thank you ...
0
votes
0answers
15 views

Magento2 : cache_invalidate issue in debug.log file

Basically I want to modify the method below public function setListOrders() { $category = $this->catalogLayer->getCurrentCategory(); /* @var $category \Magento\Catalog\Model\...
2
votes
0answers
27 views

Magento 2: How to execute custom cronjob before default cronjob execute?

How to call cronjob before default cronjob execute?
2
votes
0answers
16 views

How to change the default product sorting when product is searched?

Basically when I search for product in search bar, the sort by section look like: but I wanted to select product name by default instead of relevance.like this:
1
vote
0answers
18 views

Store Magento media files on Google cloud

I need to store my media files on google cloud whenever i add products image or other media files. I am trying to use https://github.com/bangerkuwranger/magento2-google-cloud-storage module and i need ...
1
vote
0answers
14 views

Source for Magento 2.1.6 API documentation

We are using Magento 2.1.6 version for our e-commerce website, now the problem is I have to implement some new APIs for the logged in user but I am not able to find any API documentation for Magento 2....
3
votes
2answers
43 views

How to remove this CA in product price magento2?

How to remove this CA in product price?
0
votes
0answers
37 views

DateTime::__construct(): Failed to parse time string (Yes) at position 0 (Y) magento 2

i have created 2 columns in database as created data and update date .when i post data this exception occur. 1 exception(s): Exception #0 (Exception): DateTime::__construct(): Failed to parse time ...
2
votes
3answers
66 views

How to delete bunch of products in Magento2?

Is there a short and best way to delete bunch of products in Magento2. I am having list if 1,20,000 SKUs and want to delete that. Tried: Read CSV Delete products in loop by repository. Problem: ...
2
votes
1answer
40 views

Overriding Magento\Framework\Stdlib\Cookie\PhpCookieManager in Magento 2

Is there anyway to override Magento\Framework\Stdlib\Cookie\PhpCookieManager::MAX_NUM_COOKIES ? I tried everything, using preference in module di.xml or app/etc/di.xml or using aliases in application....
1
vote
0answers
33 views

Magento2 one page success error

I get blank page when I place order, on success page I have 500 error and it is blank. I can see the order on admin panel and buyer panel, but status is pending. Also i increased PHP memory limit. I ...
1
vote
1answer
18 views

Edit Magento 2.1.6 Cart Sidebar Links

I need to change the Links to which those buttons in the cart sidebar redirect. I can't find the file to edit them. I have marked in a red box the buttoms to edit My version of Magento is 2.1.6
0
votes
0answers
45 views

Magento 2 redirect to cart pages and checkout page

I am facing issue when I add item to cart its redirect to cart page. I have change the redirect to NO from admin but now its direct open checkout page. I need it like this when I click the add to cart ...
0
votes
1answer
35 views

Magento 2: on swatch image hover upadate product image on category page

How to update the swatch image on hover rather than click ? I have created the custom module to show the color count,here is my code: <?php namespace Swatch\SwatchCount\Block\Product; class ...
0
votes
1answer
27 views

how to find and use defined variables of less in magento 2?

basically i want to use the defined less variables in my custom theme.i have created a child theme of Luma .In child theme i have created a _theme.less file and by using the defined variables of less ...
0
votes
0answers
25 views

How to use grunt to compile specific .less in magento 2.1.9 child theme module directory?

I need to make massive changes on a purchased magento 2.1.9 theme. I created a child theme, copied the files I want to edit. For now I can use grunt to compile .less files located in the web/css ...
1
vote
2answers
44 views

Success Event for Order place on Admin side

I want to know which event is used for firing when an order successfully placed by the admin. Right know i am using an event sales_order_save_commit_after. The problem her i am facing is that while i ...
0
votes
0answers
26 views

Magento2 Landing page with custom attribute

I want to create a landing page with custom attribute brand Need to show just all brands who are my attribute value. Also need pagination and sort by newest.
1
vote
1answer
139 views

Magento2 composer update get stuck and not proceeding further

I am upgrading Magento version from 2.1.9 to latest i.e. (2.3.3). Steps I followed are: composer require magento/product-enterprise-edition 2.3.3 --no-update composer require --dev allure-...
1
vote
1answer
48 views

Magento 2 how to pass if exist search criteria in rest api call

I need to filter getList records in my rest api call. I have following: searchCriteria[filter_groups][0][filters][0][field]=city_ref&searchCriteria[filter_groups][0][filters][0][condition_type]=...
2
votes
1answer
37 views

Magento2 admin panel ordered product link

How to add products link in magento2 sales=> order tab in admin panel? Also I want to add custom attribute to order grid in admin panel. for example want to add type(custom attribute) to admin panel ...
1
vote
2answers
36 views

UI component custom column sorting not working

I am creating 3 custom columns in sales order grid column: Country Area City Filters are working but when I try to sort the column it shows Attention: Something went wrong Iksula/...
0
votes
0answers
18 views

How to add structured data snippet to email templates in magento 2?

How to add structured data snippet within the tag to order confirmation email template in magento 2?