Questions tagged [product]

Denotes a question related to the Magento products.

Filter by
Sorted by
Tagged with
1
vote
2answers
841 views

Upgraded from 1.9.2.4 to 1.9.3 Bundle “Price as configured” Price Shows Zero

I just upgraded from 1.9.2.4 to 1.9.3 and having a problem with the Bundle "Price as configured" price. The problem is it always shows zero no matter which bundle sub-products are selected. It was ...
1
vote
3answers
4k views

“Read more” link in short description in product page

I used below code to limit the short description in product page: 1) it truncates all other attributes with text field in product page not only if ($_product->getData('short_description')). How ...
0
votes
1answer
9 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
1answer
9 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
9 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 ...
3
votes
1answer
152 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. ...
0
votes
1answer
9 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
18 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
16 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 ...
0
votes
0answers
10 views

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

All product showing out of stock. I found the error while uploading the database file. CREATE ALGORITHM=UNDEFINED DEFINER=`user`@`localhost` SQL SECURITY INVOKER VIEW `inventory_stock_1` AS ...
2
votes
2answers
1k views

How to change max-width in the product gallery in Magento 2

How to change max-width in the product gallery in Magento 2 by using below code. <div class="fotorama__stage__shaft fotorama__grab" tabindex="0" data-gallery-role="stage-shaft" style="width: 684px;...
0
votes
1answer
13 views

Add product to quote, if he has zero stock qty

How i can add product (for example with 10 qty) to quote if this product has 0 stock qty.
6
votes
2answers
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 ...
2
votes
2answers
2k views

Magento 2: How many products sold Query

For Product A have 100 qty., For Product B i have 200 qty. I would like to check how many products ordered for a particular product. Which table i need to look up & what will be the query to get ...
0
votes
0answers
18 views

Redirect Simple Products to their Configurable Parent with Attributes Pre-selected

Hey guys I am trying to Redirect Simple Products to their Configurable Parent with Attributes Pre-selected and I followed Daan's guide. The Observer is as follows: <?php namespace DaanvdB\...
0
votes
1answer
926 views

How to show Promotion description on associated product page

I have created a promotional shopping cart price rule for category id 87 as shown in below image- Now I want to show its description on all those product's view page on frontend which satisfy this ...
1
vote
2answers
1k views

Remove product count from layered navigation magento 2

I've been trying to remove the product count from the manufacturer attribute I'm using in the layered navigation. When using the setting Show product count and turn it off, it won't hide the product ...
1
vote
1answer
1k views

How to add canonical tag for product pages as domainname.com/category/subcategory/product.html

Canonical tag for product pages of (eleczo). I need solution how to add a canonical tag for product pages as domainname.com/category/subcategory/product.html in MAGENTO 1.9.1.1. Because, the same ...
0
votes
1answer
1k views

Magento 2 Mass Product Action module (append text to products name , update price…)

I need the code of the module magento 2 which allows to add mass action (append text to products name , update price....) I am blocked help me please
1
vote
1answer
35 views

Magento 2 configurable product

How to identity configurable product in magento frontend ?
0
votes
0answers
15 views

How to remove Specific Category name from URL when product is load

Can it possible to Remove Specific Category from URL when Product is Load. For Example, if Category Name Like this Product Subject Presenters 1) when we click in Product Category Load all ...
0
votes
0answers
13 views

No simple products showing on frontend

My product (approx 1000 product) is not showing on frontend. I have tried to clear cache and reindexing but still after that I am not getting my product in frontend. Currently I am using Magento 2.2.2 ...
5
votes
2answers
1k views

Javascript error on product page in magento 2.2.4

After upgradeing to Magento 2.2.4 there seems to be an error on the product page where the javascript its not working properly (see the screenshot). I am using Porto. Any ideas?
0
votes
0answers
14 views

Item with the same id “2011” already exist

I am getting this error when i try to sign in as a customer. What is the reason behind this. I checked there is no duplicate entry for the record id 2011. See error in details here https://prnt.sc/...
0
votes
1answer
32 views

Magento 2.3.3 increment and decrement for Product page adds to all product

I have been successful in adding code to the file addtocart.phtml to have increment and decrement. I had read to add the same code to grouped.phtml to have the option on the grouped page. the boxes ...
0
votes
2answers
1k views

How do I add a custom TAB to magento2 product detail

I flow How to add a tab in product details page using Magento 2 admin panel step to add a custom tab and I got this error my file struct catalog_product_view.xml <?xml version="1.0"?> <...
0
votes
0answers
12 views

Getting the parent category of a given product

So, this is how I get the category of the current product: $categories = $item->getProduct()->getCategoryIds(); Since I set only one category to each product, this is how I get its parent ...
1
vote
3answers
2k views

Magento2 Uncaught SyntaxError: Unexpected token B in JSON at position 121

Product detail page showing this error for some products Uncaught SyntaxError: Unexpected token B in JSON at position 121<br> at JSON.parse (<anonymous>) at getData (main.js:58) ...
0
votes
1answer
19 views

How add new button to grid product

I want add new button near Add Product button in grid product in backend.
0
votes
0answers
12 views

Toggle Visibility of Info in Individual Product Pages (Magento 2.3)

If I simply wish to enable or disable the visibility of certain pieces of information on an individual product page, must this be done by a developer editing the template or related files as mentioned ...
3
votes
2answers
1k views

Add to Cart button in Magento 2.1

I tried with button add to cart and it not working, app/code/Moo/Custom/view/product.phtml <?php $product = $this->getData('product'); $postDataHelper = $this->helper('Magento\Framework\...
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/...
2
votes
4answers
3k views

Magento 2: Import Script Store Id Related Issue

I'm using Magento 2 CE Version 2.1.3 Magento 2: Save all product data outside Magento with Images Once I imported data from CSV using above script. If put as ->setStoreId(0), then it will add ...
1
vote
1answer
978 views

Import csv issue (product.php on line 1407)

I just install the magento 1.9.2 and try to import my csv file through System -> Import - > Import. I received the following error message: Notice: Undefined index: _attribute_set in /app/code/core/...
0
votes
0answers
9 views

Provide downloadable link on Product Purchase in Magento 2

I have a website in which downloadable products are their on ordering a product i want to provide a downloadable link for that on product order success page. Is there a way to provide that in Magento ...
0
votes
0answers
22 views

Magento 2 - Unable to change category products position

In Magento 2.3.0, I try to change position for category products. In admin, each position is set but in the frontend, nothing changes. Even after clear/flush cache and reindexing. Do you know how ...
2
votes
3answers
2k views

Magento 2: add fields to products collection

Ok so I'm trying to implement a simple export to CSV massaction on the Magento 2 Catalog products grid. I've successfully created the mass action item, as well as the admin controller. I am able to ...
3
votes
3answers
4k views

Magento 2 no Layered Navigation after filter collection

We've added a default filter for our product collection by adding a plugin: <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
2
votes
2answers
549 views

In magento 2.3 I'm not able to remove white space around gallery image on product detail page

I have installed magento 2.3 version, and I'm not able to remove frame from fotoroma image. I have tried to override/extend view.xml from parent theme and tried options like <frame>false</...
1
vote
1answer
1k views

Magento 2: Change Product status OUT OF STOCK Programmatically

I need to change product as out of stock without changing its Quantity. I mean if a product having quantity 5, It will be same but product would be changed to OUT OF STOCK. Is it possible in magento?
6
votes
3answers
3k views

Magento2 : Remove decimal from quantity

How to remove decimal from quantity on Catalog Admin grid of Magento2 (Product/Catalog). I have set Qty Uses Decimals to "No", but the decimals are still there.
0
votes
1answer
410 views

Add a custom block after category products price section in magento2

I would like to add a custom block in category landing page, after the product price section, Iam using the below code but it is adding after the add to cart but i wants to add after price section, ...
2
votes
1answer
2k views

Get Group Product Path(URL) from Single Product ID

Given that I already have the single product id, was it possible to get it's grouped product url that has the certain single product id that I got? For example, I got a single product id of 11 ...
1
vote
0answers
19 views

Configurable Product - Disable and grey out out of stock

I've seen some posts about this but can't get to a conclusion. In a configurable product with dropdown all option appears (in stock and out of stock), what I need is to disable the ones out of stock ...
0
votes
0answers
17 views

Magento 2 want to display both reviews & ratings

I would like to display both reviews & wite a review section can u plz advise. But in M1 anyone can only display but I want to display both.
1
vote
2answers
3k views

How can I check if a product exists in Magento 2 without throwing \Magento\Framework\Exception\NoSuchEntityException?

I'm attempting to scan an incoming list of products and add any new ones to the catalog. Therefore, I must run a check on each product to see if it already exists. I'm using a ...
1
vote
1answer
1k views

How to get product parent category id and category id separatly in magento 2.2.6 using product ID?

Problem definition: I have product under below category: Beauty --> Sun --> my-some-product-name. where 'Beauty' is root category and 'Sun' is the subcategory of 'Beauty'. Currently, I am ...
0
votes
0answers
22 views

anyone know where is the value came from?

Anyone know where this value came from? I have no idea why it is showing... Please help
0
votes
0answers
18 views

Default Add To Wishlist is not appearing in product detail page in magento 2

Move to wishlist option is appearing in cart page but in product detail page Add to wishlist is not appearing. In the backend, it didn't disabled wishlist options but still, it is not displaying in ...

1
2 3 4 5
90