Questions tagged [product]

Denotes a question related to the Magento products.

1,672 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7 votes
1 answer
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?
user avatar
7 votes
0 answers
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 ...
user avatar
  • 9,473
6 votes
2 answers
824 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 {"...
user avatar
  • 101
6 votes
1 answer
711 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 ...
user avatar
6 votes
2 answers
2k 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 ...
user avatar
  • 159
6 votes
1 answer
618 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 ...
user avatar
  • 2,364
6 votes
3 answers
3k 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 ...
user avatar
  • 1,682
6 votes
0 answers
110 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 ...
user avatar
  • 81
6 votes
2 answers
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 { $...
user avatar
  • 197
6 votes
1 answer
652 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 ...
user avatar
6 votes
1 answer
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 ...
user avatar
5 votes
0 answers
217 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() ->...
user avatar
5 votes
0 answers
46 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 ...
user avatar
  • 1,002
5 votes
0 answers
230 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 ...
user avatar
5 votes
0 answers
612 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 ...
user avatar
5 votes
1 answer
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 ...
user avatar
  • 1,090
5 votes
1 answer
1k 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: ...
user avatar
  • 83
5 votes
0 answers
383 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 = $...
user avatar
  • 1,087
5 votes
2 answers
3k 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 ...
user avatar
5 votes
0 answers
183 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 ...
user avatar
5 votes
0 answers
672 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 ...
user avatar
  • 8,598
5 votes
0 answers
457 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 ...
user avatar
  • 185
5 votes
3 answers
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 ...
user avatar
  • 605
5 votes
1 answer
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": { ...
user avatar
4 votes
3 answers
705 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 -...
user avatar
4 votes
0 answers
104 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 ...
user avatar
4 votes
1 answer
377 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": { "...
user avatar
4 votes
0 answers
43 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 ...
user avatar
  • 41
4 votes
1 answer
2k 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 ...
user avatar
4 votes
0 answers
310 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 ...
user avatar
  • 41
4 votes
0 answers
80 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. ...
user avatar
  • 41
4 votes
0 answers
176 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 ...
user avatar
4 votes
1 answer
135 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?
user avatar
  • 1,873
4 votes
1 answer
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 ...
user avatar
4 votes
1 answer
2k 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 ...
user avatar
  • 1,267
4 votes
0 answers
9k views

Magento 2 : Change Product Default Image

I am trying to change the default images on products that haven't got an image. I've uploaded the images within: Stores > Configuration > Catalog > Catalog > Product Image Placeholders I've flushed ...
user avatar
  • 757
4 votes
1 answer
126 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.
user avatar
  • 1,355
4 votes
0 answers
161 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 ...
user avatar
  • 1,474
4 votes
0 answers
899 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 ...
user avatar
4 votes
1 answer
326 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 ...
user avatar
4 votes
1 answer
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/...
user avatar
  • 113
4 votes
1 answer
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 ...
user avatar
  • 355
3 votes
0 answers
106 views

Products not appearing on category page after upgrade from 2.3.0 to 2.4.2

I have upgraded my Magento v2.3.0 to v2.4.2 running on Mysql 8. Everything went well except products not showing up on category page. Below is the class responsible to fetch products on category page. ...
user avatar
  • 1,474
3 votes
0 answers
44 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 ...
user avatar
3 votes
0 answers
70 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: ...
user avatar
  • 177
3 votes
0 answers
366 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 = ...
user avatar
3 votes
0 answers
64 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 ...
user avatar
  • 700
3 votes
0 answers
52 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. ...
user avatar
  • 1,515
3 votes
1 answer
462 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. ...
user avatar
  • 61
3 votes
0 answers
233 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.. ...
user avatar

1
2 3 4 5
34