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.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

Suddenly stop working elastic search, Error message : Couldn't connect to host, Elasticsearch down?

I am stuck on this issue my code suddenly stops working not able to find the root cause of any idea regarding this. Earlier it was working fine. Kindly help. I have checked the all configuration are ...
0
votes
0answers
16 views

Magento Paypal onAuthorization error on return to success page

I have a fresh install of Magento 2.3.6. I enabled the default paypal payment method, and I am trying to debug it using sandbox mode. I am able to complete the process of the payment on Paypal, but ...
0
votes
1answer
18 views

Custom report of simple-to-configurable product links showing error: Column not found: 1054 Unknown column 'childsku' in 'where clause',

Full error text: Column not found: 1054 Unknown column 'childsku' in 'where clause', query was: SELECT COUNT(*) FROM owd_catalog_product_super_link AS main_table LEFT JOIN owd_catalog_product_entity ...
2
votes
1answer
17 views

product package with 2 prices, “from” “to”, how to solve?

The bundle products page has 2 prices, minimum and maximum, but I need only 1 price, I looked in some forums but I couldn't solve it, has anyone had this problem? I need to solve this today, I need to ...
0
votes
1answer
19 views

Hide Ui column in grid on default load

I am trying to hide some column as it has very long list of column so it display vertical scrollbar and it don't look nice.So is there any way to hide it on default grid load. it should be visible in ...
0
votes
0answers
19 views

How to use viewModel with our custom model?

I have created custom table in database. Now I want to fetch data from that table and want to display on category page only and I have to use viewModel for that.Since I am beginner I don't know how to ...
1
vote
1answer
15 views

Magetno 2: Theme Configuration Goes To 404 After Save

I'm using Magento 2.3.5, I'm scratching my head for a couple of days, the issue is when I go to Theme Configuration, do any changes and hit Save Configuration, the page goes to 404 error: Page not ...
0
votes
1answer
20 views

How to share one phtml file variable output to another phtml file

In custom modules, I want to share my module A output variable $value = "one" to module B, print like $value How to share this?
0
votes
0answers
13 views

M1 code converted to M2 code - Custom Product Attribute

I hope someone can help me out with this one. I have Magento 1 code that needs to be converted to Magento 2 code. The function of the code is to display values from a custom product attribute on the ...
0
votes
0answers
7 views

Magento 2: Review Form Star Rating Field Validation Not Working

I'm using Magento 2.4.0, In my product review form, all fields validation works as I expected except the Star Rating field. The client is using a custom theme with no parent theme, Once I change the ...
0
votes
0answers
21 views

How to apply following Free Shipping cart price rule?

Magento2 need to apply following cart price rule($50 & above for specific config products) free shipping I have $300 rugs & $30 Hand towel & $30 Face washer(Antalya Carnevale Grey) then ...
0
votes
0answers
15 views

Magento 2 error Recently viewed products

So this error displays on my home page : {"store":"1","currency":"EUR","productCurrentScope":"website","displayTaxes":"2"...
0
votes
1answer
34 views

How to display additional attributes in category page product item

Please check the below images for more understanding Display here...
0
votes
0answers
20 views

Magento2 Programmatically apply cart price rule

I have created a cart price rule in admin, now I want to apply this rule programmatically in my code. How can I achieve this?
1
vote
1answer
24 views

Magento 2: How to check inarray ids in minicart.js

getCartItems: function () { var items = this.getCartParam('items') || []; _.each(items, function (item, key) { console.log(item.product_id); ...
0
votes
2answers
20 views

How can I add a custom attribute to the customer table?

I seach many answer that nerver success. My last try is this answer This is my code in my Module/Setup/Patch/Data <?php namespace Mus\Hello\Setup\Patch\Data; use Magento\Eav\Setup\EavSetupFactory; ...
0
votes
0answers
17 views

Magento2 Cart price rule not getting applied after flat rate shipping customisation

I have override the Magento\OfflineShipping\Model\Carrier\Flatrate Added some custom conditions for shipping flatrate, now the issue is that when I apply shipping cart price rules it doesn't get ...
0
votes
0answers
10 views

Magento 2: Programmatically update & apply shopping cart rule

how can we update sales rule by ruleId in Magento 2 Programmatically
1
vote
1answer
22 views

Magento 2: I want to get product id from getCartItems function in minicart.js

Here is the function in minicart.js getCartItems: function () { var items = this.getCartParam('items') || []; console.log(items); // want to get product id from ...
0
votes
0answers
12 views

Mangento 2 with Angular JS

Nowadays everyone is talking about Magento 2 with Angular JS but I haven't found anything relevant to start with. Can someone please guide me that how and from where I can start the implementation of ...
0
votes
1answer
21 views

PHPSESSID set SameSite=NONE

PHPSESSID cookie is set to default sameSite= lax, how to change it to sameSite=none?
0
votes
1answer
13 views

Create Shipping Label not working in Magento 2.4.2

When viewing a shipment in Magento 2.4.2, the "Creating Shipping Label..." button opens the "Create Packages" dialog as expected. However, the "Add Products to Package" ...
0
votes
2answers
15 views

Loading icon for literally MINUTES after pressing Place Order - Magento 2.3.5

Magento 2.3.5 site that loads pretty quickly generally, checkout maybe a few seconds to load but that seems par for the course for Magento 2 However, the issue is that after pressing 'Place Order' the ...
0
votes
1answer
10 views

Magento 2: addAttributeToFilter not working when filtering by ID

Exception #0 (Magento\Framework\Exception\LocalizedException): The "id" attribute name is invalid. Reset the name and try again. Here is my code ... \Magento\Catalog\Model\ResourceModel\...
0
votes
1answer
14 views

Magento 2 - can't save changes to product

I try to change some product info text and then save, but after it saves, the text in the backend/frontend still remains the same. There is no error showing. What can I do? Additional Information I ...
0
votes
0answers
24 views

Import orders from Magento 1 to Magento 2 live website

I have a Magento 2 shop in live and another shop in Magento 1. I'm preparing the migration of Magento 1 shop to Magento 2 in another website, so I will have 2 websites in Magento 2. How can I migrate ...
0
votes
1answer
26 views

Magento 2 Override admin phtml

I've made a new module and I would like to override the vendor/magento/module-config/view/adminhtml/templates/system/config/form/field/array.phtml I've copied the file in app/code/myVendor/myModule/...
0
votes
1answer
14 views

How to add persistence to a image field dynamically

I have created an image uploader using UI component form in Magento 2 but I also want to fill data from DB dynamically using JS to the image uploader when someone edits the form. Please help.
0
votes
0answers
22 views

Show All The Available Subcategory and Their Nested Subcategories in Menu in Magento 2

I have done all the required settings but still it's not showing on the front end. I am getting result like this. I want to show all the nested subcategory in the menu. Please help.
0
votes
0answers
11 views

MSI source assignment before order is placed

Having query related to shipping charges when we use MSI. For example : We have configured MSI. For each product we are having multiple warehouse/source available. Cart : 3 items in cart Item 1 - ...
0
votes
0answers
11 views

MSI and Shipping charges and Tax calculation Magento2 M2

Having query related to shipping charges when we use MSI. For example : We have configured MSI. For each product we are having multiple warehouse/source available. Cart : 3 items in cart Item 1 - ...
0
votes
1answer
23 views

How to use ActionInterface insted of Deprecated Action class

I start learning magneto 2. I give it a try with Max Pronko's videos. Figure out some of the codes that are outdated, deprecated. Here is my controller. Any suggestion on how to use ActionInterface ...
0
votes
1answer
13 views

Categories links in breadcrumbs have empty title attribute in Magento 2

On my site, title attributes of breadcrumbs links are empty. Only home page breadcrumb link has a title attribute. I need it for seo optimization. How to add a title for categories breadcrumbs links?
0
votes
1answer
14 views

Magento 2 How to fillter using custom product attribute in searchCriteriaBuilder?

I am trying to get filter product list by some custom product attribute it gives an error like TypeError: Argument 1 passed to Magento\Catalog\Model\ResourceModel\Product\Collection::getEntityPkName() ...
1
vote
1answer
22 views

RequireJs on uncheck checkbox value is not unset

Using requireJs when Checkbox get unchecked, it is not deleting that value from element.value function registerCategoryNews(grid, element, checked) { if (checked) { if (...
0
votes
0answers
15 views

Magento 2 - How to use simple product images for configurable products when no configurable product image is uploaded?

How can I use the simple product image for configurable products where no configurable product image is uploaded? Currently I can see the placeholder image unless options are selected. I set up ...
0
votes
0answers
16 views

Magento 2 PWA Venia - How can I install blog module

I have setup Magento PWA Venia theme, now I want to install Mageplaza Blog module which is pwa ready. I have installed it using composer require mageplaza/magento-2-blog-extension mageplaza/module-...
0
votes
0answers
12 views

Billing address checkbox replace add button in magento 2

Checkbox hide and button click checkbox check and unchecked in billing address in magento 2.4 app/design/frontend/Vendorname/Themename/Magento_Checkout/web/template/billing-address.html <!-- /** *...
0
votes
0answers
9 views

Take recurring subscription payments via Guest checkout - Magento 2

We have a client who is keen to take recurring payments BUT only allows guest checkouts They ideally wanted to use Braintree, but it seems the Braintree recurring payment extension only works with ...
0
votes
1answer
14 views

Unable to preview email templates

From the list of email templates, when I click on the Preview link for an HTML email template the pop-up appears but only an iframe shows with "Please click here if you are not redirected within ...
0
votes
0answers
15 views

Magento 2: Pass data between classes

I'm trying to pass the data between 2 classes. One of them called via ObjectManager. Here's the schema and short explanation. ParseFormstackForm class called from the frontend form (Block) with ...
1
vote
0answers
9 views

Product package with quantity 0 continues to appear in the cart

Guys I need help with something in magento, I look everywhere and I couldn't solve it and since I'm a novice I decided to resort to you. On the page of bundle products when setting the input of a ...
0
votes
1answer
18 views

How to delete cookies on auto logout?

we use have some configurations to some user groups (different prices, only some categories etc) and it's all good if the customer logout and login as a different group account, but when it auto logs ...
0
votes
0answers
14 views

How can I prevent styles-l.css loading for mobile only?

I'm trying to clean up some of our over stuffed css and js. Chrome inspector shows that styles-l.css is 100% unused for mobile and is used a little for desktop. I used 'remove' in the ...
1
vote
0answers
17 views

remove bundle product with quantity 0 from the cart

i have a problem in the development of a store and i need help, in the image below on the bundle products page when resetting the quantity of a product it keeps showing up as 1 in the cart. I need ...
0
votes
2answers
15 views

Magento 2 AB testing category page

I'm looking to create variants of the same category page to perform AB testing? For example, If I have a category page called /bags, we need to create one more version of the same category page called ...
0
votes
0answers
15 views

Magento 2 Checkout page shipping address and billing address make to radio button

In onestepcheckout page i want to create one one address form select if shipping address and billing address. So i want make to radio button. Please help me. Thanks.
0
votes
0answers
12 views

I want to add horizontal tabs in the Magento 2 admin

I want to show horizontal tabs in the Magento 2 admin and inside each tab, there will be a form created using ui_component. Just like this, can anyone help me to achieve this?
0
votes
0answers
25 views

Magento 2 Cannot update specialPrice per website

I'm trying to update specialPrice per website in a Magento 2.3.6 website. The problem is that when i am updating the price using the Product model , the specialPrice is removed from all storeviews ( ...
0
votes
1answer
8 views

How to add tooptionsarray in this argument layout grid magento2? What code need to be added in this argument to show as disable and 1 as enable

<block class="Magento\Backend\Block\Widget\Grid\Column" as="request_status"> <arguments> <argument name="...

1
3 4
5
6 7
869