All Questions

38,510 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
676 views

How to change currency in magento soap api

I am using Magento 1.8.1 and SOAP API 2. I couldn't find a way to change the currency for the API. How can I do this ? Or is this not possible with Magento ? And if this is not possible, is there a ...
7
votes
2answers
2k views

Custom indexer on Magento2

I'm trying to create a custom indexer on Magento2. I defined a mview.xml and one indexer.xml as follows: indexer.xml: <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="http://www....
6
votes
0answers
111 views

What is/means/does Magento\Framework\EntityManager\MetadataPool and Magento\Framework\EntityManager\Operation\ExtensionPool

There are new things we can see at Magento 2.3 in di.xml for service contracts. let's give an example:Magento_Cms module Like Magento\Framework\EntityManager\MetadataPool Magento\Framework\...
6
votes
0answers
202 views

Running a single MFTF test that is included within a suite

I am trying to only run the test StorefrontVerifySecureURLRedirectCheckout. To run it I am using the following command: vendor/bin/mftf run:test StorefrontVerifySecureURLRedirectCheckout -k (I have to ...
6
votes
0answers
364 views

Error in add or update a cart in magento 2?

Error in add or update a cart in magento 2? In magento2 , when create a new cart_price_rule in admin after update or add a product to cart its shows a error In admin, i was create a new ...
6
votes
0answers
180 views

How to pass a attribute code dynamically in extension_attributes.xml

How to pass a attribute code dynamically in extension_attributes.xml or how to save a custom field value in db in checkout page without extension_attributes extension_attributes.xml <?xml ...
6
votes
0answers
96 views

How to create Dynamic rows in custom admin form?

I want to create a form field which has dynamic rows in that page. Also, I want to store the form data in database table. I already referred this link >> https://github.com/bbakalovGlobal/...
6
votes
0answers
140 views

Inconsistent package.xml - Magento 1

I tried finding a Slack or Discord server for Magento before coming here. I am trying to submit a Magento 1 extension for technical review @ marketplace and the package.xml won't pass marketplace ...
6
votes
0answers
85 views

How to create custom XHTML template system in magento 2?

Hey guys, I want to know how to create a custom XHTML system with the custom module or via core file system in Magento 2 & how it works?
6
votes
0answers
115 views

Tax subtotal excluding from sale price although settings are not

I have running Magento 1.9.3.7 on PHP5 for some weird reason, tax is acting weird on checkout and cart, first prices are displaying as normal, then on the subtotal, tax is deducted from selling price,...
6
votes
2answers
2k views

How to set custom tax price during add to cart in Magento 2

I am adding product to cart using ajax call. Here is my controller code. use Magento\Framework\Controller\ResultFactory; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\...
6
votes
2answers
795 views

Magento 2.2.8 - Possible Issues during upgrade?

Magento 2.2.8 was just released https://github.com/magento/magento2/releases/tag/2.2.8 . What are the issues that we might face during the upgrade ?
6
votes
2answers
470 views

Can't update product / Unique constraint violation

Since migration, to Magento 2.3 i can't save any products. Exception.log reports (when i try to update in default scope) : [2019-03-21 17:29:07] main.CRITICAL: Unique constraint violation found {"...
6
votes
0answers
852 views

Magento 2 place order redirecting to the cart page

When I am trying to "Place Order" -> it is redirecting to cart page, the order is not placed and cart items are in the cart. I tried this solution, but unsuccessfully. I use Mageplaza_Osc .../...
6
votes
1answer
112 views

How to use simple javascript not jQuery in Magento 2 footer?

I want to use javascript file in Magento 2.3 footer before the body and simple javascript, not jQuery. How can I do that? I have added requirejs-config.js file in module/view/frontend code is var ...
6
votes
0answers
629 views

Add a custom attribute to company in magento 2.2.2 for B2B

I am using B2B extensions and I want to add custom attributes to company entity, As a text field and create 6-digit number randomly for that i'm using $customcompanyattribute = mt_rand(100000, ...
6
votes
1answer
2k views

Magento2.3 : Layered Navigation issue

When call block on custom view: $layer=$layout->createBlock('Magento\LayeredNavigation\Block\Navigation\Category'); Exception #0 (RuntimeException): Illegal state #0 /home/httpdocs/...
6
votes
1answer
285 views

Magento Migration Unable to serialize value from sales_flat_order_item

I'm getting error while Migrating data from 1.9.3.3 to 2.2.6 CE. Error I'm getting is like below: Could not unserialize data of sales_flat_order_item.product_options with record id 7. I've ...
6
votes
1answer
365 views

Swagger available to the world wide web

On any given Magento2 website, you can navigate to https://yourmagentostore.com/swagger and access the swagger UI for API methods. One of the methods that you can test before being authenticated is ...
6
votes
1answer
719 views

Magento 2 Add to cart api Item price set zero in Quote Item table

I am trying to add product to cart with Magento 2 default API. POST : http://{{magento2}}/rest/V1/carts/mine/items Request : { "cartItem": { "sku": "p2", "qty": 1, "price"...
6
votes
1answer
798 views

Magento 2 Catalog Price Rules applied to special_price

Catalog price rules by default are applied to the "price" field. I need to make the Catalog Price Rules applied to "special_price" field. Default use Example: If price=100 , special_price=90 and the ...
6
votes
4answers
935 views

how to install extension without composer

I want to install this extension in my project where i have integrated a new template :evincemage/module-trackorder . I tried with empty project(without template ) it works but with template it does '...
6
votes
1answer
2k views

Magento 2 No such entity with cartid = help!

I'm experiencing this error on my site quite often: Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with cartId = It's not using multiple stores, so the entity_ids ...
6
votes
0answers
676 views

Magento 2 Checkout Error Uncaught TypeError: Cannot read property 'getCacheKey' of null

I have an issue on checkout page and we are getting below error on console. It looks like address object is not loaded correctly on quote object and we are getting different error each time. This ...
6
votes
1answer
671 views

In Magento 2 , configurable product options disabled after the first selection.How to reset option?

I am using Magento 2, I have some Configurable Products with a lot of variants (in some cases there are 5 attributes, each with several options). Each variant has a Simple Product associated with it, ...
6
votes
1answer
593 views

Magento 2 : How to Get Shipping Quote (Shipping Calculator) on Product Page

I want to display the Estimate Shipping and Tax section on the product page in Magento 2. Any guide how can I achieve this? I don't need the code but If you can provide any guidelines that will be ...
6
votes
0answers
858 views

Magento 2 Rest API get Quote Item Custom Option values

Hi I have tried with the magento 2 rest apis 1) V1/orders/:order-id 2) V1/orders/items with serach filter order id 3) /V1/carts/:quoteid/items The above apis are not returning the Order item ...
6
votes
0answers
424 views

How to ignore(remove) <update handle=“name” added in other layout

module-sales/view/frontend/layout/sales_order_view.xml has following code: <update handle="sales_order_info_links"/> Is there any pretty way to remove such updates? p.s. I know about ...
6
votes
1answer
559 views

Magento 2 :- How can i add tab in customer group?

I tried to create new tabs as per the customer tab, add in admin side, but I am getting the error so can any one help me. How can i do this thing? I refer this link for that 1) http://www.dckap.com/...
6
votes
0answers
532 views

Magento 2 The session id is too long

I am running Magento 2.2 on php7.1 and getting the following errors in my var/report and on my error log: > {"0":"Warning: SessionHandler::read(): The session id is too long or contains ...
6
votes
2answers
1k views

What's the template code to display error/success messages?

I want flash messages to appear on a custom page I am making. Since I am removing pretty much all of the other layout, I need to find the templating code that prints out messages. If I already have ...
6
votes
0answers
251 views

Add custom input text field into layered navigation without creating product custom attribute

I have successfully extend the _getProductCollection function at \Magento\Catalog\Block\Product\ListProduct to my custom module block, the problem is I need to add text input to layered navigation so ...
6
votes
0answers
677 views

Uncaught Error: Call to a member function setItem() on boolean on product grid: Magento 2

I have a custom module in which I am using the grid to add items in the admin end. The items are getting added properly and everything is working fine. However, I face an issue often where after ...
6
votes
1answer
908 views

Paypal payments pro-Your payment has been declined. Please try again

I am using paypal payments pro. configure paypal pro using sandbox mode .when we fill all credit card details on front end and tr to place order but order does not placed display below error message. ...
6
votes
1answer
572 views

Magento 2 : Sort by custom attribute numeric value

In magento2, I created a custom attribute in Magento 2 backend and make it use for sorting listings. The problem is the value is numeric in this attribute EX: (1,4,5,3,7) other attributes with text ...
6
votes
1answer
121 views

Static Application Security Testing (SAST) results Magento Module

I have developed a payment gateway module. Now I need to generate Static Application Security Testing(SAST) result report for ensure all code is scanned for vulnerabilities into my payment module. Is ...
6
votes
0answers
898 views

Uncaught Error: Cannot instantiate interface Developer.php

HELP!!! Tried to upgrade Magento from 2.1.7 to 2.1.8 and now I getting below error, when I load the store. Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\App\Config\...
6
votes
0answers
496 views

How to apply custom validation in Magento 2 checkout Shipping Address form?

In Magento2 - I want to apply some custom validation on shipping address form of Magento 2 Checkout. Normally I do it with JQuery but don't know how to apply it in Magento 2. The validation I want to ...
6
votes
0answers
380 views

Magento 2 : How to set default value in custom option

Magento2 - How to set a default value for a product custom option, so that default value can be visible in product details page as default value.
6
votes
1answer
1k views

Magento 2,Fotorama api ,How to add and play custom video in product page.

I want to add and play custom video where product images are display. Can any one help me?
6
votes
1answer
128 views

Magento 2 : Sales Representative Collect Items from catalog

I want functionality or extension where Sales representative collect items from catalog. After collecting all the necessary items, Sales representative send link to individual customer for checkout. ...
6
votes
1answer
805 views

How to add custom customer attribute in custom tab in customer edit page of admin in magento2

I have created custom customer attribute successfully. Which are showing under account information tab of customer edit in admin. I want to show them in my custom tab.
6
votes
0answers
606 views

How to override class Virtual Type class

I saw this, but it don't work for me. How to override Virtual Type class in Magento 2 <virtualType name="categoryFilterList" type="Magento\Catalog\Model\Layer\FilterList"> <arguments>...
6
votes
0answers
512 views

How to prefill Magento2 checkout email field?

I am passing email from some other page which I want to auto fill in check out page shipping address form. I have been referring to How to auto fill the shipping address field it works for other ...
6
votes
1answer
3k views

How to show error message in Magento 2 checkout page

I'm developing Magento 2 extension. I've added controller_action_predispatch_checkout event observer and trying to add a error message via ManagerInterface. events.xml: <event name="...
6
votes
1answer
488 views

Different quantity for different size add to cart product

i've created configurable product which has different sizes and different colors, In my product details page currently there's only one quantity input field and i need to select the size before add to ...
6
votes
2answers
2k views

Product image not zooming in properly when hovering on image at product detail page

In my product page detail when i try to hover the product image there's only white box with low opacity overlaying at the top of my image like this : Usually in Magento 2, when hovering the image it ...
6
votes
1answer
889 views

Magento 2: insert products images alt tag programmatically

I need to insert ATL tag for catalog products images programmatically. Is there any way to do it?
6
votes
0answers
98 views

How to do the same controller action to create an image for one button but not for another?

We are calling same controller action for 2 buttons for create product pro-grammatically and assign a custom image for that product. 1. create - custom image uploading for newly created product 2. ...
6
votes
0answers
656 views

Magento 1.9.3.1 email template for set password by admin not existing in transaction mails?

I got a strange problem with email template for this case and can't find the correct template. How to reproduce: admin user => Admin -> customers -> manage customer ->... -> change password Now the ...

15 30 50 per page