Skip to main content

Questions tagged [product-view]

Denotes questions related to the product view page of Magento.

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

Magento 2 : Provide Name Attribute in Customizable Option of Product

I am implementing a functionality where each product have different input field in frontend where user can input value as per their requirement. It has multi step form in frontend, second step have ...
Ajay Tiwari's user avatar
0 votes
1 answer
159 views

Facing an issue in PDP page in content in Magento 2

I am getting the below error in console in Magento 2 for js and also due to that my details and review tabs overlap with each other. Can anyone knows how to debug this js.
Mitul Vadalia's user avatar
1 vote
1 answer
139 views

CSS put in block not reflecting in magento 2

in magento 2.3.5p2 In Admin Panel Content > Elements > Blocks a Block has been created to showcase a list of products for promotion The content of the block is as below <img src="{{media ...
Mohd Farhan Bin Ramli's user avatar
1 vote
1 answer
228 views

I have added a custom attribute in PDP page, I want to get that value in Observer/SaveToQuote.php to save in the quote table

I have added a custom attribute in PDP page, I want to get that value in Observer/SaveToQuote.php to save in the quote table after the product is added to cart. I am using the event ...
Mohmad Ashik M A's user avatar
2 votes
2 answers
496 views

show a pop up alert when product is out of stock

When a product is out of stock, customers will see a pop-up with a message to inform them that the product is no longer available. How can i do that. please help !!
Bayzel's user avatar
  • 187
0 votes
1 answer
24 views

Add RelatedProducts by Category

I added related products by Catalog->products->select product->addrelated/crosssell..products. But I want add related products by category. How to do?
Alshihab's user avatar
  • 171
0 votes
2 answers
854 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!!!
Simon098's user avatar
0 votes
0 answers
87 views

Accordion tabs not opening by default on configurable product

I changed product details from tab to accordion. I want all of the tabs to be open by default. This works on simple products, but doesn't work on configurable products. I've been editing the details....
web master's user avatar
1 vote
0 answers
159 views

Magento 2 - Product View Report Count

How does Magento2 count the views of products in the Product Views Report, is it by browser session or per account (login in different accounts using the same browser, each account counts as 1)? If by ...
main525's user avatar
  • 11
1 vote
1 answer
413 views

Custom Product View Based on Attribute Set Name

I am trying to create a different product view based on the Attribute Set Name (not ID, or specific attribute value). I've looked at a couple different tickets here already, and have tried to ...
cjochum's user avatar
  • 141
0 votes
1 answer
58 views

Magento 2 - Custom page layout destroys view

I added a new page layout which inherits from the page layout 1column: THEME\Magento_Theme\layouts.xml <?xml version="1.0"?> <layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Black's user avatar
  • 3,431
2 votes
1 answer
2k views

Magento 2: Videos not working in Product gallery

Video at product gallery inside product detail page is not working, However, it is working from admin panel but on product view it is showing only video thumbnail. Video is not playing while clicking ...
Nikul's user avatar
  • 1,306
0 votes
0 answers
220 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/...
ComputerGiant's user avatar
1 vote
0 answers
214 views

Product view page: Error on Display Product Images per Selected color

Beginner on Magento 2, i'm creating a Product view Page, and i'm having Problems to DISPLAY the Product Images, i just want to Display the images of the SELECTED COLOR, but it ONLY SHOWS the ...
Rafael Fagundes's user avatar
0 votes
1 answer
1k views

Make product data tabs collapsed by default

I want all product data tabs on the product details page to be collapsed by default. I edited this line in app/design/frontend/<Namespace>/<theme>/Magento_Catalog/templates/product/view/...
Chaz's user avatar
  • 267
0 votes
0 answers
273 views

Why can't product weight be displayed on a category page while other attributes can?

I'm trying to display the product weight inside the category pages next to the price. I can display product name, price, id, url, etc, but not weight! To achieve this I overrode final_price.phtml and ...
DevOnStack's user avatar
1 vote
3 answers
1k views

Get Variable Values in View.xml

I am trying to create a custom module with a block that should get the values of variables in view.xml. How can I do this?
Ricky Aldea's user avatar
0 votes
2 answers
38 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 ...
user355218's user avatar
0 votes
1 answer
141 views

Height option not working on var gallery in view.xml

I tried adding <var name="height">530</var> inside <var name="gallery"></var> as this is the parameter to add height in fotorama as per the documentation ...
Ricky Aldea's user avatar
1 vote
1 answer
441 views

Magento 2.3.4 Open tab on button click

I'd like to create, on the product page, a button that leads to a specific tab with id = "exampleid"like "Be the first to review this product". The phtml file is this: <?php // @...
Donato P's user avatar
0 votes
1 answer
36 views

need a category url in product view page

I have a product bag in home->products->men->handbag category path .I want hangbag category url in product detail page
Jothi Subramanian's user avatar
0 votes
0 answers
380 views

How to change product image size on category product view for a specific product only?

I am trying to change the image size for a specific product only without affecting other products, how do I achieve this?
Janfred Magnaye's user avatar
1 vote
1 answer
292 views

Remove the image slider in product detail page

I want to to remove the slider in images What I want it to be like :
Anonymous Record's user avatar
0 votes
1 answer
516 views

Image sizes in detail page size is too small Magento2?

I met one strange issue in Magento 2 - Product Detail page my product image display too small.I tried using view.xml inside my theme and tried using fallback view.xml.I'm using Blank theme as parent. ...
Aesha's user avatar
  • 11
0 votes
1 answer
415 views

Changing Title of Crossell's and Gaps Products Block

I implemented the extension development from Crosssell Products on Product Page with Magento 2 on Magento 2.2.0. It is currently running, but there are several modifications needed. The gap between ...
Marbonka's user avatar
1 vote
0 answers
108 views

Lazy load at the product reviews section in magento 2

I need to add lazy load feature on the product reviews tab instead of pagination if my product has more than 10 reviews. Thanks in advance.
Sathish Kumar P's user avatar
2 votes
0 answers
1k views

Fotorama thumbnail gallery is not smoothly scroll Mobile view in magento 2

I have change code in given path Themes\Yourtheme\etc\view.xml Replace: <var name="nav">thumbs</var> To: <var name="nav">dots</var> After cache clean ...
MageCurious's user avatar
  • 2,886
0 votes
1 answer
404 views

How to call displayProductStockStatus() method from a custom block?

in catalog_product_view.xml of my theme I have a block like this `<block class="Magento\Catalog\Block\Product\View" name="extra.product.info" template="product/view/extra-product-info.phtml" after=...
Max's user avatar
  • 176
2 votes
1 answer
896 views

How to access a variable declared in a phtml from another phtml?

I have inserted two blocks in the catalog_product_view.xml file: <block class="Magento\Catalog\Block\Product\View" name="product.info.custom-product-attributes" template="product/view/custom-...
Max's user avatar
  • 176
1 vote
3 answers
2k views

Product View Page Header and Footer part is not Showing In Magento 2

On the website, home page header and footer showing but product page not showing header and footer part. How to fix it?
Biswanath Prasad Singh's user avatar
1 vote
1 answer
540 views

How to add SKU in the attribute list in the More Information tab of the product view page?

I have added the following code to catalog_product_view.xml to show the SKU in the list of attributes inside the "More information" tab <referenceBlock name="product.info.details"> <...
Max's user avatar
  • 176
1 vote
1 answer
3k views

How to add a custom attribute to a product view in Magento 2?

I created the attribute with code "supplier" in my admin area, besides, I saved the file "mycustomblock.phtml" in "/app/design/frontend/{MyThemeName}/default/etc/Magento_Catalog/templates/product/...
Max's user avatar
  • 176
2 votes
1 answer
122 views

How do I add "Pay as little as $/month" on product view page based on the final price?

I would like to display what the monthly payments would be for our monthly payment option, based on the final price of the product (including configurable products). Here is a screenshot of something ...
WhoWhatWhenWhereWhyHow's user avatar
0 votes
2 answers
155 views

product detail page - move block to primary product container

I would like to move the static block (a custom block from infortis ultimo theme) block_product_secondary_bottom to the container_product_primary_1 container after product.info.price. How do I do that?...
Mage Explorer's user avatar
2 votes
1 answer
434 views

Add a 2 character prefix to the SKU on the product detail page

I've been trying without success to prepend the the SKU on the product detail page with 2 characters - R9. I've already added some customisations to the page using a catalog_product_view.xml but I ...
Mark's user avatar
  • 23
1 vote
0 answers
992 views

Magento 2: Add To Cart button

In magento 2 i have tried moving add to cart button on product view page its moving along with swatches, now if i move back swatches to default place then my add to cart button is not working can any ...
Hardik Radadiya's user avatar
0 votes
2 answers
701 views

product view count table in database magento 2?

I have to write code for getting product count.it is working fine but i want to know where the count record comes? public function getProductCount($id) { $prodData = $this->_prodCollection-&...
usman's user avatar
  • 465
0 votes
0 answers
102 views

M2 - Get attribute group name

With the code below I can load all the attributes from a specific group, in this case attribute group with id: 37 <?php $av_attribute_group = $_product->getAttributes(37); foreach ($...
n00bly's user avatar
  • 623
0 votes
1 answer
299 views

Magento 2 increase product views count

In Magento 2.3 how to programmatically increase product views count?. I need it to increase the product views count when the product is viewed on an mobile app.
rajasaravanan28's user avatar
0 votes
1 answer
210 views

M2 - Get all attributes from attribute group

I have an attribute set for example "Camera" in that set, we have multiple groups like; General, Recording, Storage, Monitoring etc... All those groups have attributes which are specifications from ...
n00bly's user avatar
  • 623
1 vote
0 answers
39 views

product options variation

I am looking to present custom-options as a link to another product. Maybe someone will be able to tell me, or maybe there is an existing module/tutorial that will help me implement this. Example: ...
Влад Вечор's user avatar
0 votes
2 answers
713 views

Magento 2.3 - Get product detail by Id

This is my page(My_history) From this page, I want to display detail of each product by each id when I click on link View order, not just one Id is array example, I had researched in the folder, ...
Kite Hany's user avatar
  • 235
2 votes
3 answers
150 views

What are other possible functions i can access

I created placed custom html in Magento_Catalog>template>product>view>details.phtml file in Magento_Catalog module and added below code to get current product ID and name $objectManager = ...
rakcode's user avatar
  • 123
1 vote
3 answers
2k 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.
Srinivasan Lakshmanan's user avatar
0 votes
1 answer
657 views

Grouped Product getAssociatedProducts() is not working in attributes tab template

In the main view template for my grouped products, grouped.phtml, I have had no problems fetching the associated products and displaying some attributes in a loop. I have done the same thing in a ...
iphigenie's user avatar
  • 1,769
0 votes
0 answers
24 views

show certain products in a category on home page in magento 2

I added a widget on a homepage and selected a categories from a drop down to include some items from a category (73)- I have 5 items to show up. I am not sure why but it only displays the 5 oldest ...
roger's user avatar
  • 551
0 votes
4 answers
521 views

How to set qty number to add to cart on product page

How to set certain number when the product page loads up. Default level when you click on a product the add to basket quarry is always one how to change that to different value for each store. I know ...
Jack Brooks's user avatar
4 votes
3 answers
1k views

How to Find out where it Is made Breadcrumb Array in Magento 2.3.1

where it Is made Breadcrumb Array in Magento 2.3.1? In Detail page has show Breadcrumb but i m not able to find where it Is made Breadcrumb Array Can somebody help me? Thanks
Savan Patel's user avatar
  • 2,414
2 votes
2 answers
2k views

cant override a addtocart.phtml file in custom module in magento 2

How to replace a custom text (from backend) for add to cart button and stock availability in product view page in my custom module magento 2 Updated app\code\Cm\Preorder\view\frontend\layout\...
Divya Sekar's user avatar
  • 1,295
1 vote
1 answer
1k views

I wish to add the new div in PDP page after price section in mageno 2

I have added custom div in /var/www/html/pot/app/design/frontend/pot_customization/Magento_Catalog/templates/product/price/amount/default.phtml. The div displays for all the products and works fine. ...
Jaisa's user avatar
  • 2,636

1
2 3 4 5
9