Questions tagged [product]

Denotes a question related to the Magento products.

Filter by
Sorted by
Tagged with
1 vote
0 answers
27 views

Decoding failed: Syntax error in app/code/core/Mage/Core/Model/Config.php:1394 when saving a product

Magento 1.9 I am getting this error when I try saving a product. I checked line 1394 in Config.php and it looks like this: $obj = new $className($constructArguments); The full error is: ...
user4095519's user avatar
0 votes
1 answer
208 views

Where is \Magento\Catalog\Api\Data\ProductExtensionInterface?

In Magento Product class (\Magento\Catalog\Model\Product) there is the function public function setExtensionAttributes(\Magento\Catalog\Api\Data\ProductExtensionInterface $extensionAttributes) ...
Tero Lahtinen's user avatar
2 votes
1 answer
253 views

Magento 2 get all category ids sorted by the category tree

is there any way we can get all category ids like its displayed in admin in Magento ver. 2.4.3 ? I have tried ** * Get Category */ public function getCategory($categoryId) { ...
user avatar
1 vote
1 answer
3k views

import product data programmatically using csv

I am new in magento 2 I am trying to import product data programmatically using csv file. The Error is shown below My Folder and code structure are following. This is My registration file. Vendor/...
Alok Tiwari's user avatar
1 vote
0 answers
19 views

Upload of csv to add related products to a parent product scrambles order of skus in related_skus column

I use products that have related products (so they pull them automatically when the parent product is selected) - i need them as separate items for accounting/inventory purposes, but i sell them in ...
Maxime VERNEREY's user avatar
1 vote
0 answers
125 views

how to add product comments in product display page and save in database?

I want to add product comment options in PDP and save that in database and pull back and show that in shopping cart page. How can I do it?
Mohmad Ashik M A's user avatar
0 votes
1 answer
34 views

How to get Current Product Id in which the Block is Rendered?

I have made a custom Block that appears on the checkout page of every product item. So each time the product is rendered, that block is called. The block is rendered below every product item. I want ...
Muhammad Muiz Ather's user avatar
1 vote
1 answer
538 views

How do I remove hover on product on home and category page?

How do I remove hover on product on home and category page? When I hover on a product the styling messes up. I just want to remove the hover effect. (The add to cart button appears) And the whole ...
Isabel Chua's user avatar
0 votes
1 answer
424 views

Product stock quantity is reducing automatically before shipment

How the product stock quantity is decreasing automatically in magento2 before shipment(not saleable quantity)
Alshihab's user avatar
  • 161
3 votes
3 answers
3k views

Warning: Object of class Magento\Framework\Phrase could not be converted to int product/list/toolbar/limiter.phtml on line 26

Can anyone have faced the below error while opening the product listing page at the storefront? Running instance on the Magento version 2.4 vanilla. No third-party modules/themes were installed. A ...
sandip's user avatar
  • 4,004
1 vote
1 answer
378 views

Magento 2.4.2: Disable/hide reviews tab in the product details page

The tabs in our product details page include a tab called "Reviews". Where does that come from, and can it be hidden or eliminated? The Yotpo system that we're using already has the reviews ...
CodeForGood's user avatar
0 votes
0 answers
279 views

how to get custom product attribute value in model file in magento2

I have created a custom product attribute using data patch in my custom module and it is visible in product configuration in admin, also when I save value in it, it get save to ...
Surjan Raghuwanshi's user avatar
1 vote
1 answer
259 views

Override the product alert cron frequency configuration to “Never”

Im new at magento and am stuck trying to modify the "catalog_product_alert" I need to update it so even if a product has a list of customers subscribed to the stock alert the alert email are ...
joguz's user avatar
  • 39
0 votes
2 answers
347 views

Magento 2 : product quantity increasing automatically

I am using magento 2.4.1, the issue is randomly my product's quantity is increasing, it automatically increments the quantity after some time. I tried to keep eye on few products and found that each ...
quickshiftin's user avatar
1 vote
0 answers
98 views

How to create custom grid with product data in magento2.4.3

I want to clone product data into a custom grid with the custom conditions. How can I achieve this ?? Thanks in advance..
Ronak Rathod's user avatar
  • 6,320
1 vote
1 answer
181 views

Custom block last on productpage Magento 2

I'm working on an Magento 2 webshop and I have implemented some code to show a custom block on the productpage. But it is showing before the Product Details / More Information (tabs). In the file /app/...
Ruben Marissen's user avatar
0 votes
1 answer
77 views

need to remove the the number of review tag

I just want to remove the "3 Reviews" text from my custom module. for that, I have created a file *view/frontend/layout/catalog_product_view.xml file. Please check SS My module name is : ...
Shubham Nigam's user avatar
0 votes
1 answer
4k views

Fastest way to get attribute value of custom product attribute by attribute_code and sku

Hello fellow Magento developers, What is the most efficient way of getting an attribute value of a custom eav product attribute, by only using its attribute_code and the products sku? => The ...
Emanuel's user avatar
  • 33
0 votes
1 answer
27 views

How can I calculate the final price of the product as the price of a unity times its quantity in a group ? Magento 1

In my Magento store,a product has an attribute about the quantity of this product in a box,on the checkout is showing the price of the unity. How can I set its final price as the price of the unity ...
Arthur Barboza's user avatar
0 votes
1 answer
1k views

Magento 2 - How to add columns to Sales order products grid?

In magento 2 I need to add columns (stock, status, brand) in this admin grid : Sales > Order > Create new order > Select Product Grid Do you know how to achieve this ? Thank you
Fbr's user avatar
  • 157
0 votes
2 answers
41 views

Magento 2 How to get OptionTypeId of product custom option?

How to get OptionTypeId of custom option of simple product with option type field or area. Option type dropdown return the value of OptionTypeId but I also want this value with option type field or ...
Krishna Rajyaguru's user avatar
0 votes
1 answer
366 views

Magento 2: How to display product image caption instead of product title below the image in product details page?

We want to replace product title/heading under product image with its caption(value in title attribute of IMG element). The things that do need the captions are: When clicking on another image in the ...
CodeForGood's user avatar
0 votes
1 answer
611 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
David Young's user avatar
0 votes
2 answers
629 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 ...
Andreja Vidovic's user avatar
0 votes
1 answer
34 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 ...
dotancohen's user avatar
  • 1,115
0 votes
1 answer
93 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 &...
Ehab AL-amawi's user avatar
0 votes
1 answer
230 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. ...
Unknown's user avatar
  • 581
0 votes
2 answers
418 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 ...
Twisted_Jar's user avatar
0 votes
1 answer
1k 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 ...
sandip memariya's user avatar
1 vote
2 answers
2k 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\...
Franci Melink's user avatar
0 votes
2 answers
620 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
0 votes
1 answer
193 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 ...
thinkhjj's user avatar
1 vote
1 answer
25 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.
Magento Inquiry's user avatar
1 vote
1 answer
3k 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 ...
IntraPersonalLearner's user avatar
1 vote
2 answers
108 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. ...
Sufyan Ahmed's user avatar
0 votes
1 answer
366 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. ...
cookie monster 24534's user avatar
1 vote
3 answers
845 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 ...
Nayem323's user avatar
  • 751
0 votes
0 answers
368 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 ...
EshaRamady's user avatar
0 votes
1 answer
144 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 ...
Claims's user avatar
  • 1,164
0 votes
1 answer
252 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 ...
SilkSpin's user avatar
  • 192
1 vote
0 answers
690 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\...
Vikram Dhande's user avatar
0 votes
1 answer
35 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 ...
lucas's user avatar
  • 309
0 votes
2 answers
1k 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
Rohit's user avatar
  • 70
0 votes
1 answer
208 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 ...
Prits's user avatar
  • 625
0 votes
1 answer
520 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 ...
senthil's user avatar
  • 1,729
2 votes
1 answer
143 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 ...
lucas's user avatar
  • 309
1 vote
2 answers
913 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 ...
ishaq's user avatar
  • 195
1 vote
2 answers
27 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 ...
Patrick Barbosa's user avatar
0 votes
0 answers
692 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:...
Ramesh KR's user avatar
  • 866
0 votes
1 answer
406 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.
Prits's user avatar
  • 625