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.

18,626 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
353 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
0answers
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
440 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
1k 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
0answers
633 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
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
889 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
534 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
877 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
410 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
0answers
670 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
557 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
550 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
3answers
2k views

Magento 2.1.0 Roles Resource Tree not showing

in the backend, going to system->roles, adding a new role and setting it to custom permissions, the resource tree is empty. Stepping through the code I can see, in module_user/Block/Role/Tab/Edit.php ...
5
votes
1answer
527 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
711 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
1answer
822 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
4answers
3k views

Design Configuration page infinite loading

Since updating to Magento 2.1.0 I have not been able to change themes as the theme configuration page does not load. It simply shows the rotating loading icon, there are no errors shown in the console ...
5
votes
3answers
5k 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
0answers
241 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
247 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
603 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

Magento2 - Default shipping

In my webshop I have two shipping methods, free shipping (for orders above 200 euro) and flat rate shipping (5 euro). I do not have other shipping methods for other countries or something. I want to ...
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
178 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
0answers
222 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
564 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
210 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
93 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
1answer
940 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
2k 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
5
votes
1answer
829 views

Custom page layout not working

Im going crazy here. Can't get this to work. I'd like to make a custom page layout like the 1column, 2columns-left etc. I've searched and read multiple tutorials all doing the same. Nothing works ...
5
votes
1answer
1k views

collect phrases and lang pack command line different from official doc - Magento 2.0.1

I use magento version 2.0.1, I am trying to add new language package, I have followed the instruction from official doc, that commands are not working command syntax mentioned in official doc magento ...
4
votes
0answers
107 views

Using Custom JS for magento 2 KO datepicker in checkout page error required field

I tried to add a custom datepicker with custom js in my Magento 2 checkout for delivery date, the custom js datepicker is showing and when i click the date it fills the value, but when i click next to ...
4
votes
0answers
27 views

How to print columns which are coming from data dataprovider in listing uiComponent

I want to print the columns on screen which are fetched from dataprovider for my listing uiComponent. So where can i print those columns? Like in which php file. Thanks in advance.
4
votes
0answers
73 views

Edit order programmatically without canceling

I want to edit any order programmatically. The tutorials that I am getting is canceling current order and creating new one. But I need something different, I want to edit it without canceling or ...
4
votes
0answers
38 views

Magento2 After Sync Images To Amazon S3 All Images from Magento are Deleted

I have create one module to sync all magento2 media to amazon s3 but after sync to amazon s3 server my all magento media's are deleted from my local system. and i don't want to remove that media. ...

1
3 4
5
6 7
373