Stack Exchange Network

Stack Exchange network consists of 174 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
9 views

Can't save customers after migration Magento 2

After I migrated from Magento 1.9.3.8 to 2.2.5 although I can create new customers I can't edit and save the migrated ones. In admin I get errors that First Name, Last Name and other attributes are ...
3
votes
2answers
2k views

Magento 2, Trigger content update or block refresh for Order summary block on checkout

I'm having a bit of trouble trying to get the Order Summary to update on the Magento 2 checkout I have a block on the payment step of the checkout with a special offer item. It has an add to basket ...
1
vote
1answer
16 views

How to save input value to database magento2

I am absolutely new in magento. I have made new input called 'name' under email input in app/design/frontend/NewVendor/NewTheme/Magento_Newsletter/templates/subscribe.phtml <div class="block ...
2
votes
0answers
14 views

update cart total with the deduction and display reward points after applying reward points

I have customized for applying the reward points from a third party Capillary. I want to update the cart total and display by deducting from the reward points after the response from the curl. I have ...
1
vote
2answers
747 views

Unable to delete Magento 2.0.7 image cache

When i try to Flush catalog images cache i get the following error The file "/home/shaffersuiting/public_html/project/pub/media/catalog/product/cache/1/swatch_image/30x20/...
0
votes
0answers
10 views

Your session has expired magento 2.3

when i am trying add cart product showing error Your session has expired how to solve this
4
votes
1answer
89 views
+50

Magento 2 Duplicate Orders

I'm getting an strange issue in Magento 2.2.7. Some of the orders are duplicating despite us only receiving one payment. It is the exact same order information except for the order number (which ...
3
votes
1answer
661 views

Magento2 rewrite: product resource collection class does not effect on functions

I have rewrite catalog product resource collection Magento\Catalog\Model\ResourceModel\Product\Collection. Class override successfully but functions override is not working. Suppose, i want ...
0
votes
0answers
21 views

How to parse XML - simplexml_load_string returns error “parser error : StartTag: invalid element name”

I am trying to parse XML to array in my custom module in Magento 2.2.7. I am loading Helper\Data through Block element and this is "working". This is my Helper\Data.php <?php namespace Vendor\...
1
vote
1answer
26 views

Magento 2 api - How to get layer navigation filters available in rest api?

I have someone issue in api magento 2. I need get layer navigation data available in product collection ( current category , search product ) but I don't know magento 2 api available it or not . I ...
0
votes
0answers
11 views

Config product options not appearing as select on category page

I've set up a config product with an attribute for colour. If I set this attribute to appear as a text or visual swatch and also set the attribute to be visible on catalog pages the swatches will ...
0
votes
2answers
45 views
0
votes
2answers
28 views

Magento 2 jquery/jquery-ui-1.9.2.js 404

I have fresh installation of magento 2. I am getting below error : /pub/static/adminhtml/Magento/backend/en_US/jquery/jquery-ui-1.9.2.js net::ERR_ABORTED 404 (Not Found) Please help me to sort ...
1
vote
1answer
2k views

Remove wishlist and compare links next to add to cart button on product listing page

I can't seem to locate where the add to wishlist or compare buttons next to the add to cart button on the product listing page are?
2
votes
1answer
168 views

Magento 2 : Is there a way to customize the labels of an admin form toggle?

For admin form UI checkbox components that use the 'toggle' (like Catalog > Product > [product record] > Enabled) - I can see a few references to the UI component configuration using: <field name="...
0
votes
2answers
35 views

In magento 2.3 I have changed the theme

In Magento 2.3 I have installed the theme porto and it is successfully installed I already tried and run the following commands: setup:upgrade static-content:deploy Every thing is done and fine....
1
vote
2answers
72 views
+50

WorldPay Payment Integration using PHP and direct XML method curl API return blank page in Magento 2

I m trying to implement worldpay on a PHP site using XML direct method but whenever I try to connect I get blank pag.. Can you tell me were you testing the payment gateway on live site. Code: $...
0
votes
0answers
24 views

display product name and product image on custom page at admin grid

I want to display the product name and product image in the custom page at admin grid <?xml version="1.0" ?> magneto_product_product_form.product_form_data_source ...
0
votes
1answer
7 views

Magento 2 Widget filter option to add price

When I select simple product from drop down under layout updates. I can select based on SKU, ID or Product. is there way to add Price to this Column...?
0
votes
1answer
18 views

How to override to remove/comment a line in customer_listing.xml in Magento 2

I want remove/comment this line <filterSearch name="fulltext"/> in customer_listing.xml located in vendor/magento/module-customer/view/adminhtml/ui_component/customer_listing.xml I want to ...
1
vote
1answer
18 views

Collection not loading in Ui Component Admin Grid - stuck spinning

I have a basic CRUD repository setup, however when I try to go to the Admin Grid UI Component, the spinner just spins and nothing loads. No errors displayed in any of the logs either. When I inspect ...
1
vote
1answer
691 views

Removing a product from a category or setting the product categories programatically - Magento 2

I am trying to programatically remove a product from a category but it isn't working. I have tried: Using $product->setCategoryIds($categoryIds); and then saving with $productRepository->save(...
0
votes
2answers
681 views

Magento 2 error when run php bin/magento setup:di:compile

I am using magento 2.1.5 when i change developer to production mode got the error like this Enabled maintenance mode Starting compilation Something went wrong while compiling generated code. See ...
2
votes
1answer
694 views

How to get custom attributes of a given attribute set ID in Magento 2

How to retrieve a list of custom attributes of a given attribute set ID in Magento 2, The idea is like this, $this->getCustomAttributes(10); Then the method will return all custom attributes ...
0
votes
1answer
13 views

Magento 2 show captcha at contact us form block section

I use below code to show cms block in cms page {{block class="Magento\Contact\Block\ContactForm" name="contactForm" template="Magento_Contact::form.phtml"}}
0
votes
2answers
38 views

Change order of configuration options in customer product view

I have configurable products with many attributes like size and color in v2.2.7. They are listed in the admin area and in Stores > Attributes > Attribute Set > Default. The order currently is "Size", ...
3
votes
1answer
36 views

Magento 2.3 Minicart check if subtotal is above value

I want to check inside my /app/design/frontend/theme/theme/Magento_Checkout/web/template/minicart/subtotal/totals.html file if the subtotal is larger than 29.95. I want to display some additional ...
0
votes
1answer
15 views

I assume this is not normal but i have catalog_product_index_eav table and then catalog_product_index_eav_replica table

I'm not sure why and if it's normal but i'm assuming it's not suppose to be there. Lately, i've been having some problems with saving products and getting these errors on the admin upon save: ...
1
vote
2answers
117 views

How to prevent autogenerated category and product rewrite urls

When I'm importing products or creating categories Magento always automatically generates rewrite urls. These rewrites are listed at Admin Backend -> Marketing -> URL Rewrites. The category url I ...
1
vote
2answers
20 views

Is there a way to stop an installation in progress?

I'm trying to set up a new Magento 2.3 instance and I got stuck at 93%. I found through here that my max_execution_time was set to low. So I fixed that, but now I want stop the installation. I can't ...
1
vote
1answer
17 views

Magento 2: How to setup Elasticsearch from CLI?

We need to setup elasticsearch on Magento 2 when a new container starts. We have post-install scripts that could handle that and not have someone go into the admin and manually do it. Thanks.
0
votes
2answers
93 views

How to disable ElasticSearch using terminal?

I was using ElasticSearch in my old server and then I migrate the server for a new one that it's not using it anymore, so I'm receiving this issue message below. Exception #0 (Elasticsearch\Common\...
2
votes
0answers
16 views

Magento Admin Panel page is blank - /vendor/magento/framework doesnt exist?

I came from reading Magento 2.2.7 admin panel blank page However, i have an even more weird issue: The /magento/framework folder doesnt exist. Does anyone have an idea what is going on? I followed ...
0
votes
1answer
671 views

Magento 2 API get product price

I'm building an iOS application for my store, and I'm looking for a way to get the correct price of an actual product. Looking at the API I only find requests to get raw product information. http://...
1
vote
0answers
25 views

Magento2 Admin Panel is not showing

[![I got this when i'm launching the admin panel for the first time strong textbut it never loaded to the magneto2 admin panel! please tell me what to do?][1]][1]
1
vote
0answers
12 views

In Magento: Where do you actually store the information of the shelf location code of a product

I am currently reading about Magento2 and considering to use it to setup an online store for products I have on stock. One thing I couldn't find yet in the documentation is the handling of the ...
1
vote
1answer
219 views

Add new column to customer group grid Magento 2

How can I add new column to customer grid ? I have created custom module. Below is my code. path : vendor/module/view/adminhtml/layout/customer_group_index.xml <body> <referenceBlock name=...
1
vote
1answer
623 views

How to use Ui Component in frontend magento 2?

I magento 2 i want create grid in frontend, but i don't how do it. Any suggestion?
0
votes
0answers
12 views

Change VAT text to Sales Email

How can I change "VAT" with another text in the sales email? Magento 2.2.2. Thanks.
0
votes
1answer
703 views

How to change background color of a link in magento 2.0

how to change vertical menu background color on hover in magento 2 I want like this.
0
votes
0answers
10 views

How to add bundle product to cart?

How to add bundle product to cart automatically with addproduct method , without customization page , help me please or. Is it possible ?
2
votes
1answer
27 views

Require custom checkout field from extension

I am using a zipcode(postcode) check extension that adds a custom zipcode and house number field. Now I want those to be required so they have to be filled in before going to the next step. ...
0
votes
1answer
664 views

Frontend Invoice Print

Just a question. My frontend button on the customer dashboard to print an invoice prints the page itself and not the PDF of the invoice. Anyone any idea if there is a quick fix or a setting for this? ...
-4
votes
0answers
24 views

Help me solve this problem in Magento 2, please

When I added a bundle product with the function of addproduct(), i got this error Please specify product's required option(s). Please help me public function autoAddToCart(){ $...
0
votes
1answer
54 views

Magento 2 Webhook Extension

What appears to be commonplace and easy to do on just about every other platform, Im trying to source an extension that allows for order notifications via webhooks... I've looked high and low but ...
3
votes
2answers
252 views

Override vendor/magento/module-ui/view/base/web/js/modal/confirm.js Magento2

Can anyone help how to over ride vendor/magento/module-ui/view/base/web/js/modal/confirm.js file in theme. Thanks
0
votes
0answers
7 views

Magento 2.2 Sending multiple order confirmation emails

Over the last couple of days our Magento 2.2 instance has been sending multiple copies of order confirmation emails to the customer. Sometimes as many as 10 identical emails received. Has anyone else ...
0
votes
1answer
14 views

How to remove products tab when it has no value in admin in Magento 2?

I am using Magento 2.3 I have set custom product tabs in product detail page Now I want to display a particular product tab only if it contains a value in admin. for ex. if there is no description ...
0
votes
1answer
682 views

Magento2 multi-store price-per-website: Wrong price indexed for configurable products

I have a multi-website Magento 2.1.0 CE installation, with 2 websites and different prices per-website. Prices are note related to each other, for the same product across the two websites. In product ...
0
votes
0answers
10 views

Magento 2 remove lazy load header cart with items

We are currently developing a new Magento 2.3 store, but we find out that items in the cart in the header, are loaded quite late. When we load a page on frontend, first the entire page loads and then ...