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.

6
votes
1answer
151 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 {"...
3
votes
0answers
43 views

Magento 2 - Product edit screen, missing category selection field entirely | How to debug?

At some point during development unknown; the category select field has gone missing from the product edit screen (on all product types). It's possible it happened during a partial update of content ...
2
votes
2answers
104 views

How to set the category ids to a products from category path?

I want to progrmmatically create products from a xml. Ex : I am getting the product categories as like below. Default Category/Beer , Default Category/Beer /CRAFT, Default Category/Beer /CRAFT/...
0
votes
0answers
13 views

How can I return custom products to catalog search result in Magento 2?

I am developing a custom search engine for my Magento 2 store. How can override the products returned in catalog search result with a custom plugin ?, and Can I override the result without changing ...
0
votes
0answers
60 views

I am trying to Create a product Grid in My custom Module Admin Form

I am trying to add a product Grid in My custom Module I searched a internet and found this Solution Magento 2 : How to add product grid in custom module's tab Now there is a function in this ...
0
votes
1answer
26 views

Override Magento\Catalog\Model\Product

I would like to add a new function to Product Model which be accessible each time I create Product. Below, my code : src/app/code/Project/Catalog/Model/Product.php : <?php namespace Project\...
1
vote
0answers
16 views

Magento 1.9.2.2 Product Editor error

I got a following error. When I go to Product editor i cant see the text field. How can I fix it. http://prntscr.com/n0ca4d http://prntscr.com/n0cafh
0
votes
3answers
107 views

Display Widget in phtml file magento 2

I have Following widget and its working in cms page but now I want it to display in phtml file {{widget type="Magento\Catalog\Block\Widget\RecentlyViewed" uiComponent="widget_recently_viewed" ...
2
votes
0answers
16 views

Product pages open with errors

I don't know if it is the reason to introduce custom CSS. Now my website opens some product pages, which prompts the following error. But some product pages are open normal. How can I solve it?
1
vote
0answers
24 views

Show Product Out of Stock if Related Item Out of Stock

Is there a way in Magento 2.2.1 to mark a product out of stock if the related item is out of stock?
1
vote
1answer
58 views

Unable to get newly inserted Product's Id using After Plugin for Catalog Product save controller method

I have created interceptor for catalog product controller's save action <type name="Magento\Catalog\Controller\Adminhtml\Product\Save"> <plugin name="ricky_catalog_save_product" ...
1
vote
1answer
20 views

Base table or view not exist

I want to import product or create them via the BO. Before, it's was OK, but, I don't know why, suddently, it's impossible to me to create product. Each time, I got this error : SQLSTATE[42S02]: ...
1
vote
1answer
28 views

Move theme layout elements on a product view from within a Module Magento 2

I am having trouble moving the short description on the product page. I tried with the move command within the layout file without any luck. I can move any new created block where I want but I can't ...
0
votes
0answers
14 views

Configurable product own url M2

I have configurable product and has size and color options. I want when user clicks the color then want to change Url of the product. My colors are swatches type Looking for good approach. Thanks
2
votes
1answer
241 views

magento 2 Uncaught TypeError: Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel() must be of the type string

In custom theme And category page show this error- Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Catalog\Block\Product\ImageFactory::getLabel() must be of the type string, null given, ...
1
vote
1answer
54 views

How to get recently viewed product collection in observer Magento 2

I want to fetch a recently viewed products collection in the observer and by using that collection I want to add my custom product in that collection. Following Things That I Want To Achieve. On ...
1
vote
2answers
63 views

Magento 2 how to add product dimensions using rest api

I can add simple products to Magento 2 just fine and adding the weight is no problem at all I do the following: $data = '{ "product": { "sku": "' . $row["item_number"] . '", "name": "' . ...
2
votes
0answers
19 views

Magento 2: How can I modify the product edit page depending on my custom product types

Is it posible to hide/remove default fields and fieldsets from the product edit page for custom product types? For example weight, price, tax_class...
2
votes
1answer
34 views

add product title into product tabs

I am trying to add the product title and short description within the product tabs on the luma theme. With short description, I am happy to use the move object to place this into the tabs but I need ...
1
vote
1answer
44 views

Magento2: How to add a new product type

This new product type will contain parent informations of other products. These products are only for internal use, so I only need to add attributes and a new type of relation to other products, like ...
0
votes
0answers
105 views

Could not save product “” with position 0 to category - Magento 2 [duplicate]

I have gone through all the links as possible..but i don't find any solution for this.. From this Link ..its already fixed in 2.2.4 My current version is 2.2.7 and still i am facing the issue.. ...
1
vote
1answer
43 views

Product list page configurable product price in negative value in magento 1?

Product list page configurable product price in negative value in Magento 1? How to correct it? Single product page the price is correctly showing
2
votes
1answer
37 views

HTTP 500 error with a php script

The following piece of code provided by SuperDicq Remove products from all categories when price is zero) gives me a HTTP 500 error, anyone knows what's wrong? I changed the name of htaccess, put ...
0
votes
0answers
36 views

Magento 2 - Product Customizable Options is not showing on frontend

i create a product with Customizable Options but sometimes at frontend, the place which custom options should have appeared is now nothing I'm not sure why it happen, but when i resaving the product ...
1
vote
1answer
218 views

How to get currently selected product id of configurable product on view page?

I need to change name, price, SKU and more when options are clicked. So I need the product ID of the selected option in the product view page. I have a Custom phtml file to write my own alteration in ...
0
votes
1answer
56 views

Custom Product export in Magento 1

I want to Product export. But I need Only data which I need. For example, I need not "gift_message_available" attribute value. So Please tell me what I should I have created the profile. but When I ...
0
votes
0answers
27 views

Single Page Magento 2 Theme - Add Product To Homepage

I made but I am stuck. The site is a simple one-page Magento 2.3 theme, with the homepage having a single configurable product. I am at a loss of how to add the product to my block, displaying the ...
0
votes
0answers
125 views

Magento 2 REST API delete all products

I want to delete all product using Rest API in Magento 2.
2
votes
1answer
125 views

Magento 2 : Join category name in product collection

I want to join category name in product collection. I want to use that in product grid filter which is used in my custom module. This is my collection code. It's same as like this _prepareCollection()...
1
vote
2answers
75 views

How to update sku code using Rest API in Magento 2?

I want to update sku using Rest API in magento 2 Call: PUT /rest/V1/products/{sku} Request: { "product": { "sku": "modified.sku", "name": "modified name" } } Result: The name has changed, but ...
1
vote
2answers
70 views

How to share product image and details in social media in Magento 2?

I want to share product image and details to social media in Magento 2 using addthistool. We have added http://s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5b30cd59923bb69c js in header part ...
3
votes
2answers
159 views

Allow only one qty of item into cart in Magento 2

I have created a custom controller in my module and calling via ajax to add the item to cart. Below is my controller code. <?php namespace {Vendor}\{Module}\Controller\Product; ...
2
votes
1answer
38 views

Product view page scrolls up randomly on mobile device

In the product view page when I scroll down a little bit, sometimes (very often) the page scrolls to the top. This is the effect of the scroll up: https://www.youtube.com/watch?v=aKwLVwIMrpM
4
votes
1answer
133 views

Can't change product description in specific store view

I'm using Magento 2.3. I have created some store View But in my product i can't change short description and description, all the other field change without any problem, i can only change it in "...
2
votes
1answer
21 views

Can an Attribute be used more than once in an attribute set?

How to reuse an attribute in the same set? I have a product that has multiple items and I'd like to use "description" (attribute) several times.
0
votes
0answers
11 views

When do product changes become public after a “save” operation (with varnish)?

We use Magento2 with Varnish (2 instances). I wonder when exactly a product should update in the frontend after being created / updated / disabled / enabled / mass updated / ... especially on product ...
-1
votes
1answer
22 views

Where we can set property for product is salable or not

I want to know where we can set property 'is_salable' for products. I have checked for all attributes if there any attribute for that but not found any. Then Where we can set this property to the ...
1
vote
0answers
156 views

Magento 2 : Custom field data is not saving in product add edit

Custom Field is showing in Product add/edit but data not saving. Here is my full code Vend\Customattrib\etc\adminhtml\di.xml <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xsi="...
0
votes
0answers
14 views

How Can Product Registrations from a web form, stored in magento, get pulled into an email?

Customers Register Product, serial number and date purchased on our website. The data is stored in Magento under customers>product registration. How can the submitted product registration data be ...
0
votes
2answers
150 views

Error While Saving Product and doing reindex in Magento2.3

When I run the reindexing command got this error: Fatal error: Uncaught Error: Cannot instantiate interface Magento\InventoryIndexer\Model\StockIndexTableNameResolverInterface in /home/public_html/...
2
votes
0answers
25 views

Magento 2 : Product list only shows one product in one of the category, the rest works fine

Product list only shows one product in one of the category, the rest works fine. That category has more products, if you search for a product, you can access its product view and in related products ...
1
vote
0answers
32 views

How Can we use React JS product View page in magento 2?

I need to do some functionalities in which the page to not load. I prefer to react js but I don't know how to add react js for selected modules of Magento. I need to react for Magento component view ...
1
vote
0answers
111 views

Magento2 : Having issue with product add to cart jmeter

I am using Magento2.2.5 and using benchmark_2015.jmx, Facing issue when test for logged in customer and adding product to cart, Cart shows empty. It's default magento benchmark_2015 script, stored in ...
1
vote
0answers
14 views

Connect external product API to Magento

An external API contains 250K products. I am setting up a new online store and would like to import all products, categories, product variables, prices into Magento. How long would a job like this ...
3
votes
0answers
220 views

Magento 2 : keep disable product in cart

I want to keep disabled product in cart. Let's say I have added one product to the cart. After that I have disabled that product from Magento admin. Now when I visit cart page, there is message that ...
0
votes
0answers
40 views

Magento 1 Admin panel a lot of problems please help

We started to get a lot of problems in our magento admin back panel. The problem is that we cannot enter to products and to some of extensions. It simply loaded for several minutes and than going to ...
2
votes
0answers
32 views

Magento 2 admin product custom option page add customer group dropdown

I want to add customer group dropdown on product custom option page. the reason behind is to show the custom option based on the customer group in front-end. how can i achieve the above functionality....
2
votes
0answers
19 views

Create advanced shopping cart rule in Magento 2

I want to create a shopping cart rule in Magento 2. I have 6 products (range product A -> product F) to keep it simple. Those products cannot be ordered without a valid discount code. if cart has one ...
2
votes
0answers
53 views

Update select attribute in custom_attributes via catalogProductRepositoryV1 API PUT request

I'm trying to update a product with the catalogProductRepositoryV1. I want to change a custom select attribute for the given product. When sending the following request: { "product": { "...
2
votes
1answer
157 views

Get Product price by customer Group magento 2

I am trying to get Product price by customer group. Used below code. $sku = 123; $customerGroup = $this->getCustomerGroupId(); $currentProduct = $this->loadProduct($sku); $productPrice = $...