Questions tagged [product]

Denotes a question related to the Magento products.

1,658 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
2k 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?
7
votes
0answers
1k 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
2answers
750 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
676 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
567 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
3answers
2k 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 ...
6
votes
0answers
102 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
592 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
2k 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
188 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() ->...
5
votes
0answers
31 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
0answers
199 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 ...
5
votes
0answers
548 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 ...
5
votes
1answer
1k 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 ...
5
votes
1answer
836 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: ...
5
votes
1answer
1k 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
178 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
0answers
632 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
438 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
3k 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 ...
5
votes
1answer
2k 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
3answers
405 views

Magento 2.4: show variant images of configurable product based on filter

i have configurable product on listing page with swatches enabled . Configurable product has images swatches - Red , Green, Blue. Not when i applied Color - filter as Red still images on Listing page -...
4
votes
0answers
54 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
1answer
286 views

Update select attribute in custom_attributes via catalogProductRepositoryV1 API PUT request

I'm trying to update a product with the catalogProductRepositoryV1. I want to change a custom select attribute for the given product. When sending the following request: { "product": { "...
4
votes
0answers
42 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
1k 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
274 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
73 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
322 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
0answers
163 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
131 views

Magento2:-Add product Grid in the product admin side

I searched for that, but I could not find any resource. How to add product grid in to "Add product" in admin side like related product?
4
votes
1answer
3k views

Magento 2 add to cart button not showing for any product

On my magento website, add to cart button is not showing on any product page. I have checked inventory, visibility settings everything is correct still its not showing. can anyone please help ...
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
2answers
2k views

Where does $product->getData('salable') come from?

I have a problem with one of the products. For some reason it doesn't display a buy button. I dig into the core and I figured it out that the problem with this value. Inside function isSalable() It ...
4
votes
1answer
120 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
145 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
824 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
294 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
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
1k 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
31 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 ...
3
votes
0answers
62 views

Magento 2 Edit Product page Error: Every derived table must have its own alias

I'm using magento 2.2.5 and when i opened the edit product page the product name, price,etc doesnt load at all, and when i checked the var/log/exception.log i got the following error: ...
3
votes
0answers
263 views

Get Tier Price of Configurable Products that contain simple products : Magento 2.3

Currently, I am using the following code in addtocart.phtml to retrieve tier price data: $allTiers = $_product->getTierPrice(); $checktiers = array_values($allTiers); $tierPrices = ...
3
votes
0answers
59 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
49 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
1answer
356 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
219 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
1answer
4k views

Invalid argument supplied for foreach() Error in magento 2.3

I am getting this error on some Products on Magento 2.3 when I try to view them: 1 exception(s): Exception #0 (Exception): Warning: Invalid argument supplied for foreach() in /www/htdocs/...
3
votes
0answers
94 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 ...

1
2 3 4 5
34