Questions tagged [product-detail-page]

Denotes question regarding Magento Product detail page.

Filter by
Sorted by
Tagged with
1 vote
1 answer
31 views

Magento 2.3 - Set max compare products to 2

I want to set the limit for the products to compare max 2 product. I tried to create this module: https://magento.stackexchange.com/a/159543/16894 But it seems that this does not work with Magento 2.3....
  • 25
0 votes
1 answer
113 views

Clicking on color swatch, images are not loading on product listing page in magento 2.3.5

I have added color swatches for my Configurable products. On product detail page when we click on color swatches the product images not changed properly as per color.so please fix this. Thanks in ...
0 votes
0 answers
26 views

Reset dependent swatches options if change first swatch(color) option magento 2 product page

There are 4 attributes are used as swatches color, height, width, weight Color swatch's first option is selected by default and other options from other swatches are selected by the user. After ...
  • 2,005
0 votes
0 answers
139 views

Get selected Attributes / Options with JS in the PDP of a configurable product

I’m new in Magento2 and I’ve got a very specific use case where I need to get the selected values of the attributes of a configurable product on the front end side with JavaScript. Currently, In the ...
0 votes
0 answers
114 views

Display Out of Stock product only Grouped Product

I have to show Out of Stock child product only in Grouped Product on Product Detail Page. Without using store Configuration setting. Stores → Configuration → Catalog → Inventory → Stock Options → ...
  • 1
0 votes
3 answers
139 views

Custom Tab not displaying on product page in magento2

I need to show a custom tab after the Review tab on the product detail page. I am using Magento 2.4.3. Below is my code [vendor]/[Module]/view/frontend/layout/catalog_product_view.xml <?xml version=...
0 votes
1 answer
293 views

Magento 2: Change product template based on the category

We have multiple categories and each category has it's own products(mostly simple products). The products in each category has different UI design for product view page / product details page. I know ...
0 votes
1 answer
125 views

Magento 2.3 - How to hide empty attribute and it's label if there is no data

Could someone help me i want to hide the attribute if its have empty vale on product details page. Example <?php // START FABRIC ATTRIBUTE $attributeName = $_product->getResource()->...
0 votes
2 answers
292 views

I want to add product description image in product detail page but don't know how. Can you help me?

I want to add product description image in product detail page but don't know how. Can you help me? It looks like this: Thank you!!!
0 votes
1 answer
715 views

Magento2: How to show multiselect product attribute lable on product detail page

I am using magento2.3.x I have created a dropdown attribute(product attribute) from admin. now I have showing this attribute on product page using below code:- file path:- app/design/frontend/Vendor/...
0 votes
1 answer
404 views

How to redirect Product Detail page to Home Page or 404 in Magento 2?

How to redirect Product Detail Page to 404 or Home Page in Magento 2.4. I don't want user to see product detail page in my store. Any help is appreciated. Thanks.
  • 586
0 votes
0 answers
142 views

Magento 2.4.1 If shopping cart is not empty place a Go To Shopping Cart button next to Add To Cart on Product Detail page

When the shopping cart is NOT empty, I want a button next to the Add To Cart button on the product detail page and have it go to the Shopping Cart File using to override is: /app/design/frontend/THEME/...
0 votes
0 answers
28 views

product details page still have product gallery issue image are not showing sometime in magento 2.4

Now i added image back-end but still have product gallery issue image are not showing sometime in product details page magento 2.4
1 vote
2 answers
434 views

How to move Wish List next to Qty input box in product detail page?

I want to move ADD TO WISH LIST next to QTY Input box in product details page. Guide me how to achieve this
0 votes
3 answers
238 views

How to add custom tab in product details page in magento 2.4.0

how to add a new custom tab in the product detail page in magento2 Magento_Catalog/layout/catalog_product_view.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
0 votes
2 answers
35 views

Using a new attribute as product description

Using Magento 2.3.2. We currently sell through our website, and Amazon and Ebay via the M2E Pro extension. Our current product description is used for the website and Ebay, and the short description ...
2 votes
3 answers
805 views

Magento2.3 : Pagination - jump to top of pagination at PLP page

I have a problem with Buttons in Pagination. If the user clicks the button, it reloads the page with loader and settles down at the current page scroll position. Is there any method to forcefully load ...
0 votes
0 answers
66 views

Magento 2 Video's not showing with images on product detail page when enable zoom for product

Video Not showing on product detail page when enabling zoom option from amasty color swatches please help for this.
0 votes
1 answer
43 views

Using third party template file on product detail page magento 2

Hello, I have installed FAQ module from github https://github.com/php-cuong/magento2-faqs-extensions. I want to show the faq/view.phtml template file on product details page over here https://prnt.sc/...
  • 720
1 vote
2 answers
478 views

Magento 2.3.1 product detail page is very slow

The TTFB is on 29 seconds and its taking 55+ seconds to load the product detail page. We have varnish cache enabled, product mode enabled, JS and CSS minified already and expiry headers and other ...
1 vote
2 answers
120 views

magento 2.3 now showing category and subcategory in breadcrum on prodcut detail page

my product details page has url structure like url > cat > sub cat > product name but in breadcrumb i see only home > product name i want to show category and sub category also breadcrum.phtml &...
0 votes
1 answer
1k views

Magento\Framework\Config\Dom\ValidationException: Element 'argument': Duplicate key-sequence

I have an error when the developer-mode is active. The Exception is thrown out when entering any product detail page. I am running Magento 2.3.4. could you please help in finding a solution 1 ...
  • 39
0 votes
1 answer
227 views

How to hide custom button in product details page by particular category in magento 2

How to hide custom button in product details page by particular category in magento 2 In magento 2, custom button will be hidden for each product from the selected categories in admin. I want to ...
  • 1,421
0 votes
2 answers
1k views

How to get product category Id on product detail page Magento 2?

I have a product which have assigned into more than 5 categories. I want to show the category detail of that product on product detail page. But which category detail I need to show? I want to show ...
  • 2,005
0 votes
2 answers
536 views

Magento 2.3 improve detail, product description, with others attributes

I would like to edit the details tab with the description and also include the product attributes under details in order to make them immediately visible without having to change the tab, as in the ...
  • 317
1 vote
2 answers
186 views

How to show price in simple product on product view page?

I remove price from product view page using below line of code <referenceBlock name="product.info.price" remove="true" /> This is working perfectly.but i need to show price in only simple ...
3 votes
1 answer
1k views

Magento 2 Product detail page tab not working

I have facing one issue some time in a site that in product detail page description, more information tabs are not working and it will generate an error in console. Here is console log error jquery....
0 votes
0 answers
88 views

How can I move quantity box after product title in magento 2.3?

I want to move quantity box after product title without moving add to cart button on product detailed page. I have tried to move quantity box using jQuery but after that always single quantity (...
  • 2,005
0 votes
1 answer
782 views

Magento2.3.1 How to product detail page custom image gallery popup display?

I have to used Magento2.3.1 and in detail page i need to product image click after display popup image look like this type.if anyone idea how to achieved this by default magento. below share link Go ...
  • 1,607
0 votes
0 answers
45 views

Magento2.3: Product detail page is not working

I have tried installing the social share extension but getting the below error when I try to open the product detail page. 1 exception(s): Exception #0 (Magento\Framework\Config\Dom\...
1 vote
2 answers
1k views

Product Details Page is blank Magento 2.3.2

Fatal error: Uncaught Error: Call to a member function getDefaultPlaceholderUrl() on null in /var/www/html/vendor/magento/module-catalog/view/frontend/templates/product/view/gallery.phtml:29 Stack ...
0 votes
1 answer
50 views

How to disable the categories sidebar in the product detail page in Magento 2?

Is there an option in the admin area of Magento 2, to disable the sidebar on the left with the list of categories in the product detail page of the frontstore?
  • 176
1 vote
1 answer
91 views

product image in png format showing black background on product detail page

I have uploaded a ".png" format image for a product at backend and it shows black background at detail page at front. I want to show it as it is with png format and with no background. I have tried ...
1 vote
0 answers
32 views

How to get all attributes of a product which Start with 'wdb_' in Magento 2?

I want to get all attributes of a product which start with "wdb_" in custom tab. For this, I am getting each attribute manually. For example: wdb_carat, wdb_info, wdb_clarity etc... My Code is: ...
0 votes
1 answer
291 views

Magento2: Add Custom table next to Product attribute in Product Detail Page

How to add Custom table next to product attribute in a product detail page
0 votes
0 answers
676 views

Magento 2.3 color swatches with related products & upsell products?

I have added color swatches with related products using this code: <?php if($_item->getTypeId() == \Magento\ConfigurableProduct\Model\Product\Type\Configurable::TYPE_CODE){ $...
1 vote
0 answers
161 views

Magneto2.3.1 How to customize checkbox with compare link display on product detail page

I am using Magneto2.3.1 and i need to customize the default magento compare link on detail page. I want to show checkbox with compare label and if i checked than product compare successfully and if ...
  • 1,607
0 votes
3 answers
570 views

Magento 2 Product Images Not Showing in detail page

http://madressingroom.com/black-and-white-varsity-jacket-10.html Here is a link I have spent more than 1 week on it, please help me to get the solution. It's a Magento Molly Theme. Js file, not L ...
1 vote
2 answers
2k views

Magento 2 how to restrict previous date in datepicker , for frontend detail page custom options

In Magento 2 how to restrict previous dates in datepicker ,in detail page customizable options, Please help me out on this .
1 vote
2 answers
6k views

how to customize product price display in product page magento 2

hi I want to customize the price display in product details page Magento 2 where I can customize the codes (path) my goal: 1) I want to add a label near the First price . 2) How I ...
  • 1,057
1 vote
0 answers
401 views

Magento2: How to fix add to cart not showing in product details page

When I click on product details page not showing add to cart But when I search in inspector it's there but not showing on site console error: Error: Missing required parameters: site key How ...
  • 1,057
0 votes
4 answers
538 views

Magento2 : Display Review Form any where in Product Detail Page

How to display Review form in any where in product page using new .phtml file?
1 vote
3 answers
1k views

How to move the "IN STOCK" above Add to cart button

How to move the Stock availability (In Stock) next to the Quantity button.
2 votes
1 answer
2k views

How to get the Unit of measure label of product attributes like weight,Length etc in product detail page?

How to get the Unit of measure label of product attributes like weight,Length etc in product detail page?
  • 2,651
2 votes
2 answers
1k views

How can pass product id from Product\Form\Modifier to UiComponent DataProvider in Admin PRODUCT DETAIL

This is Tab "Staff Manager" have display but can't receive Product Id view/adminhtml/ui_component /staff_listing.xml <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
  • 31
1 vote
1 answer
860 views

How can i remove product gallery " fotorama__stage" class height?

I am facing issue of image height on product details page gallery. If i remove fotorama__stage class height from inspect element then its work fine. Please check below image. How can i remove ...
5 votes
3 answers
3k views

TypeError: settings.$elementF.fotorama is not a function

I am facing issue of TypeError: settings.$elementF.fotorama is not a function sometime on product details page. This question is duplicate of : Adding to cart breaks fotorama on page reload , Magento ...
1 vote
2 answers
1k views

Magento2.1.9 : Out of stock product Backorder not working?

I have to used Magento2.1.9 when I add out of stock product to cart it is not working and am getting error as this product out of stock I need backorder working properly for out of stock product and I ...
  • 1,607
-1 votes
1 answer
1k views

Warning: strpos() expects parameter 1 to be string, array given in vendor/magento/module-eav/Model/Entity/Attribute/Source/Table.php on line 157

1 exception(s): Exception #0 (Exception): Warning: strpos() expects parameter 1 to be string, array given in /home/equpo/public_html/demo/vendor/magento/module-eav/Model/Entity/Attribute/Source/Table....
  • 1,057
1 vote
1 answer
212 views

different template files for product detail page of simple and grouped product types. - Magento 2.2.x

I have 2 types of product in my website. 1) simple products and 2) grouped products i wanted different design for both this types of product types. so how can i have different template file for ...