Questions tagged [product-view]

Denotes questions related to the product view page of Magento.

Filter by
Sorted by
Tagged with
1
vote
0answers
28 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.
1
vote
0answers
39 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 and check-in ...
0
votes
1answer
23 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=...
2
votes
1answer
28 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-...
1
vote
3answers
49 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?
1
vote
1answer
25 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"> <...
1
vote
1answer
38 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/...
2
votes
1answer
42 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 ...
0
votes
0answers
10 views

Magento 2 admin 2-column product details layout

Currently the backend product details view looks like this (v2.3.2): Is it somehow possible to change it, so that the "groups" like "Content", "Images and Videos", "Product Reviews", etc. are ...
0
votes
2answers
34 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?...
0
votes
0answers
8 views

Add product price for configurable product

This is my catalog_product_view <?xml version="1.0"?> <page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
0
votes
0answers
18 views

Show search results from specific “FORM” in custom view.phtml template (view_custom.phtml)

In magento1 - I have this form on my web site: <form method="post" action="https://www.websitetest.com/tonersearch/index/search/" location=" " class=""> <div class="amfinder-vertical" id="...
2
votes
1answer
25 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 ...
1
vote
1answer
87 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 ...
0
votes
2answers
47 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-&...
0
votes
0answers
18 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
27 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
55 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
32 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
172 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
74 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
149 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
1answer
45 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 ...
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
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
10 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
4answers
21 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 ...
4
votes
3answers
229 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
2
votes
2answers
517 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\...
0
votes
0answers
40 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
0answers
51 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"> <...
1
vote
1answer
197 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
44 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 ...
0
votes
1answer
38 views

While opening PDP page throws exception in magento 2

I have imported product options in magento 2 But It throws following error, Please provide me a solution 1 exception(s): Exception #0 (Exception): Warning: Invalid argument supplied for foreach() ...
0
votes
1answer
244 views

Product Page 404 error, after moving website

I have created a testing version of my website, in the same server, but using a different domain name. Frontend and backend works ok, but product pages redirect to 404 page error I have tried: ...
1
vote
1answer
27 views

Disable the Sidebar on Product View Page

I’m using Porto 3.1.6 for Magento 2.3. In the product view page on mobile, there is a sidebar that is shown when pressing an arrow on the right. Please see the attached images to see what I am ...
0
votes
1answer
37 views

Specific view page for products (product info) from specific category in Magento 1.9

We devided all the products into two categories: "Main products" "Accessories" All listed products from the category "Main products" are opened with our custom template: catalog/product/...
0
votes
0answers
52 views

Magento 2.2.7 - Issue With Configurable Product Details Page having more than 20 associated products - MageMojo, Nginx

We are receiving this error on opening a configurable product in the frontend. The configurable product having 20+ associated products. The issue is not there with other products having less number of ...
1
vote
1answer
487 views

How to move sku in price block in product detail page and how to move title in magento 2

How to move SKU in price block in product detail page in Magento 2 screenshot i was tried with below code <move element="product.info.sku" destination="product.price.tier" after="-"/> and ...
3
votes
3answers
2k 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
2
votes
3answers
823 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" ...
0
votes
0answers
112 views

Why blank space appear in body layout in magento 2?

Blank space shows top a product details page, Please someone help to how to recover it. Update: I realized i had a mistake in below file vendor/magento/module-catalog/view/frontend/templates/...
1
vote
2answers
460 views

Magento 2 add custom static block on product detailed page next o addtocart button

I am working with the Magento2, in that, I like to add a custom block on product detailed page, next to add to cart button. for that, i wrote the below code on catalog_product_view.xml <body&...
0
votes
0answers
16 views

Product Details Page Displaying Blank Invalide Cache Type magento 2

main.DEBUG: cache_invalidate: {"method":"GET","url":"url/admin/cache/index/key/7f0570c5083f7252e95eddbf527ae6fbcd46363a1d0870ba82442c817dc83ab4/","invalidateInfo":{"tags":["interception","CONFIG"],"...
0
votes
0answers
20 views

How to display product view on another page in Magento 2.3.0

I need to display a full product view just like you see when you click on a product thumbnail, but I want to be able to show it on a different page that already has other content. Specifically, I plan ...
0
votes
1answer
22 views

select product details page options if dropdown has one value in Magento 2.1

I want to select the options in each dropdown in product details page if it has one option. for example dropdown : 1 (option) dropdown : 2 (option) dropdown : 1 (option) Then on the selection of ...
0
votes
1answer
48 views

how can I get all product of a category in a custom page in magento 1.9

I have created a custom sub category page, in which I'm calling all the sub-categories, now i want to show product of each sub-categories in the same page how can I do that. This is what I do to get ...
0
votes
1answer
60 views

Magento 2 Product tab link

I'm trying to add an product tab which only functions as a link href predifined in a custom block. No tab content is needed. I tried the following: <referenceBlock name="product.info....
0
votes
1answer
126 views

How to add custom js file for PDP page in magento 2

I wish to include custom js file in PDP page in magento 2. I wish to do some action while product has some options. Please provide me a solution to add custom js in PDP page