Questions tagged [product-view]

Denotes questions related to the product view page of Magento.

Filter by
Sorted by
Tagged with
2
votes
3answers
315 views

How to customize a product details page in magento2?

In magento 2 how to customize a product detail page in custom theme. app/design/frontend/companyname/themename/Magento_Catalog/layout/catalog_product_view.xml <?xml version="1.0" ...
2
votes
3answers
2k views

Magento 2 : Move “catalog.product.related” block in product view

I'm modifying the layout of the product view. I'm trying to move and edit the product related block "catalog.product.related". In my catalog_product_view.xml I have : <referenceContainer name="...
0
votes
0answers
27 views

Magento 2: PDP page throws Exception #0 (OutOfBoundsException): No element found with ID 'releases'

While opening Product detail Page, throws below exception: Exception #0 (OutOfBoundsException): No element found with ID 'releases'. Please provide me a solution in Magento 2
0
votes
1answer
60 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 ...
3
votes
1answer
780 views

Reviews not showing up on Product View (after upgrade from Magento 2.1.3 to 2.2.3)

After upgrading Magento from 2.1.3 to 2.2.3 my reviews are not showing up on the Frontend > Product View > Reviews Tab. The following container is empty (I assume the reviews should be supposed to ...
0
votes
1answer
1k views

Add custom product attribute to URL product view

I have created an EAV entity (that represents the brand) which can be associated to a product as an attribute. Now, I would like to add the name of the brand to the product view URL. I would like ...
1
vote
1answer
863 views

Magento 2.2.5 - Unsupported image format on product detail page

I am using Magento v2.2.5 and I am getting error on product detail page. 1 exception(s): Exception #0 (Exception): Unsupported image format. Exception #0 (Exception): Unsupported image format. #0 /...
0
votes
2answers
2k views

Magento 2 Change order of Tabs on product page

I have added catalog_product_view.xml in the location app/code/design/frontend/kh/custom/Magento_Catalog/layout Set the priority for the tabs for the product detail page, but its is not working ...
9
votes
1answer
635 views

Magento 2 Product video is not displaying in front end with TypeError: window[this.configSource] is undefined

I have successfully uploaded/configured Youtube video for a particular product but the video is not showing on the front-end, even though I marked the video as the 'base,' 'small' and 'thumbnail'. I ...
0
votes
2answers
26 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-&...
14
votes
2answers
45k views

call static block in view.phtml insted of phtml file

we are displaying text field in view page to check COD availability. view.phtml echo $this->getLayout()->createBlock('core/template')->setTemplate('checkdelivery/checkdelivery.phtml')->...
3
votes
1answer
2k views

Magento 2 product review & rating

In Magento 2 product view page I want to do following things... Check if product has 0 or more rating. Get an average rating of product rating wise For e.g. Price : 2.5/5.0 Quality : 4.5/ 5.0 ...
0
votes
1answer
655 views

Magento 2 - how to set final price for product on view page

Magento frontend product view page i need to set custom final price, how to set? I tried Magento\Catalog\Model\Product\Type\Price.php in this file getFinalprice function but not working with plugin ...
2
votes
1answer
631 views

How to format the page title of a product view page?

Currently I'm doing some work on a Magento shop (1.8) and one of the problems the site has is that the SEO and page titles are very poor. So far I've managed to change all of the page titles and meta ...
0
votes
1answer
600 views

Custom option of product not display in product view page?

I am using magento 1.9.2.4. version. I added some custom option for my test product. Please check this screen short But it's not showing in product view page I also use this code in view.phtml $...
0
votes
1answer
655 views

Detail page - Display configurable product's thumbnail images even when an option is selected!

So let's say I have a configurable product having an option of colour with 2 values: Black, White. I want to make the thumbnail images of the parent product stay, even when I select any colour. Here ...
0
votes
0answers
15 views

Ajax call on product view page and that ajax calls on page load in magenro 2

I have different ajax call on product view page and that ajax calls on page load. when I try to do add to cart it waits for that ajax calls to be completed first before process the add to cart. so ...
0
votes
0answers
22 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 ($...
0
votes
1answer
45 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.
0
votes
1answer
29 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 ...
1
vote
0answers
34 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: ...
0
votes
2answers
105 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, ...
2
votes
3answers
72 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 = ...
0
votes
2answers
83 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.
0
votes
2answers
1k views

Magento 2 Blank Screen Product Detail page

I added one product from Magento admin panel (Magento 2.2.2) Cleared cache and indexing, Product appears in search and listing page and you can even add to cart from Listing page. But when you click ...
0
votes
3answers
840 views

magento 1.9x layout setting - single product page

especially magento geeks, I need a lil help. how can I move in stock, price, color switcher & add to cart option above description, tags & custom tap? <?php $_helper = $this->...
0
votes
1answer
24 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 ...
3
votes
3answers
994 views

In magento 2 How to customize a sidebar additional in product details page?

In custom theme how to customize a sidebar by our requirement in product detail page. please refer the screen shot
3
votes
2answers
798 views
0
votes
0answers
8 views

Different image on Visual Image Swatch for every product variation

How Can I set different image visual swatch for every product variation? For example, I got 2 products with a different variation, but I want their variations with a different image, like in this link ...
0
votes
2answers
6k views

Get order Details from Magento 2 Observer

I am trying to build a Magento 2 Order Observer in which I am trying to get the Product Details such as Product ID, Product Name, Product SKU, Product Quantity and Customer Details such as Customer ID,...
0
votes
0answers
10 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 ...
0
votes
0answers
9 views

Magento2.3 I am using AMP validatore tools in getting error on product side

I am using AMP Validator tools login after getting product side some warning errors showing so please if anyone know this type of please reply me. In AMP validator warning display here
0
votes
1answer
903 views

images loading too slow on product page

i am using the porto theme and images are loading slow even when they are small in size and the server is very fast. it happens in the product page.. what's the cause of this? is that related to the ...
0
votes
2answers
884 views

Magento 1.9.3 additional information under details

On the product view page the additional information is next the details. (tabs) I want the additional information under the details. So: Details Additional information Review
0
votes
4answers
15 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 ...
2
votes
2answers
317 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\...
4
votes
3answers
113 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
0
votes
1answer
270 views

view custom message in product page by category id

How do I display a message (ex. AVAILABLE IN 30 DAY) in product page only for a specific category id (98, 100 and 101)? I've created <?php if($_product->isSaleable()): ?> <div class="...
2
votes
6answers
3k views

Call to a member function getName() on a non-object product view page

I have the following code on my product view page, calling the product's containing category title : <div class="page-title category-title"> <h1><?php echo $_category->...
0
votes
0answers
44 views

How to move my custom container after add to cart button in magento 2

How to move custom container (product.info.extrahint) after add to cart button in product detail page in magento 2 catalog_product_view.xml <referenceContainer name="content"> <...
0
votes
1answer
190 views

Adding a custom attribute in product detail page in magento

I want to add a custom "text_area" attribute after the short description in products page attribute_id : 1109, attribute_code : rerestock so I put the code in view.phtml <div class="rerestock"&...
1
vote
1answer
119 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. ...
0
votes
1answer
571 views

Price & Price as Configured Displaying as 0.00 on Bundle Product - Custom Theme

I'm working on a Magento site where I had zero involvement with its theme and honestly have no idea who even made it (the clients are not helpful). Anyways, I'm setting up Bundle Products and both ...
0
votes
1answer
38 views

Magento 2.2.6 how to develope loggedin customer only show price in website

I am using Magento 2.2.6 I need to customize and if any plugin available for logged-in customer show only price not show for guest user in Magento website. if anyone idea reply me. I have try to one ...
2
votes
1answer
462 views

Magento 2 product detail page detail tab vertical

I want to make product detail tab vertical instead of horizontal.
3
votes
1answer
806 views

Magento 2 want to add itemprop=“image” tag in image field

I want to add itemprop="image" to main image on product page. How can I achieve this.
2
votes
3answers
2k views

Display product video in product description tab

I am using magento 2.0.7 and I want to display the product video/image and product description (in product description tab) in view page.
3
votes
2answers
379 views

Hide Tabs on product details page for specific product Magento2

I have a specific type of product. And I want to hide the Tabs on product details page for that product specifically. Is it possible and what is the best way to do that.
2
votes
1answer
267 views

How to add a remove link on product detail page, if it's already added on wishlist in magento2?

I want to add wishlist remove link if product is already on wishlist in Magento2. I have tried but it's not working when fullpage_cache is On 1. 2. 3.