Questions tagged [product]

Denotes a question related to the Magento products.

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

How to get MOQ from the product by using object manager?

HI How can I get MOQ of product by using object manager?
2
votes
1answer
24 views

Magento2 - admin special price input's are rounding value to 2 decimals

Referring to Magento2 - admin price input's are rounding value to 2 decimals There is a perfect solution made by https://magento.stackexchange.com/users/86273/melvin for saving tier prices with 4 ...
3
votes
0answers
22 views

'Unable to save stock item' error when trying to save creating or editing a product

I am running Magento 2.2.2 and recently migrated servers. When I am trying to edit or create a new product now, I have the error 'Unable to save stock item' This is the first time I am facing this ...
1
vote
1answer
79 views

Why changing the scope of quantity_and_stock_status from Global to Website level does not affect the Quantity and Stock Status field?

I have changed the scope of quantity_and_stock_status in Stores > Attributes > Product > from Global to Web Site: But while creating new products or editing existing products the Quantity ...
1
vote
2answers
45 views

How to change the scope of product Quantity from Global to Website level?

I am using Magento 2.2.6 Open Source Edition, a single product has been selected for 3 websites in Product in Websites section, I would like to have different quantities of the product for each ...
2
votes
0answers
45 views

Magento 2.3 delete wishlist items not working

I am trying to delete wishlist items , using the below code but its not working, error is- INNER JOIN `catalog_category_product_index_store0` AS `cat_index` ON cat_index.product_id = main_table....
0
votes
0answers
23 views

Update Magento2 Catalog Images on Swatch Selected

Basically i written my own gallery page so when ever a configurable product with color swatches is available , it is not showing different color images when user selects that particular swatch. &...
0
votes
3answers
169 views

Magento 2 : Get Product Collection based on Attribute

I want to get product collection based on attribute. For ex : If "Size" attribute exist in "Bag","Bottom" attribute set then, All Product's of Bag and Bottom return in ...
1
vote
1answer
151 views

main.ERROR: The “EM0EM00284-100” product couldn't be removed

After upgrade to Magento 2.3.5, When trying to delete products from the catalog, we receive an error. This occurs on various types of products, from virtual products, simple products, configurable ...
0
votes
1answer
29 views

Custom variable access using 'var' on working on product detail page in magento 2

I am trying to access custom product attributes value in product description on product detail page using 'var' Like for e.g {{var waz_origin}} But i am not getting its value on frontend. See https://...
0
votes
1answer
35 views

How I add attribute with product title in magento

This is my code of title.phtml. Here I want to show attribute when I select dropdown value and hide when I didnot select any value from my attribute dropdown list. Here in code I added span with class ...
0
votes
1answer
60 views

How to get product image full file path directory in magento 2?

I have a custom extension that needs the full path directory file of the product image not the URL of the product image, for example: /var/www/Mage2Dir/pub/media/catalog/product/d/i/base_image_product....
0
votes
1answer
31 views

How to write superscript Registered ® and Rx in Magento 2 Product name

I have many products in the website having product name like "Cialis ® (Tadalafil) Rx 20 mg" I want to write in superscript both "®" and "Rx" but they are not written in ...
0
votes
0answers
9 views

How to add remove item from wishlist link on product page in Magento 2.3?

I want to add remove item from wishlist button on product page if product already added in Magento 2.3 How can I do this?
0
votes
0answers
22 views

Exception #0 (Exception):Array to string conversion …/framework/App/Config.php on line 84 MagePrince productAttachement

Magento 2.1.9 CE Installed latest compatible extension productAttachemnt from MagePrince. Exception #0 (Exception): Notice: Array to string conversion in /var/www/vhosts/.../httpdocs/vendor/magento/...
0
votes
0answers
30 views

Magento 2 - get Qty of used products of Configurable

I'm trying to take the various quantities of the products associated with the configurable in this way but the code does not work: $simple_collection = $_product->getTypeInstance()->...
1
vote
2answers
80 views

HTML video for products

Is there a way to add HTML video instead of relying on Youtube, Vimeo, ... It's kinda unprofessional looking and it's not kinda hard to have a video tag that links to URL. Seems like this is supported ...
0
votes
0answers
62 views

Magento 2 How to Move upsell block above the product details block?

I can't seem to figure this out, I want this upsell block to be right above the product tabs: <block class="Magento\Catalog\Block\Product\ProductList\Upsell" name="product.info....
1
vote
1answer
56 views

Product recommendation duplicated when using Adobe Sensei

I'm using a Magento 2 Commerce Cloud + Adobe Sensei product recommendation I did all the steps described in the DevDocs - Product Recommendations but when I enabled the AI product recommendations, it ...
0
votes
0answers
16 views

Meta title is displaying instead of product name for mobile version in magento 2

I am facing the weird issue that for mobile version, meta title is displaying instead of product name. For desktop version, it is displaying fine without any issue.
0
votes
0answers
52 views

Magento 2 REST API filter products in stock

I am looking for an API filter to get in stock products but I could not find any option on the internet. Any ideas ? Maybe some plugin code ? Thanks !
0
votes
1answer
109 views

How to link simple products to configurable product?

Im building an import extention, that imports bicycles from an external Database into Magento. I managed to create working helpers, that create a configurable product and the different bikesizes as ...
1
vote
1answer
97 views

Request does not match any route error Magento 2 API

I've created an extension , while visiting magento.com/rest/V1/wishlist/1/2 it throws error. here are my files - di.xml <?xml version="1.0" ?> <config xmlns:xsi="http://www.w3....
0
votes
1answer
29 views

Magento 2 add custom external url to product

I'm doing an e-commerce site that instead of having products it will have overview of properties, but this properties are stored in an external website. I need to add an external url to the products, ...
0
votes
0answers
21 views

Remove product page tabs and show all content

I'm using Magento 2.3.5-p1 with default Luma theme. Since, for what I understood, tabs are bad SEO practice, I like to avoid using them. How can I remove all tabs and show all their content in the ...
0
votes
0answers
25 views

Magento 2 + Programatically create product issue

<?php declare(strict_types=1); namespace Test\Xyz\Model\SampleData; use Exception; use Magento\Catalog\Api\Data\ProductInterfaceFactory; use Magento\Catalog\Api\ProductRepositoryInterface; use ...
0
votes
0answers
13 views

Product Attributes showing in admin panel and front end when they should not

Firstly, I am not a developer, but have a problem with megento 2 I have a number of product attributes in attribute sets, the problem I am having is that some product attributes are show as a ...
2
votes
1answer
61 views

Magento 2 API for product add to compare and compare list

There is any way to get API for product add to compare and get compare list for customer. Thanks
0
votes
1answer
74 views

How to override magento2 product tierprice?

I want to override magento2 product tier price calcualtion logic for price type 'Percentage'. I would like to calculate the percentage amount in my own way. Please let me know which file I have to ...
0
votes
0answers
14 views

Save product in multiple website issue

Hi whenever i try to save product at admin product page in different websites it gives me this error SQLSTATE[42S02]: Base table or view not found: 1146 Table '_mg_v2.catalogsearch_fulltext_cl' doesn'...
0
votes
0answers
34 views

Get current product details in price phtml file in magento 2

I want to get current product details in /Magento_Catalog/templates/product/price/amount/default.phtml file. I want to display custom price as per my requirements. so i need to get product collection ...
0
votes
0answers
124 views

Uncaught TypeError: Cannot read property 'map' of undefined

Running Magento ver. 2.3.5-p1, vanilla install running Luma theme. I'm populating the site with all of my SKUs, and occasionally, after I update a product with a new image (Save & Close), it will ...
1
vote
0answers
14 views

Magento 2 exception Requested product doesn't exist

My site running Magento 2.2.4 has been throwing a high number of exceptions: Requested product doesn't exist. The error comes from method getById() in ProductRepository, line 273: ...
0
votes
0answers
44 views

I am getting incorrect count of products for layered navigation in magento 2.3

In layered navigation filter i am getting incorrect product count, i can't get the solution for this problem. Example : The products under Shorts category in 49 but in the filter for me showing as ...
2
votes
1answer
90 views

Magento 2 admin Uncaught TypeError: this.linksFieldset(…).visible is not a function

When we edit product from admin then its showing loading continue and also getting this error "Uncaught TypeError: this.linksFieldset(...).visible is not a function" is showing error in console. We ...
0
votes
0answers
25 views

How to hide the products base on the category in magento 2.3

I need to hide the products based on the category. To Do : If i need to hide the products which are assigned on the particular category called Shirts, all products of this category need to hide. How ...
0
votes
1answer
35 views

Magento 2 - “Starting at” does not show lowest price

This is a group product with tier prices in our shop. As you can see, the lowest possible price is 151,20 €. But in the category view it shows 167,20 € instead of 151,20 € How can I fix it?
0
votes
0answers
12 views

product name with brand, first level, second level and third level catagory list

Hi I want to get list of all the sku along with its brand and its first level ,second and third level category... eg fashion, topwear, jacket, denim, blue jacket(name), levis.
0
votes
0answers
24 views

Add custom field in magento2 Tier Price

I want to add a new field in magento2 tier price. This field will contain another price. So that when we add percentage in tier price then percenatage of this custom price should be taken, not the ...
0
votes
0answers
18 views

How add attribute to configurations?

I not understand how adding attributes programmatically to configurations like Color or Merchant. Please, help me.
0
votes
1answer
27 views

Magento 1 - how to check if product page is opened from search page results?

I've working on analytics. I am having some difficulty to have an idea if product is opened from search page or not. How can i determine it ? Thoughts are appreciated.
0
votes
0answers
9 views

Trigger event , when product comes from search

I want to trigger Product Viewed event , when product is viewed , but only for the product that comes from search results. Any idea how to achieve this ? Thank.
0
votes
0answers
16 views

Magento 1.9 Custom extension not displaying block in product view

I have been trying to display a custom template in the product view page in a simple extension but it only works for some references: product.info.additional, product.info.extrahint, product.tooltip ...
0
votes
1answer
19 views

How to add position to products in product listing comes from search results in magento 1?

I am trying to add a position attribute in product object in product listing which comes from search results. Anybody have any idea how do achieve this ?
0
votes
0answers
3 views

simple products dynamics price display base on tier pricing and quantity

Is there any reference that I can follow, so that my magento can update the price base on customer input quantity VS tier pricing. qty 1 = 10 each qty 3 = 8 each qty 10 = 5 each let say I have above ...
0
votes
2answers
34 views

Whats the Correct Product Type

What would be the correct product type to use for example we are selling a Printer. Then we want to add a dropdown for what Color of Printer Ink they want to buy. I don't think its a bundled product ...
0
votes
0answers
14 views

show text in item description for currently selected attribute

Magento 1.9.3 I have a custom piece of code in the description.phtml page for a product. This description auto populates if the item has attributes associated with it. This works well for my ...
0
votes
2answers
14 views

Can't read new product attribute in template

I added a new attribute to a product. The attribute is named "is_brand_new". The product shows in the catalog product view in the upselling and related slider. But the new attribute is not in the ...
0
votes
1answer
42 views

How to get multiselect attribute value of a product in magento 2

I have created multiselect custom attribute for product. See https://prnt.sc/sp7wgn I want to display the selected option value on frontend using phtml file. How can i do that??
0
votes
1answer
37 views

After shifting the website to another server. Products are showing out of stock

After shifting the website to another server. Products are showing out of stock I found the error while uploading the database file. CREATE ALGORITHM=UNDEFINED DEFINER=`user`@`localhost` SQL ...

1
3 4
5
6 7
94