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 [product]

Denotes a question related to the Magento products.

0
votes
0answers
41 views

Add to cart button is not working properly in listing page in Magento 2

I am using Magento 2.3.0 In Product detail page when we click on Add to cart button then the text in the button is changing from "Adding" to "Added" and then finally it displays "Add to cart" again. ...
0
votes
0answers
21 views

Magento 2 How to disable save button on product edit?

I want to hide the "Save" and all other buttons apart from the "Back" button on the product edit page. I want to show only the "Back" button on the product edit page. How could I achieve this? Does ...
1
vote
0answers
14 views

How to add custom option field added to every created product in Magento 2 added to products under specific category?

i am trying to add custom option programmitically to products created under specific category in Magento 2 , But it isn't easy at all doing this, i tried to search for a solution on the internet but ...
0
votes
0answers
14 views

Override product load via plugin

I'm looking to insert some functionality before the admin product page is loaded on /admin/catalog/product/edit Which class would I be looking for in order to override it with a plugin please? ...
2
votes
1answer
115 views

Invalid argument supplied for foreach() Error in magento 2.3

I am getting this error on some Products on Magento 2.3 when I try to view them: 1 exception(s): Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /www/htdocs/...
0
votes
0answers
24 views

How to duplicate Use Default Value checkbox functionality?

I want to set up on a product (admin editing form) whether or not an attribute should or should not be displayed on the product view page. I was thinking of adding a checkbox (something like Use ...
1
vote
0answers
21 views

catalog_category_product_index_store1 has stopped updating on reindex

I am currently having issues with making products display when adding them to new categories. The table catalog_category_product_index_store1 is no longer adding new records when reindexing Has ...
1
vote
1answer
55 views

Get product source in MSI

I have 3 stocks, each having its own source. Every source is assigned to some or the other product. When an order is placed with one of these products, how do I find out the source for each product ...
0
votes
1answer
63 views

Products not appearing in the catalog - Reindex not adding records

When I add products to a category through the admin pages, the product is not showing up on the relevant category page. Ive have searched for an answer for this extensively and carried out all the ...
0
votes
1answer
19 views

Cannot add products in admin panel. “Permission denied” exception error message

I've recently setup and installed Magento 2, but am having issues adding products to the site. when I click to add a product I get the following exception error: Exception #0 (RuntimeException): ...
1
vote
1answer
122 views

Position sort not working on product listing page magento2.2.7

But not showing correct order on category page.
0
votes
0answers
142 views

While saving product throws “Unable to save Stock Item” exception in magento 2.2.6

While saving product in backend,throws "Unable to save Stock Item". I have tried after flushed the cache and reindexing but still exception throws. I have reffered below link, but no luck https://...
0
votes
1answer
42 views

Add Custom Grid into a Custom Tab in Product Edit Page collection filter by current product id

As per my requirement, I need to add a custom grid into a custom tab in the product edit page. for that, I got one of the good tutorials, but in that, I need to filter the collection by the current ...
0
votes
0answers
61 views

Create product with fixed product tax programmatically

I want to add custom tax to product for all countries. My idea is to add Fixed Product Tax to product and somehow set it to all countries. Admin panel requires to set any country from a list. In ...
2
votes
2answers
100 views

Magento2: Product backend page error

I uninstalled MageWorx SEO extension and I am experiencing the following error. Class MageWorx\SeoBase\Model\Source\CrossDomainStore does not exist Checking the error report, I get this {"0":"...
0
votes
0answers
22 views

I want to Add product chooser in my custom admin module

I want to Add product chooser in my custom admin module. How can I add it?
1
vote
0answers
31 views

Need the help of an EXPERT in Magento 2

i am currently trying to wireframe a very custom website e-store, i will try to be as direct and clear as possible to my question: Is it possible to have for example, in a product page where you are ...
0
votes
2answers
209 views

Issue with multiple custom product details tabs not displaying

In catalog_product_view.xml I have the following section: <referenceBlock name="product.info.details"> <block class="Magento\Framework\View\Element\Template" template="Magento_Catalog::...
1
vote
2answers
42 views

Get all simple products of a category including not visible individually products - Magento 2

I need to get all simple products of a category. By using the following code, I'm getting only products which has visibility of Catalog, Search but not Not Visible Individually products. $categoryId =...
1
vote
2answers
49 views

Magento 2 How to change position for buttons on product add/edit form?

How can I change the position of Save, Save & Close buttons on the product add/edit? I need to place the "Save & close" button first instead of "Save" button on the product add/edit form. ...
1
vote
0answers
45 views

Magento 2 How to make “Save” button same as “Save & Close” on product add/edit?

I need to make the "Save" button same as "Save & Close" on the product add/edit in admin? I need both buttons will behave the same. (when click on save it will save the product and go to the ...
0
votes
0answers
62 views

magento 2 how to redirect disabled product to category page?

I want to redirect disabled products to the related category page. I have tried discontinued option which is available in admin but it is not working. How can I fix the issue?
0
votes
1answer
21 views

Display On Sale Product On Top Sorting Magento 2

I have added a custom sorting option in default sorting menu by overriding toolbar.php file I want to display products with the highest discount on top using sorting and product with no discount ...
0
votes
1answer
16 views

Wrong number of result in toolbar after overriding ListProduct

I've overrided the ListProduct.php file for the catalog, to show product based on customer attribute. But now I have the wrong number of element in the toolbar (I have 3 products displayed but still ...
0
votes
1answer
25 views

Create attribute for several product

I have many hundred products and I want to create a product attribute to apply to all of them but with different value. But I don't want to change the attribute product by product, it would take so ...
0
votes
1answer
40 views

Magento 2: My shipping method I have created function like convert weight to Grams

I have my own website in Magento2 and also use my shipping method I have created below function in Model\Service\AbstractService.php /** * Convert weight to kilogram * * @param $weight ...
0
votes
1answer
51 views

Unable to unassign the category of a product in backend magento 2

I wish to unassign the categories of a product in admin end. After unassigned the categories, I have saved the product. But the saved changes is not applied. Please provide me a solution to solve this
1
vote
0answers
62 views

Product CSV file not exporting from admin in Magento 2

When we export Procuct Csv from admin side. Then csv not export. We get error There is no data for the export. Any one help me to solve this issue.
0
votes
0answers
20 views

How can we create “packs” of the same product in Magento 2? (M2)

How can we create "packs" of the same product in Magento 2? (M2) We sell T-shirts in sizes. So this means 1 configurable product and 1 simple product for every child product size (and maybe also ...
0
votes
0answers
23 views

Magento 2: Overriding Sales Order DefaultRenderer (Order Items)

I'm trying to override the DefaultRenderer (commonly found when customer views their order in accounts) so I can do some customisations and include extra data. I've managed to do this successfully, ...
3
votes
2answers
243 views

Magento 2 stop (or) avoid resize product image at admin end?

In Magento 2.2.3 CE, Is it possible to get default maximum image dimensions in Magento when uploading images at admin end? For example, I uploaded some images to a product that were 2400x2400 and ...
0
votes
1answer
24 views

Extension point for set website ids product in case admin not set website

This is my scenario I have hidden website_ids field in product form (default magento show it) So how i can use plugin for set website ids for product when it create. Is there any entry-point to do ...
1
vote
2answers
33 views

Get product only with attributes used in product listing in a test

In my test I am creating a product like this: $product = $this->objectManagerHelper->create('Magento\Catalog\Model\Product'); $product ->setId(1) ->setTypeId(Product\Type::...
0
votes
1answer
49 views

Magento2 - Programatically Increase/Decrease product price by certain amount for all products

I need to update(increase/decrease) the price & special price by certain amount or percentage for all products in all stores. Here is the my code but its not increase/decrease the price. I have ...
0
votes
0answers
13 views

Restrict buying of only the related product

I'm using Magento 2.3. I need to have the feature, where I've a two products A & B. Now, a customer can buy product A and can buy product B only with product A. Product B cannot be sold ...
0
votes
0answers
43 views

not shown products on frontend after migration from magento 1 to magento 2.3

I did the migration with magento1 to magento 2.3 Everything works fine, but no products are displayed on frontend. I tried all the methods that I found on the Internet, but it did not help. How to ...
0
votes
0answers
41 views

How to get Quantity selected by customer on Product Page. Magento 2

I want to get the Quantity of the product selected by Customer on the Product page And also wan to get Qty and the product price on the Grouped Product explained in the image
1
vote
3answers
144 views

Magento 2 custom phtml file not calling to all products view pages

I have created custom phtml file, but that file is calling to all the products magento2 Please find the below code: <referenceContainer name="product.info.form.content" > <block ...
0
votes
0answers
13 views

How to customize the keyword search query in magento1

Example - Suppose if Product name is "abc-def" then search result will come who start with that name(abc-def) but i need if user search "abcdef" then my result would be come which product name start ...
0
votes
2answers
63 views

Magento 2 How can i get all out of stock product collection?

I want the collection of products which are out of stock. In my Magento instance, I used a multisource inventory with multiple stocks and sources. How can I get this functionality with a custom ...
0
votes
1answer
221 views

Magento 2 How to decrease product qty from source same as “Product Salable qty” after orderd placed to make product out of stock?

As Magento 2.3 have default behavior that it decreases the qty from "Product Salable Quantity" after order placed not the "Source inventory". The main qty(source inventory) of a product is decreased ...
1
vote
0answers
24 views

Magento 2: Backend Related, Upp-Sell and Cross-Sell Product Tab Filter Issue

When I filter Product By Name in related product tab product filter Working Completed, but without product add called save function directly and page redirect to the Catalogue page.Any idea,please ...
0
votes
1answer
43 views

Magento 2 - Programatically updating the inventory store wise not working

I have a function to update the product inventory progrmmatically.below is my function in the helper file. protected $stockRegistry; ... public function __construct( .... //Some code-- \Magento\...
1
vote
1answer
97 views

How do i get category ID in final_price.phtml and hide price accordingly in magento 2

this is my current final_price.phtml file. the line $category = $product->getCategoryIds(); is causing error I'm trying to get the category_id of the current product, and check if it's in $...
2
votes
0answers
46 views

Magento2 - Indexing / Full page cache problems

We are having long-term problems with indexer and cache settings. After reading great guide by @johnhughes1984 about caching and indexing we thought that everything will be alright with settings ...
1
vote
1answer
31 views

Magento 2 Change Product Price

I am working on magento 2.2.6 sale extension and I want to change the price of the product by subtracting the sales price from it.As you know a single product is shown on multiple pages and ...
0
votes
1answer
109 views

magento 2 .Product Fields Auto-Generation / category Fields Auto-Generation, /meta tag description

Prepare Dynamic Solution For, If product having no title, meta description as per the images then it will going to get the data from system configuration. If category having no title, meta ...
0
votes
0answers
21 views

How to add product qty and product price store wise progrmatically in magento 2

I want to create product progrmatically. product creating section is done, after creating the product i want to update the product qty and price store wise. I have following array which return me the ...
1
vote
1answer
13 views

Magento 2 - Buy minimal 2 products

We are using Magento 2.1 we have a cheap baby product in 10 different colors. And sometimes people order just one of it. With the shipping costs included this is not profitable. Now we would like ...
6
votes
1answer
149 views

Can't update product / Unique constraint violation

Since migration, to Magento 2.3 i can't save any products. Exception.log reports (when i try to update in default scope) : [2019-03-21 17:29:07] main.CRITICAL: Unique constraint violation found {"...