Questions tagged [product]

Denotes a question related to the Magento products.

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

Frontend magento 2 shows product in a category, but backend they are disabled

Have 1 technical question that you may know about magento 2 I want to have on the frontend the bracelets products disabled under the clothing category. The thing is, in the backend, they are disabled ...
0
votes
0answers
8 views

Importing HTML code via the the API

Bit of background: I'm using the API to move data from our core database that holds stock information. The DB also holds information for our current site. There is a field that holds the description ...
0
votes
1answer
21 views

Magento 2: Get all bundle products

So I have to create a report (SQL Script) which has all the bundle products and all its customizable options. I can get list of all the bundle products using this query. select entity_id, type_id, sku,...
0
votes
1answer
21 views

How to Get Most Viewed Product Collection in Magento 2?

how to get the most viewed product collection in your Magento 2 store? I try with multiple codes but unfortunately, I am not getting any solution. I try to create a MostViewedProducts.php file in the /...
0
votes
0answers
14 views

Magento 2.3.2 sort the product collection by attributes

I want to sort the product collection by attributes. I want to apply multiple sorting to the product collection need to sort by NEW, ONSALE, and POSITION For example when going to any listing page ...
0
votes
0answers
11 views

Magento 2 | getData("news_from_date") return wrong value

I created a php file external to Magento2 with a foreach that takes the value of the "news_from_date" attribute. On many products the "news_from_date" field is empty but despite ...
0
votes
1answer
12 views

2 Admin users: 1st works fine; 2nd gets the circle with 'Please wait...' that never goes away after updating and saving Short Description/Description

Magento 2.4.2-p1 Smartwave Porto theme We migrated our Magento 1.9.4 to 2.4.2-p1 using the Magento Migration Tool. We have 2 users: Me = System Admin - no problems My colleague who has limited ...
0
votes
1answer
43 views

Magento 2.4.3 currency symbol not showing on product,cart and checkout page

I have just setup fresh Magento 2.4.3 on the VPS server and noticed that the Currency symbol not showing on my website, Any help is highly appreciated. Url - https://stagingsgwdirect.com https://prnt....
0
votes
2answers
14 views

Product resource saveAttribute method cause problems with ProductProcessUrlRewriteSavingObserver

I have a problem with ProductProcessUrlRewriteSavingObserver when I try to save product attribute data by the Product resource saveAttribute method. Magento 2.4.3 changes one validation method in this ...
0
votes
1answer
18 views

What is Custom Block and Custom Block 2 for on the Product page?

Magento 2.4.2 Smartwave Porto theme I see the Short Description and Description is in the Content tab on the Product page (in Admin). What exactly would we use the Custom Block and Custom Block 2 for?...
0
votes
0answers
16 views

Is it possible to add any additional info to product cache tags?

I would like to add additional information on product cache tags.For example, i would like to set a date/year as below i.e $tags[] = Product::CACHE_TAG . '_' . $this->getProductId() . '_' .'...
0
votes
0answers
8 views

How to create product grid inline edit in magento 2

I want to show stock status column in product grid. And stock status column inline editable.So how to create product grid inline editable in Magento 2.
0
votes
0answers
20 views

How to add a product with custom price to the quote with plugin [beforeSubmit] in Magento 2

I have a plugin to replace one of the products in the last step before a quote is submitted. I'm able to add a new product, remove the old one but I can't set the new product price to the price of the ...
0
votes
1answer
26 views

How to set special price on all stores?

I want to programmatically set special prices on products. The below code works perfectly for 1 store view. But I want to have the special price to be applied to the "All Store Views" scope. ...
0
votes
0answers
29 views

Magento 2 widget in product page

On the product page, i need to lay out the static block through the widget. This is possible - the problem is that it is displayed before the attribute selector. How to make that from the beginning ...
0
votes
1answer
36 views

Magento 2 CategoryFactory exclude current product from collection

I am using an extension auto-selecting related products from the same category. However, I want to exclude the current product from that list which is not really working. protected $_categoryFactory; ...
0
votes
0answers
29 views

main.CRITICAL: Error: Call to a member function getId() on null

I'm using Magento 2.4.3 and I'm loading a custom module using someone else's code from the link https://community.magento.com/t5/Magento-2-x-Programming/Magento-2-Product-Reviews-only-by-customer-who-...
0
votes
1answer
17 views

How to edit Product name in Magento Admin in Sales order tab ( Information , Invoices , Credit Memos , Shipments ) and in its email as well

How to edit Product name in Magento Admin in Sales order tab ( Information, Invoices, Credit Memos, Shipments ) and in its email as well. Like I want to append some data in Name but didn't get the ...
1
vote
0answers
16 views

Product attribute in Google's product search result description

How to show the product attribute in google's product search result description? Particularly, I want to show the final price of the product. Please check the below-attached image in which amazon ...
0
votes
1answer
22 views

How to add a label to simple & Bundle product price?

I need to add the Saving percentage label to the product after the price on the category listing page and product details page. I managed to do this for configurable products by adding the below code ...
0
votes
1answer
19 views

Magento 2: Get Product Collection With Multiple SKUs Filter

I'm trying to get product collection with multiple skus filter, don't know what I'm missing or doing wrong: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
0
votes
0answers
15 views

product not saving - getting error (Warning: Invalid argument supplied for foreach() in /home/..../Validator/NotProtectedExtension.php on line 84)

while creating the new products its throwing below error "Warning: Invalid argument supplied for foreach() in home/....../public_html/vendor/magento/module-media-storage/Model/File/Validator/...
0
votes
0answers
6 views

How to add product cart (+ people added this item to their cart in the last 5hrs) counting statistics below product

20 people added this item to their cart in the last 5hrs or hurray! 20 people have this item in cart
0
votes
0answers
18 views

How to add color name before product name in mini-cart and right sidebar of checkout page in Magento 2

I want to show the color with the product name in Minicart and Checkout Page in Magento 2. So i have got the color value by <!-- ko if: options.length --> <!-- ko foreach: { ...
0
votes
1answer
17 views

How to create multiple product using magento API

How to create/import multiple products via Magento API. I have created a single product using the following API http://127.0.0.1/magento240/rest/V1/products
0
votes
0answers
23 views

Function is slower when it overrides another function

I experienced the following issue and I'm wondering if anyone out there did experienced something similar: when a function that overrides another function is called, its execution is slower than when ...
0
votes
2answers
31 views

Export Product Sku, Product Name, and Product Price in magento2

I'm trying to get a list of all of our products in CSV or Excel format which has the SKU, Product Name, & Product Price. Is there is a way to acquire this from Magento2?
0
votes
1answer
36 views

Undefined index: optgroup in vendor/magento/module-catalog/Ui/Component/Product/Form/Categories/Options.php on line 103

Categories do not load when I am editing a product, I can't even select them. The customer changed the url of the category and then this error occurred. Any suggestions?
0
votes
1answer
18 views

Backorder status of product

I need to display backorder status of products in success page.we have 3 status and each product show its status.Thank you
0
votes
0answers
21 views

Magento 2.4: getting full action name null in controller_action_predispatch event observer for category page and product page

In controller_action_predispatch event observer, I'm getting the correct full action name, route name, controller name and action name for all pages in Magento 2.4 except category page and product ...
0
votes
1answer
12 views

After Installing "Searchanise_SearchAutocomplete" Product Not Found in magento 2.4.2

i install "Searchanise_SearchAutocomplete" extension in my magento 2.4.2 setup after i install this extention the search autocomplete not working. and got only this error on catalogue ...
0
votes
0answers
26 views

Product status changes after inventory update via POST /all/async/bulk/V1/products API call

After performing the API call (for updating the inventory) below, the product (disabled, not shown on the store) becomes enabled (shown on store). Who knows why this API call affects the product ...
0
votes
1answer
18 views

Is it possible to check how an item will display on the website before saving it to be uploaded?

I Want to make sure my item will be uploaded, viewed and interacted with correctly, can I check what it would look like prior to putting it live on the site available to customers?
0
votes
0answers
7 views

Display product images in succes page

I need to display product images in success page without using object manager
0
votes
0answers
38 views

Magento2 Update Image gallery

There is one customisation i.e when ever user selected any custom div's like TEST 1 (or) TEST 2 we need to update an image gallery with the respected selected product images on PDP. How do we achieve ...
0
votes
1answer
32 views

How to get and import data from Magento 1.9 to Magento 2.4 ( Like Products, Categories , Customers )

I have 2 store 1st one is in Magento 1.9 and Second one is in Magento 2. So now i want to Migrate my data from Magento 1.9 to Magento 2 and the data which i want to migrate is ( Like Products, ...
0
votes
1answer
44 views
0
votes
3answers
36 views

Image not showing on product page and aslo admin in magento?

I want to show my image on product page but its display nothing please check image error below
0
votes
0answers
20 views

Magento 2.3 product listing page sorting not working - using varnish and elasticsearch

I was trying to show the products listing order by product id descending in any condition except price. So, I override the \Magento\Catalog\Block\Product\ProductList\Toolbar class with plugin and did ...
0
votes
1answer
14 views

How to modify product data on observer pre cache?

My problem would be the following: I need to modify the product data on load after the product page was cached. Everytime I load a product I need to request some data to an api and overwrite certain ...
0
votes
0answers
16 views

get number of items in order summary

I need to display the number of product in cart page in order summary block, it has to be uploaded by ajax once we increment or decrement the quantity
0
votes
0answers
15 views

How to send mail for the giftcard recipient email address in magento 2.4.2 commerce

We are trying to send mail to the gift card recipient's email address. Until I checked In-Default the Magento is not sending the mail. Can anyone tell me how to send mail to the recipient's email ...
0
votes
0answers
14 views

Add Calculated Column in Admin Product List

currently i can't find an answer and hope someone can guide and help me to solve my problem. In the shop i support the qty of a product are packages of items. We have added a field to the product in ...
0
votes
1answer
33 views

The stock item was unable to be saved. Please try again

I'm running a custom import. At some point the error: The stock item was unable to be saved. Please try again. Is triggered by : $this->_productRepository->save($prod); Now I'm trying to figure ...
0
votes
1answer
36 views

Remove main product image from child products of configurable products from product details page in magento 2

Why Magento2 is showing the Main products(Configured products) image in child product while choosing the option from the products details page. I don't want to show the main product image in the child ...
1
vote
1answer
42 views

How to get the "all store views" price scope from a product

I have 3 websites, each with one store and one store view. I have all products' collections based on store in hand, i'm doing a price change for each product using the magento' API within a script, ...
0
votes
0answers
19 views

Magento 2 : Error does not have accessor method on vuestorefront

I'm trying to pass the custom option in vuestorefront api/cart/update call and trying to get it on sales_quote_product_add_after observer but I'm getting an error [2021-08-17 13:54:40] main.CRITICAL: ...
0
votes
0answers
19 views

Magento2 - How to add custom product attribute of type is Only Year field?

Greeting of the day! As per our requirement wise, I need Custom Product attribute and their type is the only YEAR field, so that how can I create the date year attribute only allow to select the year, ...
0
votes
0answers
19 views

Product collection search issue

I got two issues in one I can't figure out, any help would be precious. Collection size Product prices I'm trying to analyze the result of a search by word and order by price request. To do such a ...
0
votes
0answers
22 views

Which event gets dispatched when Update Cart action is triggered in magento 2?

I am trying to modify the subtotal in the checkout/cart page when the item gets updated using the Update Cart action button on the product page. After the product has been successfully added to the ...

1
2 3 4 5
97