Questions tagged [magento2]

General questions about Magento 2, not specific to a minor version. Use this tag to distinguish from Magento 1. If you have issues with a specific version, please use the appropriate 'Magento-2.x' tag instead. Functionalities between Magento 2 minor versions might differ.

19,730 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
1answer
688 views

How to locate culprit for “Please correct the XML data and try again” error

Getting the following error on the cart page of Magento 2, checkout_cart_index. It's a code base with no version control and this issue is present even when I'm using the default Luma theme. I've run ...
5
votes
0answers
1k views

Magento 2 : How to generate a collection from data models

If I understand correctly, Magento 2 moves more and more to the strict use of data models instead of creating models that are tied-in with their resource models and have all kind of business logic ...
5
votes
0answers
370 views

How does Magento_payment/transparent work?

I'm trying to get a payment gateway up and running, and it appears that the majority of the built-in payment gateways use the following code for their credit card form: <iframe width="0" ...
5
votes
1answer
2k views

How to add captcha in product review form in magento2?

I am trying to add Captcha inside product review form. For that i add <referenceContainer name="form.additional.info"> <block class="Magento\Captcha\Block\Captcha" name="captcha"...
5
votes
1answer
3k views

Magento 2 Restore Quote/Cart after order is cancelled/Failed

I am Trying to Restore Quote/Cart after order is cancelled/Failed in custom payment gateway (CCAvenue) but the problem it the quantity of item restored is doubled. protected function _cancelPayment($...
5
votes
0answers
442 views

How to show “Only 1 Product available” also on Configurable Product?

Im wondering how I can "activate" the "Only X left Threshold" also for configurable products? On Normal Products it works and shows for example "only 1 left", but on products where you can choose ...
5
votes
0answers
2k views

Magento2 How to get Custom order attributes value in response in rest api v1

down vote favorite I have installed Amasty order attributes extension I followed http://magehit.com/blog/how-to-get-value-of-custom-attribute-on-magento-2-rest-api/ and created app/code/Amasty/...
5
votes
1answer
688 views

Magento2 - Widget with WYSIWYG editor

I'm creating my own extension that adds a widget with a WYSIWYG-editor. I found a tutorial about this subject: http://www.magebuzz.com/blog/magento-2-add-wysiwyg-editor-text-area-in-custom-widget/. ...
5
votes
1answer
1k views

Magento 2: Advanced Custom Fields for CMS Pages

As in Wordpress, we have https://www.advancedcustomfields.com/. So in Magento 2 we have http://www.advancedcontentmanager.com/download-acm-extension-m2.html It helps Customer/Client to Manage their ...
5
votes
2answers
2k views

Magento2 : How to force Shipping Address is the same as Billing Address?

Is there a way to prevent the addition of a different address at checkout, so that billing and shipping addresses are always the same? With this I'd like to also prevent the user adding a shipping ...
5
votes
0answers
960 views

Magento2 : Tier price and Tax Calculation

I am encountering a bug with tier prices displaying and calculating the wrong percentage saved due to taxes. I am using Australia GST calculations for this: 10% on all products and tax is included in ...
5
votes
1answer
1k views

Get postcode and country_id from object mage 2

I get all data from checkout, with the next code: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $cart = $objectManager->get('\Magento\Checkout\Model\Cart'); ...
5
votes
4answers
4k views

Magento 2 - Backend custom module 404 error

I'm trying to create my custom module in the back-end, I followed a lot of tutorials, but I continue to get 404 error when I try to access to my controller. The only thing that work fine is the menu ...
5
votes
0answers
539 views

ListProduct class override issue

Why does my ListProduct classnot overriding, I have overridden the Magento/Catalogs Controller and other Blocks...seems like a problem in only this Block class. Where can the possible issue be? ...
5
votes
0answers
6k views

Confirm email after Customer signup magento 2

I am developing a e-commerce mobile application using magento 2 REST apis. The sign up api is working perfectly. Signup Api-> http://{{domain_name}}/index.php/rest/V1/customers Also I changed ...
5
votes
0answers
911 views

How to make country_id/region_id/region to work in custom admin form?

I need country/region fields in custom form in admin panel. I have following fields: <field name="country_id"> <argument name="data" xsi:type="array"> <item ...
5
votes
0answers
411 views

Paypal Payload for Payment Rest API 2

Can anyone help me for payload of paypal standard we are trying two api's nothing works for us. We tried multiple payloads already but no success in order placement. POST /V1/guest-carts/{cartId}/...
5
votes
0answers
2k views

Magento 2 Separate billing address

If a customer wants to change their billing address they have to untick the option My billing and shipping address are the same, a form then appears for them to fill in. How can I make this unticked ...
5
votes
2answers
1k views

Magento 2 Api Integration

Hello I'm trying to use magento 2 Rest and Soap integrations when I try to activate my integration I get the error Unable to post data to consumer due to an unexpected error these are my current ...
5
votes
0answers
691 views

All product images need to be defined in view.xml?

In Magento 2, the image sizes are defined in theme's view.xml file, e.g. in Luma theme: /app/design/frontend/Magento/luma/etc/view.xml: <image id="category_page_grid" type="small_image"> &...
5
votes
0answers
559 views

Magento 2.1 how to vault a card

Anyone out there know how to vault a Braintree card without having to create a payment ? I need to be able to allow customers to change their card details on a recurring payment. To do so would ...
5
votes
0answers
574 views

Magento2 Transform Multi Select Attribute Filter into Swatch Filter

is there a way in Magento 2 to transform a product multi select attribute, which is used as a filter into a color swatch on frontend? We need this attribute in backend as multi select but have to ...
5
votes
0answers
1k views

Magento 2 - Move Category Page Toolbar/Sorting Options Above Both Columns

What I'm trying to do is move the toolbar/sorting options on the category page above the left column and right column so it spans the full width of my content area. I'm trying everything and nothing ...
5
votes
1answer
578 views

Magento : Admin catalog page error

I am new in Magento and I have just installed new version Magento-CE-2.1.0_sample_data-2016-06-23-02-32-34.zip on windows 7 using XAMPP. When I navigate to products->catalog.php it shows me this ...
5
votes
1answer
751 views

magento2 email header.html is not being included in transaction email

I have created a transactional email in Admin, Marketing -> Email Templates. Loaded in an email template from the Default Templates, but it's a custom module. The template code loaded into the text ...
5
votes
1answer
2k views

Magento 2 REST api for guest cart - display product in Magento's checkout

I have an Ember app that handles adding to basket via the REST API. I then want to jump back into Magento's front end for the checkout process, however the cart is empty. Is there a way to pass a ...
5
votes
0answers
2k views

(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process binding

On page loading the following error occurs. knockout.js:3012 Uncaught ReferenceError: Unable to process binding "attr: function (){return { id:'cart-item-'+item_id+'-...
5
votes
1answer
902 views

Magento 2 - assign custom email template to specific payment method

What is the proper way to assign custom email template to specific payment method upon creating an order? For example: When choosing a Bank transfer payment method on the checkout it should send ...
5
votes
1answer
985 views

Customer name is missing in welcome message after login

In header, there is a welcome message which can be configured in the Magento backend. However after login, i found that the customer fullname is not insert into the welcome message,(i.e. always ...
5
votes
3answers
6k views

Magento 2 custom payment method not showing in front end

I have tried to create new payment method in magento2, when i tried to configure it is coming in the backend, but not in the front end. If anyone fixed this issue please let me know the fixes, i am ...
5
votes
1answer
247 views

Use UI library mixins in custom module

I need to use some UI components in a custom module, so I included Magento2 Ui base library in my less file in this way: @base-dir: "../../"; @import '@{base-dir}css/source/lib/_lib'; This works ...
5
votes
0answers
1k views

How to add filtering to custom table field column in Customers admin grid in Magento2?

Added custom columns from custom table to Customers grid using JOIN in the following method: \Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection::_beforeLoad: protected function ...
5
votes
0answers
2k views

Proper way to get product collection with store specific values in admin area

For a custom indexer, I need to load a product collection with the attribute values for a given store, while not in a store context. As it has been established in Magento 2: How to Filter a Product ...
5
votes
0answers
2k views

After assign custom home page layout getting blank page in Magento2

Magento2 by default provide 1column, 2columns-left, 2columns-right, 3columns layout and I want to set new layout for my Homepage so I do below process. First copy 2 files from this path 1. ...
5
votes
0answers
251 views

How to display crossed swatches for not available sizes in Magento 2?

I've set up a text swatch for sizes S, M, L. When a size is sold out I want Magento to display the sold out size with a red mark instead of hiding that size option.
5
votes
0answers
613 views

customers cancel return products in my account page- Magento 2

My requirement is adding cancel and return option in customer account page. add cancel option after place order. add return option after delivered. I am wondering it is a very essential option but ...
5
votes
2answers
5k views

“403 Forbidden” error page when trying to open Magento 2 setup page

I'm trying to install Magento 2 on a Godaddy Ubuntu virtual machine. After following what is in the installation manual (hopefully), and when I reached to the step of opening the setup page of the ...
5
votes
1answer
1k views

Render Javascript on customer_login event

I'm trying to render some javascript when the customer_login event fires by accessing a block on the layout from within the observer. I've successfully registered my observer to execute with the ...
5
votes
1answer
2k views

Set product name per store view programmatically in Magento 2

How can I set the name of a product in a specific language (store view)?
5
votes
2answers
3k views

Add custom link in customer account navigation

I want to add custom link in customer's navigation.I have developed below code but getting 404 - not found issue while click on the tab. <?xml version="1.0"?> <page xmlns:xsi="http://www.w3....
5
votes
0answers
2k views

Magento 2 - Export/Import Product Attributes

I'm trying to export my Product Attributes from one store to a new clean store database. I created a mysqldump for the following tables: catalog_eav_attribute eav_attribute_group eav_attribute_label ...
5
votes
1answer
180 views

Magento 2 content overview not loading

I am new to Magento, and i just installed a clean build in CPanel. My content overview in backend won't load. Pages, blocks and widgets overview is not showing any results, even though i just saved ...
5
votes
2answers
2k views

Create custom “Catalog Input Type for Store Owner” for magento 2

I need to create a special input type in adminhtml product form. My input will display as a table but save data as a standard text input. Following the module Edge ProductAttachments I've created the ...
5
votes
0answers
226 views

Magento 2 Widget Only displays image

I'm trying to add a standard widget from within WYSIWYG Editor, but it does not work, because only the image is shown. In the editor <p>{{widget type="Magento\Cms\Block\Widget\Page\Link" ...
5
votes
1answer
716 views

How to Enable Maintenance mode for specific store in Multi Website Magento 2

I have multi websites, I set website or store code in server conf that's is $_SERVER Now I have to enable maintenance flag or page only for specific store rest other store should So how to do it ?...
5
votes
1answer
331 views

How can i change order position of swatch in ascending Magento2

I want to change the sort order of size swatches. I have already put it in sort order from admin but I could not see any result in the front side. Actual Result Expected Result How can I sort it as ...
5
votes
1answer
102 views

Magento 2, I Want to add or hide custom steps on checkout page

I have created 1 custom tab on the checkout page and it's working fine I follow below link to add the tab on cart page. Magento 2 - Add step on checkout Then after I have added a Create an account ...
5
votes
2answers
747 views

Magento 2.2.1- How to fix ColorPicker issue in admin configuration?

I have used custom color picker in my extension and I remove it but got this error. I checked following questions but not working anymore in Magento 2.2.1. Magento 2.1.1 - How to add color picker in ...
5
votes
1answer
1k views

Magento2 credit card form is not populating with cvv and date filed

Am Trying To Create A New Online Payment Gateway Module In Magento. To Get Started Am Using Sample Payment Module Form Git Hub, My Stripe.html <div class="payment-method" data-bind="css: {'...
5
votes
3answers
3k views

How to Get Customer data by telephone number in Magento2?

I have a telephone number which is given in Default address..by using this telephone number i need to get Customer Full data.Data like customer id, customer full name..etc

1
3 4
5
6 7
395