Questions tagged [product-page]
Denotes question regarding Magento Product detail page
257
questions
0
votes
0
answers
33
views
Load attribute depends upon previous selected attribute
We are having two dropdown attributes on product level Brand and Model. Consider Brand are Mahindra,Kia,Hyundai and Model
having Mahnidra Bolero, Mahindra Scorpio,Kia Sonet, Kia EV6, Hyundai i20, ...
0
votes
0
answers
10
views
Magento 2:How can I fetch and log the product information on the product page when the user customises the product (e.g: changes the size, color, etc)
Right now in my template phtml file I am using this code to fetch the data and log it:
console.log("Product Information: ", <?=json_encode($block->getProduct())?>);
But I am unable ...
0
votes
0
answers
90
views
Gallery widget / fotorama / breakpoints thumbsize
Question is for Magento ver. 2.4.3 with custom Theme.
I try to do two things with the fotorama gallery:
Set the nav to thumbs and navdir to horizontal ("max-width":"1024px")
The ...
0
votes
1
answer
34
views
Hide or Disable Related Posts on Product Description when there aren't any?
Can anyone help with this please? Please see the image attached. So assuming this is a template fix.
Currently shows when there are related posts.
But most products dont have it. How can you hide when ...
3
votes
2
answers
68
views
Injecting code into theme product page
The may well be too broad of a question, but I'm having extreme difficulty finding any answers. I want to know if its possible to add a phtml block/view to a product page when you have a theme ...
1
vote
1
answer
65
views
Prices are showing as zeros in product page
I have a problem with product prices, the prices in the backend are right
and on the home page and search list as well.
But in the product page they turn to be zero after a second of the page load
...
0
votes
1
answer
229
views
Display minimum advertised price and retail pricing on product page magento2
Is it possible to display Minimum Advertised Price and retail pricing on product details page?
0
votes
1
answer
198
views
Prevent custom url parameter in Product Page to be Cached
I am working on a requirement to add a custom parameter in the configurable product page URL. This will have the simple SKU to preselect the color in the swatches, something like this:
https://site....
0
votes
2
answers
312
views
How to change the Block position or product view page design in Magento 2?
I want to move (Upsell) bottom of the Product page. And How to move any block in Product page in Magento2.
Also How to add Feature Product before Upsell Product in Product page Magento2?
1
vote
1
answer
25
views
Magento 2 add buy now button on product page & mini cart
I am using Magento 2.4.
I am trying to add a "buy now" button on the product & cart page, but unfortunately, when I click on the button it adds the product into the cart.
Instead of this,...
0
votes
1
answer
119
views
Magento 2 product page show backorder insteed of add to cart
Hope there is one that can help me out with this problem. I made it years back for M1 but can remember how and now I need it for my M2 website.
On the productpage I want to show backorder insteed of ...
0
votes
1
answer
324
views
How to create product rating star on Product Page
I trying to look for a solution to show Rating Star on the Product Page, like the Product List Page. I tried adding it by creating a new Block on catalog_product_view.xml but not working
Rating Star ...
0
votes
0
answers
224
views
product page stuck on loader sometimes
I am using magento 2.3.4
My product page loader gets stuck randomly.
It doesn't happen all the time, but happens consistently.
Also, it occurs only on configurable products page.
Let me know how to ...
1
vote
1
answer
934
views
Change SKU dynamically in configurable product for Magento 2.4
Does anybody know how to implement changing of the SKU on configurable product page according to variation selection, for Magento 2.4.3?
Thanks!
0
votes
2
answers
249
views
Disabling cache for a certain block used in the product page
I would like to load a certain message based on a certain hour range on the product page.
In the catalog_product_view.xml I have this block:
<block class="Vendor\Products\Block\Usp" name=&...
0
votes
1
answer
378
views
magento 2.3 display first two product images on details page
i am using magento 2.3 version and i am using custom theme so i want to product page in main image showing first two images so when main image sliding and another coming it and rest first same like it
...
0
votes
1
answer
75
views
Size attribute doesn't have any options
Size attribute dropdown in product detail page doesn't loading options. If I reload the page then the options are apprearing. But I want it to load on first instance. I have tried reindexing and cache ...
0
votes
2
answers
222
views
Magento 2.4.2 How to add Key Features to the product detail page
I need to add Key Features to the product detail page.The function should be a new attribute, but I don't know how to add it. Do you have a simple and quick way.
Key Features can be replaced with any ...
1
vote
2
answers
335
views
Recover customer data on product page
I am trying to recover customer data on product page as I cannot pass by php because of full page cache I want to do it in js.
I added an phtml block on my page in footer, catalog_product_view.xml
<...
1
vote
2
answers
2k
views
Magento 2: How get All products (2000 products) using Rest API?
I use Magento2.
I have 2000 products.
I try to get all products, using Rest API.
My request str.:
GET https:///rest/default/V1/products?searchCriteria[pageSize]=1000.
But this is not enough because ...
0
votes
2
answers
251
views
How to display all customer reviews in the product page?
Since I removed the review tab on product page, now I'd like to display all customer reviews in the product page itself (but outside of the tab).
How can I display them?
I'm running Magento 2.4.2.
1
vote
1
answer
124
views
Move Product Attribiutes from More information Tab to details tab
I would like to move all product attributes from selected product to details tab.
I try to do something like this:
<move element="product.attribute" destination="content" after=&...
0
votes
0
answers
25
views
same phtml on same page in magento commerce
I want to add one static block above product details on product description page. So i turned on template path hints. And there are two attribute.phtml on same product page.
0
votes
1
answer
158
views
Magento 2.3 - What is the recommended practice for adding custom text in product page
I want to add custom text to the product page,
Here how can i achieve this task, which is the recommended way to do that: Module (or) Events Observer (or) Preference. What kind of workout safe for ...
2
votes
0
answers
37
views
Product page images cache generation issue after Magento upgrade
Product page images are showing thumbnails instead of product images. On the same page related products images are showing fine. Only products images are having issues. The image url is accessible but ...
0
votes
1
answer
33
views
My magento 2.2.4 homepage loads while other pages refuses to load
When I open my magento homepage it loads successfully while catalog search, categories and product page load a http 500 error.
Copy of my .htaccess files is thus;
######################################...
1
vote
1
answer
730
views
Override get product url in Magento 2
i'm using Magento 2.3.4 and i want some product URL is using different URL from URL rewrite,because i already created a custom frontend page for this product:
for example
getProductUrl() => http://...
1
vote
0
answers
904
views
Magento 2 add Estimate Shipping Form on Product Page
Following this post
Magento 2 : How to display Shipping Rates on a Product Page
i can get shipping rates for current product, tested with curl:
curl -ik -X POST -H "Content-Type: application/json&...
1
vote
0
answers
251
views
Product price won't update on product page front end. Cache stuck
I have a product that has a sale price of 199.99 and an original price of 240.
In my index table I can see that the price has been indexed: (catalog_product_index_price):
'123', 'cust_grp', '...
1
vote
2
answers
510
views
How can i show final price on product page?
I want to show price accroding to selected attribute option of configurable product.
0
votes
0
answers
59
views
Magento 2.3.4: Want to change the location of bundle product options near add to cart
I want these two portions of the listing in the same box under the (Choose Your Items) Button.
I have tried to do with the XML but it changes the configurable list and simple product.
0
votes
2
answers
70
views
Magento 1.x Product Detail Customize
I want to completely change the design of the product detail page. The products that I added from the admin panel should be placed in that design. how can I do it?
0
votes
1
answer
80
views
How to Image resize this container in product page - Magento 2.3
In the product page i need to resize the product image container but i can't how to resize this, Please check the image for reference
The below image shown with big gap between the image and border
...
0
votes
1
answer
132
views
Magento 2.3 add body class to product page if custom options
I want to add a body class "custom-options" to the product page, when the product got some custom options.
How can I achieve that?
0
votes
1
answer
1k
views
How to change the product detail page to a 2 column layout in Magento 2.3?
I have created a layout XML file for a custom theme which inherits from the default Magento Blank theme:
app/design/frontend/<Vendor>/<Theme>/Magento_Catalog/layout/catalog_product_view....
0
votes
1
answer
399
views
Magento 2: Want to change the location of Product Page "Your added .....shopping cart" message, under the addto cart button
I have tried to relocate in layouts XML file, but it's not working.
the file is in the/vendor/magento/module-checkout/view/frontend/templates/messages/addCartSuccessMessage.phtml
I just want to put ...
0
votes
1
answer
2k
views
Uncaught TypeError: Argument 1 passed to Magento\Catalog\Block\Product\ImageFactory::getRatio() must be of the type integer
I have this error in product page after upgrade to magento 2.3.4 from 2.2.6
php 7.2
[20-Apr-2020 15:39:48 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Block\Product\...
0
votes
1
answer
178
views
Magento 2: Product page compare product add in new tab
I am using magento 2.3.3 in custom theme and I want to compare products add in new tab
how can achieve this?
Thanks in advance
0
votes
1
answer
136
views
How can show root url all product in single page?
I don't have advanced level magento code edit anyway I can do it.
My website need to add menu all product show link(link name: All Product).
All product added to mobiles.
Category tree are same like ...
0
votes
3
answers
1k
views
Magento 2: Cannot open the Product Detail Page
I'm trying to open the product detail page from the listing page but its not working, and its showing the below error:
2 exception(s):
Exception #0 (Magento\Framework\Exception\LocalizedException): ...
0
votes
2
answers
693
views
Display related products on sidebar
I want to display related products if they exist on the sidebar on product page over featured products.
Please advise
EDIT
ADDED catalog_product_view.xml code
<referenceBlock ...
9
votes
3
answers
5k
views
magento 2.3.4 cannot call methods on tabs prior to initialization; attempted to call method 'activate'
In Magento 2.3.4 product page when click review text or reviews and not going to review form or Customer review
Before it's working fine in Magento 2.2.4
and it's an error coming from the below ...
1
vote
0
answers
95
views
Magento 2.3.4 version product thumbnails & product image issue on product detail page [PDP]
I have just updated Magento to 2.3.4 but facing an issue of images on Product Detail Page(PDP).
I have changed the layout of thumbnails as vertical. After changing the thumbnail image layout on PDP ...
1
vote
0
answers
66
views
Product Page not found after Migration from Magento 1.9.3.8 to Magento 2.3.4
After successfully migrating from Magento 1.9.3.8 to Magento 2.3.4, I tried to check the category page, first, it doesn't show any products then I disabled MSI modules then it shows the products in ...
0
votes
0
answers
43
views
Magento 2.3.x: How can change the position of STORE-SWITCHER on product details page
I create two store US and IN.
I want to move this store swither on product details page just in the place of US-tax rule check below images.
any help will be appreciated.
0
votes
0
answers
84
views
Magento 2: How can dynamically display Name of Tax Rule on product page
To display Name of tax rule on the product details page I creat a module through this link (Magento 2: How can display Name of Tax Rule on product page). And it's working successfully check below ...
1
vote
1
answer
419
views
Magento 2: How can display Name of Tax Rule on product page
I create two tax rule name rule1 and disability tax ,check below images
Now I want to display these two tax rule names on the product page. any help will be appreciated.
1
vote
0
answers
42
views
How to display product attribute set in product list page via custom module in magento 2.3.3?
I am trying show product Attribute set in product listing page.I want to achieve via custom module.
can someone help to achieve this solution?
Thanks in advance.
1
vote
1
answer
595
views
Disable (product data items) tabs in Product page
I want to disable tabs in product pages, i mean not display product data items (description, more information,Ratings) as tabs.
So I override
web/css/source/sections.less
And remove tabs and ...
0
votes
0
answers
125
views
Fatal error in product detail page in Magento 2?
I am using Magento 2.3.3
I am getting below fatal error in product detail page:
Fatal error: Uncaught Error: Cannot instantiate interface Magento\Framework\Config\ReaderInterface in /chroot/home/...