Questions tagged [product]

Denotes a question related to the Magento products.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Magento 2 error - Uncaught TypeError: Cannot read property 'trim' of undefined

Error while clicking on place order button , how to trace this error (in which file ), in order to fix it - Uncaught TypeError: Cannot read property 'trim' of undefined
1
vote
0answers
15 views

Magento 2 create product duplicate Image are Doubled Issues

when saving product with the duplicate in Magento 2 then images are double like, Pics get doubled when duplicating an item, so the duplicated item has two images. If you duplicate that then the new ...
0
votes
1answer
15 views

How to override (vendor/magento/module-gift-card/Model/Plugin) Magento\GiftCard\Model\Plugin\QuoteItem afterConvert() function Magento 2

override a function (vendor/magento/module-gift-card/Model/Plugin) Magento\GiftCard\Model\Plugin\QuoteItem afterConvert() function Magento 2
0
votes
0answers
8 views

Magento2: How can set same sequence of bundle option in summary box?

I want to do same sequence in summary box like all option is showing of bundle product. Please check below screenshot. I have tried to edit in this path but unable to do this. app/code/Mymodue/...
0
votes
2answers
22 views

How to override (vendor/magento/module-gift-card/Model) Magento\GiftCard\Model\AccountGenerator generate() function Magento 2

How to override (vendor/magento/module-gift-card/Model) Magento\GiftCard\Model\AccountGenerator generate() function Magento 2
0
votes
1answer
25 views

Magento2: How to apply two sorting one magento default one and other sort by attributes?

I want to sort my products by attributes : that is working fine but I want to apply two sort together , like sort by name asc and sort by attributes asc also How can I implement this ?.
0
votes
0answers
9 views

Module to Show Shipping rate at product's page only works after add product for the first time

I’m developing a module to show shipping rate at product’s page, I followed this link: https://magento.stackexchange.com/a/299107/85869. [Short question] When I request estimate for the first time it ...
0
votes
0answers
18 views

How to use a SQL query to export all the products?

I'm having issues when exporting all my products via the admin panel, how could I get all the products data via a SQL query using Magento 2.3?
0
votes
1answer
30 views

data patch changes does not affect database

I have created Data Patch, debugged it and everything works as expected, products are removed from the collection but after running setup upgrade changes are not made in the database, what can be ...
0
votes
1answer
36 views

Add Customer Group to Custom Options in Magento 2

I want to add Customer Group dropdown to Custom Options in Magento 2, the idea is to show Custom options based on the Customer Group in frontend. I have a screenshot from my old Magento 1.9 store as ...
0
votes
1answer
26 views

Filter custom attribute in product collection

I have created a custom attribute with name product_deisgn_proof. I want to filter this attribute using product collection in custom template file. When I try to fetch collection of product in an ...
0
votes
0answers
12 views

Removing products from the database using datapatch

I am removing products from the database using datapatch but changes are not made in the database. When debugging, everything works fine. My data patch is: <?php declare(strict_types=1); ...
0
votes
1answer
20 views

Magento 2 - Check if product have custom option required

how I can check in list.phtml if a product have custom options and if Required field is selected?
0
votes
3answers
46 views

Unable to delete product in magento2

I try to delete product but it returns exception can not delete product and sku my code is here $productcollection = $this->collectionFactory->create()->addAttributeToSelect('manufacturer'...
0
votes
0answers
19 views

I have created datapatch to delete products with specific value on attribute manufacturer

I have created datapatch to delete products with specific value on attribute manufacturer. I want to delete all products whose manufacturer is LG , my datapatch looks like that <?php declare(...
0
votes
0answers
16 views

Invalid Form key.Please refresh the page

If I visit my website first time it give me an error of Invalid form key.Please try again lator. It is giving same error while add product in the cart and it directs the page to the Home page in ...
0
votes
0answers
21 views

I am trying to create datapatch but can't delete products

in the attribute Attribute "Manufacturer" we've several entries of the brand "LG", seems it was duplicated over and over during migration or import. I have to drop all instances of "LG" from the ...
0
votes
1answer
19 views

Magento 2 check if product already in compare list

I want to check if products is already in compare list on product listing page and show remove compare button there below is come of my list.phtml Add to compare <a id="compareclick-<?php ...
0
votes
0answers
13 views

Cannot Sort Products by Price when using static block on category page

When defining category the user can display static block, product only or both. I am using a particular template to display the products, I am directing it by using a static block with the following ...
0
votes
0answers
12 views

Magento2 - How to Disable Meta information input data binding When creating a new Product?

When we create a new product in Magento2 from back end, the meta title & keyword will bind the value of the product name, and the meta description will bind the value of the product description &...
0
votes
1answer
17 views

Does enabling category and product flat data will affect performance in Magento 2?

I have huge doubt in flat data feature in Magneto 2. If I enable product and category flat data in Magento 2. Will it affect the website performance heavily ?
0
votes
2answers
33 views

Magento 2 - Load image of group product for simple product

I created a group product which has two simple products. I did not upload an image to the simple product, only to the grouped product. If I add a simple product into the card, then no images loads: ...
1
vote
0answers
21 views

500 error on product duplicate

We are facing issues with Product Duplicate. When we are trying to duplicate the product it gives 500 errors. Internal Server Error The server encountered an internal error or misconfiguration and ...
0
votes
0answers
16 views

Render configurable options of a product in Magento

I have a product which has some configurable options. When I click on the product in it's display page (Which is a separate page created by me. It will be similar to the category product listing page ...
0
votes
1answer
16 views

Magento2 How to resize product images by product id without using resize command

Does any one know how we can resize product image by product id ? i do not want to use resize command,becuase it takes much time
0
votes
1answer
25 views

Magento2 product meta title and description

Use magento2.1 Need to generate meta title and description for my products dynamically, forexample: BASEURL-for your(Static string)-Product title, and for meta description example: static string-...
0
votes
3answers
33 views

How to add Product name on current product page or any page in Magento 2?

I'm using magento 2.3, may i ask how can i made product name on others page. Beacuse i tried this code but not working. Anyone can help? thank you!! <?php echo $_product->getName(); ?>
0
votes
1answer
28 views

Product view back button

I'm using magento 2.3, may i ask how can i made a back button on product view page. Beacuse i tried this code but not working in the product view page. Anyone can help? thank you!! <a class="...
0
votes
0answers
13 views

Update product option

I have two different types of products. Product type B is a simple product with a set of defined subscription plans per context. Product type A is a product with option containing one or many ...
0
votes
2answers
30 views

No element found with ID 'reviews.tab'

I'm facing this issue. Exception #0 (OutOfBoundsException): No element found with ID 'reviews.tab'. Anyone have an idea about this one? 1 exception(s): Exception #0 (OutOfBoundsException): No ...
0
votes
1answer
23 views

Magento 2 - How to disable products by custom attribute value?

In Magento 2, I’m try to disable product by custom attribute value. For exemple if product has attribute "custom_status" = "disabled" then product is no longer available to customers by any path, ...
0
votes
0answers
15 views

Issue while adding image in the custom attrbute

I upgraded Magneto version from 2.2.5 to 2.3.3.Then I created custom product attribute at admin back-end. When I try to Insert Image using text edit it show the error Please tell me how can I fix ...
0
votes
0answers
16 views

how to implement Loader widget in product detail page - Magento2

I want to implement loader widget in product detail page. Show image loader until loaded all js. All help would be much appreciated. Thanks in advance.
0
votes
1answer
36 views

Magento 2 How to Insert sku in product title

run this sql query but nothing happened:: UPDATE `catalog_product_entity_text` as pt LEFT JOIN `catalog_product_entity` as p ON p.`entity_id` = pt.`entity_id` SET pt.`value` = CONCAT(pt.`value`,' (',...
0
votes
1answer
17 views

Magento 2.2.3 How to export products with SKU filter in admin?

Hi, I need to export products with .csv file. But I need to export products with specific SKU. For example, I wanted to export the products which SKU was 60010, 60012 and 45580 I know I should apply ...
0
votes
1answer
35 views

Magento 2 How load product by sku and boot the system minimally?

Me need minimal load system that get ONLY: Product Name, Product Type, Product Url, Thumbnail Url, Price, Sub products for Configurable. Preferably use catalog_product_flat_ table (i think it's good ...
0
votes
2answers
29 views

Magento2 - I want to change image size in gallery.phtml widget

<div class="product-item-info"> <a href="http://127.0.0.1/ekelund1692/test-3.html" class="product-item-photo"> <span class="product-image-container" style="...
1
vote
0answers
25 views

Magento 2: How to get related product custom option using graphQl?

I want to get related products with custom option data using GraphQl. I am using the below GraphQl query to get related product custom options data. can anyone help with this? { products(filter: {...
0
votes
1answer
36 views

Get Customer custom data in product page in Magento2

I have added a custom link in My Account page, In that link I have added custom collection. I Would like to get that custom Collection of specified customer in Product view page. Help me great. ...
0
votes
1answer
20 views

How to enlarge product images displayed through widget( product grid template)

I want to enlarge image size I have inserted it through widget product grid template
0
votes
0answers
12 views

Seller Product Price Problem

I have a problem in my seller's product price. I'm using Magebay Marketplace Module and it saving a wrong price value. Example: input: 1,000 output: 10.00
0
votes
0answers
25 views

Category product showing wrong image

I have a strange problem with my Magento 2.3.4 installation. A product on a category page is showing an image not uploaded for the product. The image shown below belongs to a different product!!! ...
0
votes
0answers
19 views

Magento2.2.3 Display added product qty for each product under add to cart button in category page

I really wanna have the same feature like this. Magento 2 - How to display the quantity of each product in cart under the add to cart button in the product tile But I can't find the correct solution. ...
0
votes
0answers
21 views

Second product image on category page

I'm trying to display second image of a product in a category page on hover. I managed to get images by $_product->getMediaGalleryImages() but I have problems with resizing them to ...
0
votes
0answers
12 views

Products disappearing from Category pages - Tracking down the cause!

I have an unusual problem with a range of items on my Magento store that after a few days, disappear from the category pages. If I go into the back end, disable those specific items and then re-enable ...
0
votes
0answers
8 views

Edit Product Loads Half Way Down the Page

I have this strange issue where every time I edit a product, when the page loads it jumps half way down the page to where the product description is. Then I have to scroll back up to the top. I will ...
0
votes
1answer
30 views

I want to get images form product gallery of a product and display them one by one in Product detail page

This is the gallery.phtml code which is displaying main thumbnail image only <?php $images = $block->getGalleryImages()->getItems(); $mainImage = current(array_filter($images, function (...
0
votes
0answers
14 views

How to link image which is present in magento ftp to product?

I have following image saved in magento 2 ftp: https://www.moebel-guenstig24.de/pub/media/catalog/product/moebel/10-51-WW-20/1/kommode-mahattan-sideboard-kombikommode-esszimmer-wohnzimmer-...
0
votes
1answer
30 views

Magento 2: Show Category name below product name in the product page

I want to show Category name below the product name here is the code: <div class="block widget block-products-list <?= /* @noEscape */ $mode ?>"> <?php if ($block->getTitle()) :...
0
votes
1answer
21 views

Magento:2 I want to display product image in 1 column vertically instead of using default Fortorama.js. I want to remove slider

I am facing this issue ..I don't want to display product images in default slider which is coming from fotorama.js I want them to displayed as one by one without slider What should I do $...

1
2 3 4 5
90