Questions tagged [product]

Denotes a question related to the Magento products.

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

Magento 2 how add product select to the widget xml?

I want to add a sku product selection to the widget, but I can't find how to do it Please tell me how can this be done
user avatar
0 votes
0 answers
13 views

magento 2.4 programmatically create new product with custom id

the usual procedure to create a new product via code is to call the product factory, set the new data, then save using the repository: $data = [ 'id' => $id, 'sku' => $sku, 'type' => \...
user avatar
  • 129
0 votes
2 answers
25 views

How can I get if is in this table 'catalog_product_entity_text' Use Default value on product Magento 2

In database, I find data like this SELECT * FROM catalog_product_entity_text where entity_id = 70430 AND attribute_id = 76 AND store_id = 5; How can I do it programmatically? I need info if it is ...
user avatar
0 votes
1 answer
9 views

Split Configurable Products' options onto two pages

A particular Product has eight configurable attributes. The logical flow from a user perspective would be to select the first four attributes on one page, click "Next", then select the last ...
user avatar
0 votes
1 answer
11 views

Admin stuck on loading when creating a new product

some admin users whatever the role he has. when creating a new simple product Magento stocks loading the page without any HTTP request. I tried these commands. setup:upgrade & setup:di:compile &...
user avatar
0 votes
1 answer
13 views

How to rename file while uploading catalog images in Magento2

When you upload a product image from backend to Magento that has the name that we are uploading like slide1.jpg I need to rename uploaded file name to productsku_slide1.jpg and same for other images. ...
user avatar
  • 561
0 votes
2 answers
36 views

Magento 2 - automatically set product as new when CREATING product only

I want Magento (2.4) to set newly created products as new for specified period of time but only when product is created and not saved after being edited... So, I would need something very similar to ...
user avatar
0 votes
1 answer
11 views

Magento 2 : Get Configurable Product using swatch-option

I want to get product id on selecting swatch option.for that i have used code as given below. i am getting error of "Cannot read properties of undefined (reading 'options')" as per given ...
user avatar
0 votes
2 answers
32 views

Magento 2.4 get stock qty after the product is saved in plugin

How to get stock qty after the product in saved via plugin? With code bellow I allways get "stock qty" 0 no matter what. di.xml: <type name="Magento\Catalog\Model\ResourceModel\...
user avatar
1 vote
2 answers
120 views

Magento 2 : Create a JOIN

I am trying to display a report which GROUP BY : SKU and Subsidiary. So instead of displaying each RMA in different rows, I am trying to display Filtered Report, Group by SKU and 2nd group by ...
user avatar
  • 58
0 votes
1 answer
28 views

New products not showing in category frontend Magento 2.3.7-p3

Before you dismiss this kindly read the details. I have come across several issues but none provide a solution to my question. My products do not show in the frontend of the store. They are visible ...
user avatar
0 votes
0 answers
14 views

Magento 2 : import product into grid

Here is import button, When i click import button, add this sku product (test-sku) into item ordered grid Drop your answer or suggestion.
user avatar
1 vote
1 answer
20 views

I wanto to make the qunatity of products in a dropdown

My qunatity/Qty on Product page i simple a text field. I want to change it into a drop-down.
user avatar
0 votes
1 answer
57 views

Magento 2 Product Salable Quantity shows 0 even if Qty is greater than 0

The products Salable Quantity of Simple products shows zero(0). But its Quantity is greater than zero (>0). Due to this product swatches are not showing correctly on the front end. Magento admin ...
user avatar
0 votes
0 answers
13 views

Magento2 : Save Product Quantity To Custom Attribute

I Want To save Product Quantity Value In Custom Attribute. For That, I Have Created Patch With backend_model :-Magento\Catalog\Model\Product\Attribute\Backend\Stock. Whenever I save Value It Renders [...
user avatar
0 votes
0 answers
11 views

Magento2 : Category Page (Product Listing Page) Custom Sorting Option Not Working

I Want TO Display Product Based On Product Stock On Category Page. I Have Used Code As Below. I Have Used the Around Plugin To Set Collection. File:- di.xml Vendor\Module\etc\di.xml <type name=&...
user avatar
1 vote
2 answers
32 views

How to change swatch from grid view to list view

I'm new one here. I have no experience with magento developing. I want to change my product swatch from list view to grid or grid view to list view. I have also attached a picture of my product page. ...
user avatar
0 votes
1 answer
23 views

Magento 2 - Orders with deleted products ProductRepositoryInterface The product that was requested doesn't exist. Verify the product and try again

If I want to print my order using some PDF extension which uses the table from transactions emails, some invoices with deleted products are causing an error. As a result the table will be blank. ...
user avatar
0 votes
0 answers
18 views

Magento 2 : Render Product Using Custom Sorting Option

I want to display product on Qty Desc order but shows no product to display. I run sql query used in sorting and it working in as per qty. I have tried below code. $collection->setOrder('price','...
user avatar
0 votes
1 answer
59 views

Magento PWA show custom product attribute in details page

I am trying to modify product details page on Magento PWA Studio. I have a custom attribute(text-editor type), and I have some html there. When I am trying to call that attribute it comes as string ...
user avatar
  • 704
0 votes
0 answers
37 views

Magento 2 Get product (rest/V1/products) with filter Different result with Web (PLP)

I have configurable products that have variants with COLOR (RED/BLUE). In Web at PLP page when filtering with COLOR Red (value:13) But when using API rest/V1/products, the response does not same as ...
user avatar
  • 161
0 votes
0 answers
24 views

Store product from API

I'm using Magento 2.4.3 and tried to store product from API following the docs https://devdocs.magento.com/guides/v2.4/rest/tutorials/configurable-product/create-simple-products.html using POST to ...
user avatar
0 votes
1 answer
27 views

Incorrect integer value: '' for column `project-preprod_db`.`catalog_product_entity`.`has_options` at row 1

Running a custom import script, I'm facing this error for some products (some others are perfectly being created without this issue). Error occured on B2C product import : The product that was ...
user avatar
  • 772
0 votes
0 answers
66 views

Magento 2 Youtube is not working for configurable product

Using Magento 2.4 version. On simple products, youtube works properly. but on configurable and their children's products youtube is not working. Does Anyone face this type of issue?
user avatar
  • 1,143
0 votes
1 answer
27 views

Add To Cart Problem with Grouped Products

Most of my products are Grouped. The problem I have is that on the Category Pages when the Add To Cart button is clicked, it goes through to the Product page and immediately has the warning message at ...
user avatar
  • 172
0 votes
0 answers
29 views

How to create a script to export each product with all images, names, SKUs, dimensions as a CSV programmatically in Magento 2?

**This is a working code** **You Create a file path as i.e. http://localhost/magento241/exportproduct.php** <?php use Magento\Framework\App\Bootstrap; use Magento\Framework\App\Filesystem\...
user avatar
0 votes
1 answer
17 views

how to get the name of the category that the user used to add the product to the cart. Magento 1.9

I need to get at cart what category the product came from. The problem is that the product is added to several different categories, and I need the category in which the user accessed to add the ...
user avatar
  • 197
0 votes
2 answers
98 views

how to delete media image after we delete product in magento2?

As image plays an important role in page load time,Need to delete image too after delete of product from admin panel in Magento 2
user avatar
0 votes
0 answers
7 views

Magento 2 product page 3 column - how to order the columns?

I have changed my products page so that it has three columns. Each column now contains: product-info-main (Product title, price, short description, etc.) product-add-form (Add to basket and product ...
user avatar
  • 3
0 votes
1 answer
37 views

The value specified in the URL Key field would generate a URL that already exists in Magenot 2.4

I have migrated data from Magento 1.9 to Magento 2.4. All things is working well. But when in open any categories and open Product in Category tab -> then click on reset filter -> search a ...
user avatar
  • 526
0 votes
0 answers
33 views

Magento 2 Custom attribute won't update for particular product

I've created few custom attributes where customer can list a cons and prons of the product. After filling 'ms_cons' and 'ms_prons' text displays on the frontend. I have problem with one particular ...
user avatar
  • 3
0 votes
1 answer
31 views

Product collection join with custom table undefined column

I am working with some product collection join with custom table, I've a custom product attribute, need to add a join condition with the product custom attribute with the custom table attribute. The ...
user avatar
  • 1,598
0 votes
0 answers
13 views

Error in Adding ExportButton in Product page

I added <exportButton name="export_button"> in product_listing.xml , when I am clicking on export button i am getting A joined field with this alias is already declared.","1&...
user avatar
0 votes
0 answers
20 views

Issue to add bundle product to cart directly. Magento 2.4.3

I have generated a bundle product with two default products. we see that it works. The error comes now, when I try to add the product in a quick way. It gives a 404 error and redirects you to an ...
user avatar
2 votes
1 answer
35 views

Undefined index: simple_sku Magento 1.9

I am writing code in magento 1.9 checkout and when adding a new product to cart it generates the error in the log, and my code seems to be correct. Error message that appears in the log. The problem ...
user avatar
  • 197
0 votes
0 answers
24 views

How to get Qty Increments Value on Product View Page

In Magento 2.3 how to get Qty increments value on the product details page. Since I am trying to use Increment and Decrement functionality based on this value. So far I have used the below methods but ...
user avatar
  • 121
1 vote
2 answers
21 views

ADD TO CART BUTTON DOESN'T APPEAR

In both catalog and product page the "add to cart" button doesn't load. I get an infinite loader instead of the "add to cart" button. Does anyone know what this could be?? I have ...
user avatar
0 votes
0 answers
14 views

How to add dropdown to product variation in grid.phtml

I want add variation dropdown instead of multiple div swatch option. I am not getting how to do in grid.phtml. Below is the code swatch option display <?= $block->getProductPriceHtml($_item, $...
user avatar
  • 1
0 votes
0 answers
9 views

Product attribute group inside product attribute group

Create a product group and create an attribute into that specific group...it's quite easy in magento. Ex : public function createAttributeGroup($groupName,$order = 1) { $attributeSetId = $this->...
user avatar
  • 772
0 votes
0 answers
13 views

How to upload multiple files from admin product edit page and disaplay it on product details page Magento 2

I need to develop functionality in which i want multi-file upload control on the product edit page in back-end and that uploaded files are displayed on the product view page in front-end. can anyone ...
user avatar
0 votes
0 answers
33 views

Magento 2 change product attributes before saving

I have used the catalog_product_save_before event like below. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
user avatar
  • 828
0 votes
0 answers
19 views

Does not show the color order correctly

Magento 2 I have a configurable product with different colors. The order is correct in the admin. For example Blue red black yellow. On the site this order changes black red blue yellow.
user avatar
0 votes
1 answer
45 views

How to add Custom class or ID on Magenot 2 Product Admin Grid Columns

How to add the custom class or ID on Magento 2 Product Admin Grid Columns basically I want to add a class or id on ( qty, price, name, SKU ) on these fields. Any help is appreciated.
user avatar
  • 526
1 vote
1 answer
89 views

Place order programatically & redirect to thankyou/success page. (Magento 2)

I am working on creating a functionality where I have added a "buy now" button on the product page, when the user clicks that button then a popup form appears, entering all necessary details ...
user avatar
0 votes
0 answers
105 views

Magento 2 : Show a custom error message on cart page if bundle product options has changed

I want to catch this error "Some of the products below do not have all the required options." which is coming from checkData() from the path vendor/magento/module-quote/Model/Quote/Item/...
user avatar
  • 1,838
0 votes
0 answers
17 views

How to add product collection to category tree

I have created a category tree using the below code. <?php namespace Custom\CustomApi\Model\Category; class Tree { /** * @var \Magento\Catalog\Model\ResourceModel\Category\Tree */ ...
user avatar
  • 828
0 votes
0 answers
20 views

adding shipping price as in customer group in admin Product

Add a custom product level attribute for ‘Shipping_price’ by using schema and new tables, to add multiple custom shipping pricing based on different quantities. (Just like Customer Group Price we have ...
user avatar
  • 3
0 votes
0 answers
19 views

How to add a product video as thumnail images in product list page - Magento2

How to add a product video as thumnail images in product list page?
user avatar
0 votes
1 answer
25 views

Not able to add the product in the cart in product detail page

Facing issuse If someone want to add a product to the cart from the list view it works fine. But from a product detail page the Error appears: We can't add this item to your shopping cart right now.
user avatar
  • 1
1 vote
1 answer
101 views

Magento 2 - How to find all products with Salable qty as 0 via SQL query?

Is there a simple SQL query I can run to find any ENABLED product in Magento that has a salable quantity which is 0? We have thousands of products and in the back end product grid we can sort and ...
user avatar
  • 23

1
2 3 4 5
98