Skip to main content

Questions tagged [product]

Denotes a question related to the Magento products.

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

Complete data is not saving in the Table

Actually I am getting the data of the catalog_category_entity in my custom grid and delete the record. Before delete I want to save the complete data in my custom table. But only saves the three ...
Rana Zain's user avatar
  • 658
0 votes
1 answer
35 views

Display and link custom attribute in product page mangento 2

I have installed magneto 2.4.5 and trying to show manufacturer above product title . I have set custom theme using Luma as base , I have found many example of showing custom attribute on the product ...
tonysar's user avatar
  • 51
0 votes
1 answer
76 views

Update and download the product using API

Q1). On Magento store I updated the product using API but can not updated all the fields, few fields (i.e. 'name') were not updated using the API. Is there any API to update product name? Q2). I have ...
Siddharth Srivastava's user avatar
0 votes
1 answer
588 views

How to set or Update product qty for Magento 2.4.5-p1 OR Latest Magento Version?

I have following code to automatically create products in magento 2.4.5-p1. <?php /** * Copyright © All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); ...
kekw's user avatar
  • 103
2 votes
2 answers
164 views

How to hide the Reviews tab when there are no reviews

I am using Reviews in the project. We have the form itself hidden, the only thing we display is a list of reviews generated from the admin panel. I would like to be able to hide the Reviews tab when ...
meracle3's user avatar
0 votes
1 answer
310 views

Magento 2.4.5p1 Remove Price From Custom Product Options Drop Down - No Solution Working

Hello and thank you for any assistance with this. I have tried many things to make this work but nothing has worked so far. I have tried every solution on this page: Magento 2.2.3 - Remove price from ...
drewski22785's user avatar
0 votes
1 answer
18 views

How to create morethan oneproduct attribute and assign it to specific attribute set-Magento2

I have an attributeset named dealz and attribute set group with name DealzInformation.Also I have some customproductattributes like dealdate,dealqty,dealprize...etc. Then how to show this group with ...
Alshihab's user avatar
  • 161
0 votes
2 answers
453 views

Add Banner in the PLP page

I want to add banners on the PLP page that redirects to the linked category. Is there any extension or customizations that help me to do this? Image is an attached with this question.
Rana Zain's user avatar
  • 658
1 vote
1 answer
97 views

Deleted Products Still Showing in Search Bar

We recently had to let our webdeveloper go and dont have a new hire yet. We are experiencing an issue with deleted products continuing to show up in our search bar. We've cleared caches and ensured ...
Cohn94's user avatar
  • 11
0 votes
2 answers
1k views

Get product using SKU with respect to the store data using Magento 2 REST API

I use the core API /V1/products/:sku to get the product using the SKU. for example, I have 2 stores, one in English and another in Japanese. My API Endpoint is like http://local.mystore.com/storefront/...
Sathya's user avatar
  • 518
0 votes
2 answers
1k views

Fastest way to check if product exists?

Magento 2.4 I am importing around 80000 products from an external source in an external script (had to do it this way). They come from an API which uses tokes that are only valid for 2 hours. So every ...
user4095519's user avatar
0 votes
2 answers
606 views

Magento2 how to save bundle product custom image

I have created a module to upload custom bundle product images but how I can save them in catalog_product_bundle_selection table?
Amit Kumar's user avatar
0 votes
1 answer
392 views

images on product page magento 2 are lot loaded because of wrong path

at magento admin base url static and base url media are on http://domein.nl/static/ and http://domein.nl/media/ new photos are saved properly in pub/media/catalog/products// however on the website the ...
marcel's user avatar
  • 21
0 votes
0 answers
220 views

Quantity Increments setting is not working in Minicart in Magento 2

We are using Magento 2.4.3. For one of the products, we have enabled quantity increments and set 3 in the "Qty increments" setting. These settings are working fine on the product detail ...
Chintan Kaneriya's user avatar
0 votes
1 answer
95 views

Update price progrmmatically

I'm trying to update the price for configurable product programmatically. But the price is not updating. Also I'm getting integrity constrain error when the sku is not assigned. if($proType == '...
Sandeep Nair's user avatar
0 votes
2 answers
638 views

How to import product Video programmatically with the use of custom script in magento 2.3.4?

I import all product by custom script. but I'm not able to import the product video programmatically. Basically, I have youtube link of videos. I can put url the using admin panel but I have 3000 ...
Galib's user avatar
  • 37
0 votes
1 answer
78 views

We run several offers during festive seasons. Is there a way to create interactive labels for products to advertise our marketing campaigns?

So right now I am using the magento2 platform and I want my site to look more presentable to the customer after my research I am inclined to move towards creating labels for products. However, I am ...
Prashant Singh's user avatar
0 votes
1 answer
553 views

how can we export SKU with ID in magento2

I want to export sku with magento id. https://prnt.sc/njkYD1jkJrH0 I am trying to find how to export Product ID with a matching SKU
kiran's user avatar
  • 597
0 votes
1 answer
51 views

Allow html in product titles

so here is the scenerio. I want to display bare html in the product titles. But magento strips any html in the product title as you can see here (https://swadeshiherbal.com/khomba-baby-cologne-herbal-...
Desper's user avatar
  • 3
1 vote
1 answer
273 views

Where in Magento admin can I set/change expiry time for the cart?

Where in Magento admin can I set expiry time for products in the cart? Currently, the product is not going to stay in the cart for more than 24 hours once a cart is abondoned.
CodeForGood's user avatar
1 vote
1 answer
215 views

Get all associated products from configurable product. (Magento 2)

Currently, I am not getting the out-of-stock products from the configurable product on the product page (product/view controller). File : <?php /** * Product view controller */ namespace Magento\...
user avatar
0 votes
1 answer
587 views

Magento 2 How to Get List Products from Cart Price Rule Condition

I want to get the cart price rule applicable products list in my block. How can I get it? For catalog rule, at vendor/magento/module-catalog-rule/Model/Rule We have the method getMatchingProductIds() ...
Jancy Abraham's user avatar
0 votes
1 answer
170 views

Magento 2.4.3 - Advanced Pricing not changing date

We have some issues with advanced pricing on products. For Example, products we priced with advanced pricing in June, now can not be changed I.E when new values are being typed in and saved, the ...
Jan-petter Havna's user avatar
0 votes
1 answer
313 views

Magento PWA - How do I get Tier price in product details page to show?

I am working with PWA studio. And I want to show tier price list in product details page. But I am not getting how I can get them in product page. Does anyone have any idea how to bring that? Thanks ...
Nayem323's user avatar
  • 771
3 votes
2 answers
2k views

Magento 2 : getting index table error after save product from backend after version upgrade from 2.4.3 to 2.4.5

SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1, query was: INSERT INTO catalog_product_index_price SELECT ip_tmp.* FROM ...
Parth Brahmbhatt's user avatar
0 votes
2 answers
95 views

Unable to display product name in catalog_product_view.xml

I am new at Magento, I would like to render the product name to catalog_product_view.xml (product page) from a custom phtml but it didn't work. May I know where did I go wrong? Thanks! app/code/...
hill2011's user avatar
0 votes
4 answers
656 views

Magento 2 : Redirect product if out stock

is there a way we can redirect a product if the product is out of stock, then redirect that product to its assigned category page (if multiple categories assigned then redirect to the first category ...
user avatar
2 votes
1 answer
108 views

Magento 2.3 - Set max compare products to 2

I want to set the limit for the products to compare max 2 product. I tried to create this module: https://magento.stackexchange.com/a/159543/16894 But it seems that this does not work with Magento 2.3....
Galib's user avatar
  • 37
2 votes
2 answers
183 views

Read product attribute from phtml file - Magento 2.4

I have created a simple phtml file to add a 3D viewer in the product page using the following code. I have also created a custom attribute for the product, called model_file_name in which I type the ...
Nicola Lepetit's user avatar
0 votes
1 answer
503 views

This product doesn't exist. error after upgrade

I have upgraded my site from magento 2.3 to 2.4.0. After upgrade, when i try to open products in backend. I am getting error as This product doesn't exist. How can i solve this? https://prnt.sc/...
Nicola Smith's user avatar
0 votes
0 answers
385 views

Magento 2: How to solve No such entity with customerId?

I am trying to get the customer related data in product details page as an API response and its working fine. But when I open the product view page in admin, I am getting the below error. I checked ...
MagentoDev's user avatar
0 votes
3 answers
344 views

How To create countdown Timers in custom phtml

I have two fields StartDate and EndDate.How to Implement Timerfunctionality with these fields in custom phtml for example for the following format.. $startdate='31-10-22 00:00:00'; $enddate='01-11-22 ...
Alshihab's user avatar
  • 161
1 vote
1 answer
96 views

How to hide product form custom field it it has null value and show if it is notnull

I have a field named 'soldout_date' in product form. If it has null value then i don't want to show the field in the form. But if it has some value then how to show?? I am using productmodifiers. ...
Alshihab's user avatar
  • 161
1 vote
1 answer
69 views

How to add available when customer add to cart more available qty

How can I add the quantity not available error message to the quantity that can be added to the cart instead? Result I expect "The requested qty is non available, there are XXX qty available&...
yavonz15's user avatar
  • 417
2 votes
1 answer
164 views

How to Filter a collection with specific date range in Magento2

How to filter a collection with specific column name from and to in Magento2? For example: $fromdate = 2022-10-23 00:00:00; $todate = 2022-10-25 00:00:00 $collection = $this->...
Alshihab's user avatar
  • 161
2 votes
2 answers
55 views

Product are getting deleted for no reason

Some of my products are getting deleted for no reason I am importing my products with an Api [2022-10-17 01:11:39] main.DEBUG: cache_invalidate: {"method":"DELETE","url":...
Alex Le Fourn's user avatar
2 votes
1 answer
986 views

Custom attribute not present in getProduct()

I try to retrieve one custom attributes for a product and print in title.phtml. I have followed all the steps for create a custom attribute and add it to a group correctly and it appears in admin ...
madenGlitch's user avatar
2 votes
1 answer
79 views

Magento 2 - Change theme for product to "Magento Blank" not working - invalid template file

I try to change the theme for a product to the default Magento Blank theme. But I get this error: Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Company_Base::...
Black's user avatar
  • 3,380
2 votes
1 answer
373 views

Magento 2.4.3 - Category and product issue

Before the weekend we notice an issue when we tried to remove a category from one of our websites. I did a reindex and the category is still there. tried to clear the cache also from my browser and ...
Jan-petter Havna's user avatar
1 vote
1 answer
172 views

How to hide Magento 2.4.5 duplicate pictures when the product color is switched

I used to seek workarounds for magento 2.4.2 on the stackexchange that fixed this issue, but when I upgraded to magento 2.4.5, those workarounds were outdated because magento had a major upgrade. How ...
Angelo's user avatar
  • 89
1 vote
1 answer
23 views

I want to Auto turn on/off the product, but don't know how. Can you help me?

I want to Auto turn on/off the product, but don't know how. Can you help me?
Tuấn's user avatar
  • 11
1 vote
1 answer
109 views

How to update the saleable quantity after invoice creation in magento2

Normally the saleable quantity is updatd after when we place the order. I want to update the saleable quantity after invoice creation for my custom producttype..
Alshihab's user avatar
  • 161
1 vote
2 answers
798 views

How to get Product Salable quantity by productId in magento2

How to get product salable qty by productId?
Alshihab's user avatar
  • 161
1 vote
1 answer
24 views

Custom Warehouse

By Default Magento using Total Stock warehouse. I want to use my warehouse for all my products . I am currently using my custom warehouse, But some times it shows the magento by default warehouse.
Rana Zain's user avatar
  • 658
0 votes
1 answer
37 views

How to implement Add products option in ui form Magento2

I have a product block like(refer image) and I loaded the productgrid using( https://www.rohanhapani.com/magento-2-how-to-add-product-grid-in-ui-form-using-uicomponent/)and successfully saved.After ...
Alshihab's user avatar
  • 161
1 vote
0 answers
162 views

magento2 image add in pdf how to? this code not working for me

$post = $this->getRequest()->getParam('sku'); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $helperImport = $objectManager->get('\Magento\Catalog\Helper\Image'); $...
milan's user avatar
  • 21
0 votes
1 answer
97 views

How to Display Product qty in Popup

I want to display Magento product qty in the popup. when the customer clicks on add to cart button the popup shows the product available in stock and if the product is not available popup displays the ...
Nabeel shahbaz's user avatar
1 vote
1 answer
115 views

CSS put in block not reflecting in magento 2

in magento 2.3.5p2 In Admin Panel Content > Elements > Blocks a Block has been created to showcase a list of products for promotion The content of the block is as below <img src="{{media ...
Mohd Farhan Bin Ramli's user avatar
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
233 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