Questions tagged [magento-2.1]

Denotes questions related to Magento CE and EE 2.1.x

2,334 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
32 views

Disable a dropdown based on Date attribute

I have created a 2 date attribute which is Date_from and Date_to via back-end. Admin can add these dates and related time slots in another drop-down attribute which is choose_date. In the frontend, ...
2
votes
0answers
29 views

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

How to call cronjob before default cronjob execute?
2
votes
0answers
17 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:
2
votes
3answers
675 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
0answers
177 views

Magento2 Mobile SSO - OAuth-based authentication

I have been asked by a mobile dev to provide Magento 2 API to create a single sign-on application for my store. I have provided this info: • curl -X POST "https://example.com/rest/V1/integration/...
2
votes
2answers
387 views

Can I Enable Bulk Endpoints Without RabbitMQ

I'm trying to enable bulk endpoints to upload multiple products at once (The CSV uploader seems to be completely broken, so I'm going this route instead). When I try to enable bulk endpoints (php bin/...
2
votes
0answers
192 views

EAV load collection issue (High Load Time)

We have an eCommerce platform. The issue is that when we increased the products to ~3000, the EAV:load_collection is taking a lot of time(~20 sec) and eventually slowing the site. If I remove the ...
2
votes
1answer
523 views

How to get Order Id after place order in javascript?

I am defining placeOrder method in my payment method, here is my code: placeOrder: function (data, event) { var self = this; if (event) { event.preventDefault(); } if (this....
2
votes
1answer
549 views

Magento 2 How to duplicate category products into another category

I am working on duplicate category, In my controller file, I am able to duplicate the category but I need to assign the same products to the newly created category from the old one. i.e. I have the ...
2
votes
3answers
436 views

Magento 2 Create A custom grid for product using Ui component

I want to create a gird using the UI component in Magento. The grid must have product id and product SKU. I tried using the below code but it's not working. Here is the below code to create the grid. ...
2
votes
2answers
2k views

Magento 2 : how to change order status processing to complete using Rest Api

Any option to update order status processing to complete in Magento 2 using Rest API.
2
votes
1answer
67 views

Create Update product REST API magento2.1

I got below error on my rest API on magento2.1 { "message": "%fieldName is a required field.", "parameters": { "fieldName": "product" } } My URL is: https://XXX/rest/all/V1/...
2
votes
0answers
83 views

How to redirect to Magento2 Customer Login page from 3rd Party Application/External application.....?

How to redirect to Magento2 Customer Login page from 3rd Party Application/External application. Suppose, when we want to redirect from any application to WordPress site we write redirect to http://...
2
votes
0answers
88 views

Unable to resolve the source file. magento 2 admin sales order grid

In admin. We are getting this error open SALES=>Orders. Unable to resolve the source file for 'adminhtml/Magento/backend/en_US/Magento_Ui/templates/collection' #0 /var/www/abc.com/vendor/magento/...
2
votes
1answer
36 views

What is the scope of source model extend and implement?

What is the scope of source model extend and implement between these two? \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource \Magento\Framework\Data\OptionSourceInterface Attribute options ...
2
votes
1answer
140 views

Add UI component Field in Block form

I want to add an image field of UI component on traditional block form. I want to replace only this field with UI component. The reset field should be in Block class form. $fieldset->addField( ...
2
votes
0answers
222 views

How to display Vat Tax & Product Price separately on cart page in Magento 2

I'm using VAT tax as including in product prices, But on cart page in Subtotal section i want to show original product price + Vat tax as separately. I'm trying but i could not fix this issue. in ...
2
votes
0answers
85 views

How to reset life sales=0 in Magento dashboard?

I have run below-listed queries: SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE `gift_message`; TRUNCATE TABLE `quote`; TRUNCATE TABLE `quote_address`; TRUNCATE TABLE `quote_address_item`; TRUNCATE ...
2
votes
0answers
142 views

Get and Add like(Favourite or Unfavourite) product in Magento 2 Rest API With URL?

Get Favourite product in Magento 2 REST API with URL? And Add to Favourite in Magento 2 REST API with URL?
2
votes
0answers
315 views

Notice: iconv(): Wrong charset, conversion from `MacRoman' to `UTF-16BE'

I am constantly getting this error/Notice on my system logs: Notice: iconv(): Wrong charset, conversion from `MacRoman' to `UTF-16BE' is not allowed in /data/vhosts/edgars/web/lib/Zend/Pdf/...
2
votes
0answers
111 views

Getting black background after adding PNG transparent image for products

Hello I am using Magento version 2.1.7. When I try to add any transparent PNG image to any product then in frontend it is displaying with black background instead of white. The image is not saving ...
2
votes
2answers
668 views

How to resolve magento2 module conflictions

I installed module conflict detector module. I found 4 conflictions in my magento. https://github.com/magefan/module-conflict-detector Please find attached image for referance. But i don't know how ...
2
votes
0answers
267 views

Magento 2 Increase guest session time and keep the items in cart for 20 days

I want t increase guest user session time in magento. If guest user add to cart and just go for lunch or any other activity putting his/her website open in browser, when user come after 5-6 hours ...
2
votes
2answers
302 views

Magento 2: If a module depends on 2 module which loads first?

In magento there is a module C and it depends on two module A and B. the module.xml of C is as follows: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
2
votes
0answers
284 views

Custom Widget with 2 conditions

I'm attempting to build a widget that allows the customer to build product tabs. I'm using conditions to allow the user to filter on products (using the core CatalogWidget conditions block) Widget....
2
votes
0answers
186 views

Transactional Email Styling not displaying on preview

I'm trying to style the content of the email example is the New Ordern or the Order Confirmation Template. Now I selected this template and added some css styling on this field under the Template ...
2
votes
0answers
31 views

Transactional Email Change Logo not working

I'm trying to change the logo of the transaction email. But upon changing of logo it's not displaying the preview of the uploaded image. So now I tried to preview using the inspector and below is what ...
2
votes
0answers
26 views

Magento2 address template

I want to show my addresses on customer panel like this: FA, Macon, rujeh st, NO12. instead of: fa macon rujeh st no12 what should i do?
2
votes
1answer
103 views

Authorize.net Magento 2 EE patch

I saw this link: https://github.com/MeetanshiInc/Magento-Authorize-Net-Direct-Post-Patch-for-M1-M2 Just wondering, does the patch for CE 2.1.0 - 2.1.9 work for EE 2.1.5 as well? Just curious.
2
votes
0answers
155 views

Sticky cart summary on magento 2.1

I want to stick my cart.summary (sidebar) in cart page. mean that, when i scroll down to see other items in cart page, side bar stick in the left and always can see him over scroll up or down.
2
votes
0answers
25 views

QTY box validation

I want to set a validation to use only English keyboard number on QTY box in product page magento 2.1 I mean that with any keyboard press 3 it use English keyboard not for-example Arabic keyboard
2
votes
1answer
520 views

How to use Magento HTTP\Client\Curl with HTTPS Url

How can I do a curl get request if the URL is in SSL? I get an error of malform url or 419. But I used a valid url. I'm thinking is probably the URL is in HTTPS? Although I'm not sure. So I was ...
2
votes
0answers
464 views

Magento 2: No such entity with customerId = '' when place an order

I getting below error when place an order. Error: No such entity with customerId = The customer placed an order with their login account but it's not showing customers in error. This error is ...
2
votes
0answers
28 views

How to create a custom payment method module

I was trying something new on the payment method where people can upload receipt and it will appear in backend I was thinking about editing the amazon pay and put my own code to it ,I am totally new ...
2
votes
0answers
39 views

Magento 2, adding price value 1,000 convert and save as 1.00, issue

https://github.com/magento/magento2/issues/13851 In the above issue, in Magento 2 they did that on every price field, but they don't do that if Magento prefilled those values. For example, if we can ...
2
votes
0answers
104 views

Composer update dependencies Magento 2.3

Is it okay to update the dependencies of a magento store using command composer update? The store is functional and running on magento 2.3 at the moment.
2
votes
0answers
291 views

ERROR Magento\Framework\Exception\LocalizedException: Field title can't be empty in Model/Theme.php:337

I have this problem installing Magento2, is stopped at 51%. I checked: Permissions => chmod 777 Composer Installation DB Also I tried with those Solutions: magento setup upgrade error: field can&#...
2
votes
0answers
310 views

Magento 2 : connect remote database over ssh tunnel

I have a database setup on remote server that is accessible via SSH. I need to connect magento 2 on my localhost to this mysql database via ssh tunnel. is this possible? if yes how?
2
votes
0answers
2k views

Class "String" does not exist swagger magento 2

I am working with swagger api but when hit this url :- http://localhost/magentosetup/swagger I get the error when I am trying to use api please help. :- 500 : {"message":"Class \"String\" does ...
2
votes
0answers
341 views

How to create dynamic rows field in custom Ui component form

I want to create field in custom ui form to add dynamic row and delete that row.. I know how to add dynamic row field in STORE > Configuration but I don't know how to add in UI component form. Then ...
2
votes
0answers
596 views

How to remove shipping method in checkout page Magento 2

I want to remove shipping method from checkout page. Can you guide me how can I do?
2
votes
0answers
50 views

Can I store Payment Reference Number of an order,which are generated by CCAVENUE in Magento-2.1?

I want to add Payment reference number for particular order. I will use Magento-2.1 and frontend is in Angular. Suppose CCAVENUE sending payment link to customer for placed order. CCAVENUE generate ...
2
votes
0answers
276 views

Change Tax value of Item added to Cart

Is it possible to change the tax value based on the tax class of a product when it is added to the cart? To put this clear, I do not want to change the class itself or the percentage it's calculated ...
2
votes
1answer
104 views

Versioned Static Content not Being Compressed

On my live server my versioned content (the url containing the versioned number) is not returning the static files compressed. However when I check the literal path to the content, by removing the “...
2
votes
0answers
29 views

How to create a custom design product attribute

I want to create a product attribute like below image. When user click add then it will add two new textboxes. if clicked on delete button it will get deleted. All the data will be stored serialized ...
2
votes
0answers
22 views

Trigger code on every popup

I wrote a specific code but it should run only when a popup is on. Not only a specific popup but all the popups on the site. How can I achieve it?
2
votes
1answer
129 views

Integrating VisaCheckout in Magento 2.1

Hello i'm newbie with Magento 2, I'm integrating visa-checkout button in checkout of magento Image is printed but i getting an error about Refused to load the image because it violates the following ...
2
votes
0answers
140 views

Magento 2: how to Get Customer Recently viewed product collection

How to get customer recently viewed product collection, I am using below code but not working anyone has an idea for same... Bellow code always return Null or blank array protected $recently_viewed; ...
2
votes
0answers
76 views

how can I restrict admin user permissions per field in Magento 2?

Is it possible to restrict an admin user on a attribute field basis? For example I would like some users/user role to edit stock of a product and the short description however I don't want them to be ...
2
votes
0answers
251 views

How to create search select box using block class

I want to create a select box like the below I know this can be done using Ui components, but i want it to be done using form.php class (block class) Currently i am just using the simple select box ...

1
3 4
5
6 7
47