Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
23 views

Magento 2.2 - Custom options are not saved programmatically on cart update

Initially, while adding an item to cart the custom options and other details are saved successfully to cart. When reupdating the cart with updated custom options are not saved in cart programmatically....
0
votes
0answers
14 views

Magento 2 Install Composer and Setup Upgrade in 1 step: how do we get the package name?

I am reading through the Magento guide and understand the steps. However it appears to me that many -if not all - of the steps are the same everytime. https://devdocs.magento.com/guides/v2.3/comp-mgr/...
-1
votes
0answers
15 views

Which Magento2 Public Modules are “almost” mandatory and a musthave (m2)

Which Magento Public Modules are "almost" mandatory and a must have? (besides the core) In the past for M1 several modules you could almost not go without. For example a CRON manager (previous from ...
0
votes
2answers
24 views

How can i use event before add to cart ? if it exists at all - Magento2

Is there an event to before_add_to_cart or add_to_cart_before? Or What can I use instead of a before add to cart event ? Thanks
0
votes
0answers
12 views

add giftmessage option on checkout page in magento 2

I want to add Magento_GiftMessage::cart/gift_options.phtml to the checkout page in Magento 2, by default it is coming under cart page. Thanks Pradeep Sanku
0
votes
0answers
8 views

I need the Dob filed on create new order in admin when optional

The Dob is displayed in the create new order form when required, i need the dob to be optional and to be displayed in the create neworder admin
0
votes
0answers
13 views

Magento 2 CMS Block: Is it possible to use another directive within translate directive?

For example I have a CMS block with a text I want to translate but I have a link inside this text that uses the {{store url=""}} directive. In my cms block: {{trans "Foo <a href="{{store url=""}}"...
-1
votes
1answer
23 views

hide fax field from billing form in magento 2 checkout page

How to hide fax field from billing address form in Magento 2 checkout page.
0
votes
0answers
19 views

Magento2 Which table store category ascending order or descending order store category

My project category and sub category I have set ascending order or descending order store category via script or sql query. Magento2 Which table store category & sub category ascending order or ...
0
votes
0answers
24 views

Magento 2 getting error Source class “\Magento\Framework\Filter\Zend” for “Magento\Framework\Filter\ZendFactory” generation does not exist

I am getting this error on the checkout page Source class "\Magento\Framework\Filter\Zend" for "Magento\Framework\Filter\ZendFactory" generation does not exist. I deleted var folder I deleted ...
0
votes
1answer
27 views

Magneto 2 Session getting reset after placing order

Can anyone help me with this? I want some information from the session after order is placed. I tried customer session and even my own new session but after placing order am bot getting anything in ...
1
vote
1answer
17 views

magento 2 getting product data from wishlist

Coming in to trouble while getting correct data from my wishlist: /** @var \Magento\Wishlist\Model\Wishlist $_wishlist @var \Magento\Customer\Model\Session $_customerSession */ $...
2
votes
1answer
68 views

How to set input type 'Select' in ui_component grid in magento 2.1.16

I just Create ui_component Vender/Module/view/adminhtml/ui_component and in this I user <column name="check_status" component="Magento_Ui/js/grid/columns/select"> <settings> ...
0
votes
0answers
12 views

add successpage as a new step in magento 2 checkout

I have redesigned my success page of checkout. Now I want to make it as a checkout step. So we know that checkout steps are created through HTML and Knockout Js. Is there any way to call my custom ...
0
votes
0answers
10 views

Update product quantity from grid dashboard

Is it possible update product quantity from grid dashboard ? Or how to add a new column where it will be possible to update quantity ? Can anyone redirect me how to do this?
0
votes
0answers
25 views

Magento 2 Add product to product collection

currently i'm working on an extension which show the last products which sold the last 10 day. I got this products with the \Magento\Reports\Model\ResourceModel\Product\Sold\Collection. Vender/Name/...
0
votes
1answer
27 views

Overriding the contact form module gets the fatal error in Magento2.2.5?

I have overriden the contact form module, after disabling the default contact form validation and apply my custom validation gets the following error: Fatal error: Uncaught TypeError: Argument 1 ...
0
votes
1answer
20 views

How to convert template variables to custom data in magento 2

I have configured a back-end screen where I will enter a string as {{price}} for guest user. click here {{sign_up}}. So after I fetch the field value I want to dynamically replace the {{price}} ...
4
votes
0answers
38 views

System stuck on a controller on live instance does not return any thing nor redirect

I am duplicating the category tree with products works fine on my system while checking on live instance. scenario Duplicate category and subcategory but not products works fine. Duplicate category ...
1
vote
1answer
24 views

I have show this type Order ID - Order Data - Order Status and I click on order id then redireck go to order details page in magento 2?

I have show this type Order ID - Order Data - Order Status and I click on order id then redirect go to order details page ? how to do this ? exmaple order id is 2 then I click on 2 then go to order ...
0
votes
0answers
10 views

How to clean Magento 2.3.1 database contains Ultimo data and partial migrated data

How to clean Magento 2.3.1 database contains Ultimo data and partial migrated data Please provide scripts if you have Also I want to migrate only product & categories data. No theme, customer, ...
1
vote
1answer
19 views

Trying to insert an image in blocks some scripts are including. Why? How can I remove this? Magento 2

When I try to include an image in blocks content area image codes are coming like below. How can I remove this? <script data-pagespeed-no-defer type="text/javascript">//<![CDATA[ (...
1
vote
0answers
15 views

Magento2 CSS groups in styles-m.css in wrong order

my themes "_extend.less" file looks like this: //common & when (@media-common = true) { ... } //mobile .media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) { ... } //...
0
votes
0answers
15 views

Add parent url to simple product screen

I need to add a block on a simple product page which contains a url link to the parent if it exists. Block would be positioned under the short description. I have seen lots of code examples (some are ...
1
vote
0answers
16 views

Checkout Cart page shows 503 error

I am using Magento 2 website. I got the error like following when redirecting to checkout/cart page. Once deleted all the products in cart and tried to add all the products again and its seems to be ...
0
votes
2answers
53 views

How to get 5 latest order in home page in Magento 2?

How to Get the latest 5 order in home page in Magento2 with all order details? Any help would be appreciated.
0
votes
1answer
18 views

Declarative schema approach to make customer's lastname optional

With pre-2.3 Magento versions we were able to write UpgradeData code and make customer's lastname optional as mentioned here: Magento 2 : How to make “lastname ” optional in customer registration form?...
2
votes
0answers
20 views

why buttons are not showing in frontend ui form in magento2?

Why buttons are not showing in frontend UI Form in Magento2 ? Can anyone help in this. Code added in employee_form.xml file: <argument name="data" xsi:type="array"> <item name="...
0
votes
0answers
25 views

Condition on Category Filter in New Product Page?

I have save unique id with each category save when any category save then current admin id is also save with it. Now i want to apply condition in the New Product Page when any admin want to add any ...
1
vote
1answer
35 views

How to redirect customer on custom page after registration in Magento 2

Here is my code customerregistersuceessobserver.php <?php namespace Webkul\Marketplace\Observer\Rewrite; use Webkul\Marketplace\Observer\CustomerRegisterSuccessObserver; use Magento\...
1
vote
1answer
29 views

Adding custom discount adds 2 times in EE 2.2.6

I am adding custom discount to my cart but it seems it is adding 2 times in the cart. Here is my model file code. $discount = 10; $baseDiscount = 10; $total->addTotalAmount('plandiscount', -$...
1
vote
0answers
15 views

Magento2: Error 404 on homepage after migration and changing theme

I migrated my data to a new magento v2.3.1 installation. Everything is working fine expect the homepage. I have set the cms page but the error still persists. When I view the page from Content > Pages ...
1
vote
0answers
16 views

how to use walk method to join two tables in magento 2

friends, how to use the walk() method to join two tables in Magento 2 I have 2 tables and I want to join them based on some conditioning. my present code looks like this $result = array(); $...
0
votes
1answer
28 views

Some of the webp images not loading Magento 2

Some of the webp images not loading. Showing 404 error. How to remove this format in Magento 2.
2
votes
1answer
41 views

magento2 apply patch prodsecbug issue found

seems simple enough to aplly prodsecbug patch but I get this ... public_html$ bash PRODSECBUG-2198-2.2-CE.composer-2019-03-27-06-12-19.patch diff: unrecognized option '--git' diff: Try 'diff --help' ...
1
vote
0answers
18 views

Magento 2 : on tab click ko js and template render

In my module, there are tab structure same like mentioned in this below image tab structure. I want to do like that, when on tab click at that time, ko template and ko js should be render. How to do ...
5
votes
2answers
56 views

How to Learn PWA in Magento 2

Can Any one Please Advise me on this Topics:- 1) How to learn PWA in magento 2 ? 2) How to integerate PWA With Magento Custom Theme ? 3) How PWA Works in magento 2 ?
1
vote
0answers
25 views

Check stock at cart validation

I need to call a webservice to ckeck the stock of products in my cart. I added this observer: MyModule/etc/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/...
2
votes
0answers
17 views

Checkout errors inside modal?

How would I trigger a pop-up modal to show the error, when a card is declined or and AVS error? Checkout errors seem to be set inside the file below app/design/frontend/YOUR/TEMPLATE/Magento_Payment/...
6
votes
2answers
96 views

Empty Collection :: CollectionFactory Approach and getCollection approach both give empty result

I have created a table in my database using db_schema.xml and then populated that table with sql insert commands directly in mysql workbench. My model code is <?php namespace Lmap\...
1
vote
0answers
12 views

Reference email template within template

I am attempting to reference a newly created custom template via the admin panel within another email template. The template I am trying to access is called 'footer' when I change the standard line to ...
6
votes
2answers
58 views
+50

Show Product options in pop up

I have got a product that has lots of colour/fabric/style options for each product. If I add them then it pushes "Add to basket" button below the fold. Is it possible to show product attributes/...
1
vote
0answers
10 views

How to add popup for comapare products in magento2

app\shop\shop\Magento_Catalog\templates\product\compare\link.phtml <li class="item link compare" data-bind="scope: 'compareProducts'" data-role="compare-products-link"> <a class="action ...
1
vote
1answer
18 views

Magento2 Get Order API data in custom section

In Magento2, when we call order API /V1/orders/:id method="GET", magento uses Magento\Sales\Api\OrderRepositoryInterface::get($id) which is defined in the Magento\Sales\Model\OrderRepository::get($id)...
0
votes
1answer
18 views

Installation of Magento2 stuck at 0% in windows

I am trying to install Magento 2.2.8 in my windows 10 using xampp, but the installation is stuck at 0% and no errors are shown in console. Can anyone guide me how can i install it
2
votes
1answer
46 views

Magento 2 : Error 500 after installing

[Ubuntu 18.04 / Apache 2.4 / PHP 7.2.17 / Magento 2.3.1] After successful installing, magento show blank page. I found following error in apache error.log: [php7:error] [pid 29252] [client 127.0.0....
2
votes
1answer
33 views

Where to find Orders details page frontend magento 2

I want to change the design of Orders details page in magneto 2 frontend, but I don't know which page to edit. Is it in module-sales?
1
vote
0answers
21 views

Magento2 license per domain

I want to set license to my own extensions, mean that want to sell my extensions per domain license like https://landofcoder.com/ modules. what should i do?
0
votes
0answers
14 views

Magento 2 Checkout billing and shipping address same but the billing address give the error

My billing and shipping address same but the billing address give the error in both payment method how to resolve this error
0
votes
0answers
9 views

Want to create dynamic field configuration with dropdown

I want to create dynamic field configuration with dropdown , can anyone help me on this.