Questions tagged [product]

Denotes a question related to the Magento products.

1,446 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
14
votes
1answer
653 views

Magento 2.1 Ui Component form field Token input

I want to add tags in an input field , in a similar fashion as it is done in product form to add catageories - which is show in the image below. This much task I have achieved by adding field ...
8
votes
0answers
785 views

Magento2 : How to hide a Product from a specific Customer Group?

I want to create an extension that will hide a product from a specific customer group.
8
votes
0answers
362 views

Magento 2 : What is the Best Way to Implement Favorite Products List for Regular Customer?

The majority of our customers not very tech savvy and have trouble with basic website functions and they need to order same or similar items every week or quickly. What is best way for me to assign ...
8
votes
2answers
1k views

Magento 2 is there a faster way to change product media gallery entries programmatically

I need to do a massive update of product data but what I need to do can't be achieved with product import. In example I need to update media gallery and categories for given products, but the solution ...
7
votes
0answers
949 views

Magento 2: How to Show Discount Coupon Applied Code Product wise?

In Shopping Cart, I have 2 products. When I am applying the Promo Code it's going to apply on only 1 product as per the Shopping Cart/Promotion Rules. I would like to show discount code on basis of ...
6
votes
1answer
282 views

Can't update product / Unique constraint violation

Since migration, to Magento 2.3 i can't save any products. Exception.log reports (when i try to update in default scope) : [2019-03-21 17:29:07] main.CRITICAL: Unique constraint violation found {"...
6
votes
1answer
512 views

Magento 2 : How to Get Shipping Quote (Shipping Calculator) on Product Page

I want to display the Estimate Shipping and Tax section on the product page in Magento 2. Any guide how can I achieve this? I don't need the code but If you can provide any guidelines that will be ...
6
votes
1answer
430 views

Different quantity for different size add to cart product

i've created configurable product which has different sizes and different colors, In my product details page currently there's only one quantity input field and i need to select the size before add to ...
6
votes
1answer
630 views

Magento 2: insert products images alt tag programmatically

I need to insert ATL tag for catalog products images programmatically. Is there any way to do it?
6
votes
0answers
90 views

Adding a variable for each Simple product within a Bundle in Magento 1.9 CE

In our Magento store (1.9 CE) we have some Simple products which fit multiple applications. So we want to create a Bundle product for each application and include the Simples in them. The problem lies ...
6
votes
2answers
1k views

Product created programmatically unable to add to cart in magento 1.9.2?? It gives error “The product could not be found.”

public function createcustomerproduct($data) { Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); $product = Mage::getModel('catalog/product'); try { $...
6
votes
1answer
512 views

How can I get only the Store View attributes, without the inherited Global data? I only need the diffs

I'm using the internal Magento APIs to get the product data on a store view level. I only want to get the values that are on that store view level, not the global values that in inherits. But it ...
6
votes
1answer
1k views

How to get the product id and SKU code of the product selected

I am using a plugin to enable notify me (Out of stock) feature, the plugin is working properly but the problem is it is taking the core product id and storing it in the backend, even after I select a ...
5
votes
0answers
25 views

Magento 2 : Is there any idea how product will come in mailchimp after connect my magento with mailchimp?

I just need to use Product Recommendations block in mailchimp account. My magento store is already connected with mailchimp account but i can not seen any product inside this product block in ...
5
votes
1answer
765 views

how to display different description for each virtual product which was create with configurable products?

In Magento 2 , when we create configurable product its child product also created, we can provide different description for child products too. > 1. How to access description of each child product ...
5
votes
0answers
147 views

Add product stock information to product repository

When working with the ProductRepository in Magento 2 and the results of the getList method what is the "best" way to add extra information to the results? For example in the default 2.1.7 setup you ...
5
votes
1answer
1k views

Product image not zooming in properly when hovering on image at product detail page

In my product page detail when i try to hover the product image there's only white box with low opacity overlaying at the top of my image like this : Usually in Magento 2, when hovering the image it ...
5
votes
0answers
547 views

Magento 2: Image upload in product review from Frontend

It would be very helpful if someone can guide me, How to achieve functionality of uploading image while product review on frontend. I want to implement the functionality, the users can upload images ...
5
votes
0answers
365 views

Case / Package Products in Magento 2

I have this requirement: A product should have each individual price and case / package price. For each product, N items make a case. For example: In product, A 20 items makes a case. In product B 5 ...
5
votes
3answers
2k views

Show product of a category in a custom page

I create a category with some product. Also create a custom layout for my page that I add new cms page with this layout that I created. I need to have this page with my layout because I want to add ...
4
votes
0answers
67 views

Magento2 : Display Bestselling products for last 7 days

I want to display bestselling products for time inetrval 7 days. We can set period by day, month and year $bestSellers = $this->_bestSellersCollectionFactory->create() ->...
4
votes
0answers
40 views

Sort by price is not working on magento 2

This is a website link https://magento-202257-609939.cloudwaysapps.com/catalogsearch/result/index/?product_list_dir=asc&q=wera I am developing for my client and after a search of any product when ...
4
votes
0answers
89 views

Magento 2 - Product names with number/digits & special characters are not searchable

I have product names like ' 8" X 6" cards ' they contain measurements i.e. numbers and characters. when I try to search these products on the frontend. the Ajax search returns the product fine and ...
4
votes
0answers
40 views

Importing from Custom E-Commerce Platform to Magento 2 (MySQL to M2)

I need to import Products, Customers and Order History from a custom e-commerce platform into a new Magento 2 implementation. Ideally the extension or cloud service would allow us to connect directly ...
4
votes
1answer
182 views

How to get final price of a product by rest API?

I mean the final price that Magento calculated and inserted in catalog_product_index_price table. It may have applied special price/catalog price rule/tier price, which price is displayed to customer ...
4
votes
1answer
442 views

magento 2 | Categories not showing in Admin Product Edit Page

I have started working with magento earlier this year, I am running magento CE 2.2.2 I have noticed that when I go back to edit a product from the catalog I have noticed that the categories are not ...
4
votes
0answers
176 views

Unable to update custom product attribute value programatically

I have created a few custom product attributes in Magento 2.2.6 and have no problem saving a new product with these new attributes, load this created product, and update the standard Magento ...
4
votes
0answers
28 views

Magento 2.2 - order confirmation/order edit - rounded bundled product qty

I use decimal qty for some products. If product type is simple order confirmation email sends qty correctly in decimal eg. 1.05 m2 Unfortunately if same product is part of bundle qty is rounded down. ...
4
votes
0answers
176 views

How to increase M2 Product Upsert Performance?

I upsert products like this: try { $newProduct = $this->productRepository->get($productData['sku']); } catch (\Magento\Framework\Exception\NoSuchEntityException $e) { $newProduct = $...
4
votes
1answer
831 views

Reviews not showing up on Product View (after upgrade from Magento 2.1.3 to 2.2.3)

After upgrading Magento from 2.1.3 to 2.2.3 my reviews are not showing up on the Frontend > Product View > Reviews Tab. The following container is empty (I assume the reviews should be supposed to ...
4
votes
0answers
117 views

Magento 1.9 Add Backorder status of a product to the product grid in backend

I'd like to add the status of the back-order in the main manage product grid as an column so I can see it in 1 instance. the status is visible when you click on a product and go to inventory and you ...
4
votes
1answer
156 views

Rest api for my orders

Where can i find the rest api for my orders and my downloadable products in magento2. I can't find the list in the swagger file. eg: GET /orders/me GET /downloadableproducts/me Or how can i filter ...
4
votes
1answer
1k views

Tier Prices with different product options

We're implementing tier prices in our webshop. We have a simple product with one customizable option 'flavor'. This dropdown has two options: strawberry and banana. We've added tier prices for this ...
4
votes
0answers
1k views

Add multiple products to cart using Magento2 REST API using custom method

Add multiple products to cart using Magento2 REST API using custom method Their is no default magento api this is single product add to cart json code in rest api body section. { "cartItem": { ...
4
votes
1answer
117 views

Magento: Product Details in popup

I want to show a product details in popup instead of redirecting to the product view page. How is it possible. Please help.
4
votes
0answers
125 views

Update product stock based on store id Magento 2

I have created a multi-store view for my Magento site. In my custom extension I've successfully load store id and product, now I want to update the product quantity for specific store id, is there a ...
4
votes
0answers
609 views

Magento 2 fotorama slider show more than 1 image at a time

I want to show 3 product images at a time on Product detail page. Here is the example image: But fotorama image only show 1 image at a time on slider. It doesn't have slides or items options to set ...
4
votes
1answer
175 views

Magento 2: How to create custom layout instructions to match a custom product page layout?

I am trying to work on a product subscriptions page which is very different in function from a standard product page. I have created my new Magento_Theme/page_layout/subscription.xml I set Magento 2 ...
4
votes
4answers
818 views

best practice to connect Magento 2 to price/product service

I have my own price/product service that I need to connect to Magento. The service has a variable amount of products with very variable prices. The price can change with every request a customer makes....
4
votes
1answer
1k views

Adding custom column into product grid

I have created a custom column for associated products (basically every simple product will have that column under "associated products" tab of configurable product). I store information of this field/...
4
votes
1answer
978 views

Bundle Price shows different on list page vs. product page.

I have a dynamically priced Bundle Product. It's composed of two products, product A ($10) and product B ($5). They're part of the Bundle via a required checkbox where they're both selected by ...
3
votes
0answers
42 views

Page getting cached in Magento 2

I am trying to display random products on the homepage. but my page is getting cached and on refresh, same products are displayed. I used AJAX post request also but did not work. Can anybody say how ...
3
votes
0answers
37 views

Magento 2 Can We override **Add New Product** Page ? in custom_module on frontend area?

I want to make a custom page where vendor can add New Product with all text fields which Magento provide from the backend. I want to override this same page on my custom module on the frontend side. ...
3
votes
0answers
68 views

Add Product to cart with required Options is impossible

I added a required customization option (not sure about the name in English, in French, it's "Option personalisable"). On the front, there is no problem until you try to add the product to the cart. ...
3
votes
0answers
102 views

Magento 2.3.1 CE Tinymce Error

We have upgraded Magento from 2.2.3 CE to 2.3.1 CE successfully. But we are facing few issues with the Tinymce js from admin end product edit page and cms pages etc.. when using Show/Hide Editor.. ...
3
votes
0answers
49 views

Magento 2 - Product edit screen, missing category selection field entirely | How to debug?

At some point during development unknown; the category select field has gone missing from the product edit screen (on all product types). It's possible it happened during a partial update of content ...
3
votes
0answers
346 views

Magento 2 : keep disable product in cart

I want to keep disabled product in cart. Let's say I have added one product to the cart. After that I have disabled that product from Magento admin. Now when I visit cart page, there is message that ...
3
votes
0answers
24 views

Background or concurrent taks in Controllers

I am currently programming an extension for Magento 2. I am developing an observer that is triggered when you make an action inside a controller in the admin section. What I do is to fetch all ...
3
votes
0answers
210 views

Custom Model Relationship (CMS Page + Product)

I am trying to assign a Product Object to a CMS Page Object, so when you have the CMS Page Object, you can do something like this: $product = $page->getProduct(); I have modified the CMS Page ...
3
votes
0answers
340 views

Magento 2, Unable to save products (Catalog rule indexing failed. See details in exception log.)

I receive the error "Catalog rule indexing failed. See details in exception log." when I try to save a product, and get the error below in the exception log. [2018-08-26 05:09:05] main.CRITICAL: ...