All Questions
Tagged with product-attribute product-view
27 questions
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 ...
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">
<...
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/...
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 ...
0
votes
0
answers
515
views
Get all product attributes on product detail page magento 2
I am trying to gather product attributes on the product detail page. We have the default attributes disabled through xml, and are trying to load them from within a custom phtml template file.
I am ...
3
votes
1
answer
2k
views
Magento 2 - Product title h1
How can i add a custom attribute to the product view h1 title?
I have created a new module with your files and this files:
/app/code/ELLA/Producttitle/etc/frontend/routes.xml
<config xmlns:xsi=...
0
votes
0
answers
175
views
Magento 2: How can I remove the attribute value in the product view page?
I'm using Magento 2.1.6 and am wondering how can I hide an attribute from being displayed on a product view page?
I have tried setting 'Visible on Catalog Pages on Storefront' to 'No' from within ...
1
vote
1
answer
1k
views
Magento 2: More Information Tab Attribute order
Is it possible to change the attribute order in More Information Tab.
Please refer the screen shot below:
I want to rearrange order to USP/Features/Benefits. Please help.
0
votes
2
answers
825
views
Product Description showing at short description place
My website is showing product short description at wrong place in product view page. Instead it is showing at place of Description tab.
Please help me out.
3
votes
2
answers
926
views
Magento 2 Create Tab on product view page and show product attribute data in new tab
How to create a new tab on product view page and show product attribute data in new tab?
2
votes
4
answers
270
views
Show message on products (view.phtml) within specified category only
I have a message "Call for Best Price" on my Magento store if a product has the attribute priceless set to yes.
Currently this is applied to all products as yes. I'd like for it to show only on ...
1
vote
0
answers
228
views
Product Attribute sorting not applied when attribute relies on another
I'm currently building a site in Magento 2 and am trying to get sorting working for product attributes on the product listing page. I have a Size attribute which doesn't respect the sorting specified ...
1
vote
2
answers
557
views
Get product attribute in product view page tab
I want to show some product custom attribute in product view page at TAB like following image.
So far I've tried following
<?php $_product = $this->getProduct(); ?>
But it return with NULL
...
0
votes
0
answers
676
views
Add short_description to accordion tabs on product page
I have the following code which creates vertical accordion tabs on the product page - currently it 'fetches' the 'description' product attribute. I'd also like to fetch the 'short_description' product ...
0
votes
3
answers
795
views
magento how to show attribute image on list view
I already loaded few custom attributes on the product list view. Now I want to show images instead of the attribute values.
I tried:
$filename= $_SERVER['DOCUMENT_ROOT'].'/media/catalog/brands/'....
1
vote
2
answers
38
views
My code is displaying both options?
I'm trying to display the information from an attribute with information as to when the product will be available again on my custom view.phtml page. This is my code:
<div class="col2-set">
...
1
vote
0
answers
185
views
How to add custom message to certain products on both checkout and product page? [closed]
I'm trying to create a custom message appear for certain products that are flagged as so from the admin panel. These products will create a message on both the checkout and product page. For example ...
0
votes
1
answer
487
views
How do you display product in colorbox lightbox in magento 1.9 custom theme
I have successfully managed to get the colorbox pop up window to display on page. However beyond that I am not getting much success in displaying the product - At best I get the entire webpage loading ...
0
votes
1
answer
1k
views
how to show image by product attribute value in magento additional product information on product page
I need to show product image in product page on additional information tab.
I created a attribute name certification marks.
that attribute contain CE, CLASSE II, ENEC, F, IP20 these values.
on ...
1
vote
2
answers
2k
views
How to show manufacturer attributes for products with link to advanced search result?
I am showing the manufacturer attribute in catalog_product_view page on product/view.phtml using Code 1 (see below). I successfully included a list of all manufacturer attributes from Code 2.
How to ...
2
votes
1
answer
3k
views
How to configure a 360 degree view to Product images?
I have to create a store with Products having 180 as well as 360 Degree View.
I had gone through many extensions like magic 360 and many more but Cant find anything relevant.
I wish to use the free ...
2
votes
4
answers
313
views
Show new attribute in product view.phtml
I have a new attribute 'delivered_in' and I'd like to add it to the product page in Magento. I have edited the view.phtml and added the following code:
<div><p><?php $_product->...
1
vote
1
answer
121
views
Add a field under product name
I want to add a field in back-end that when I set it, will show in front-end in product page under product name, like picture.
I define new attribute but in front-end it will show in a table that is ...
-1
votes
2
answers
4k
views
[solved]get Product ID and URL from Product page as PHP variable
On the product page, I want to read the Product URL (http://www.example.com/myCategory/myProduct.html) and put it as string in a PHP variable like $myProductURL. I also want do to this with the ID of ...
0
votes
1
answer
1k
views
Trying to display the 'country_of_manufacture' attribute on product view with extra html if value exists. Why does this code not work?
This is the php code I wrote for our product view page. It should only show on the front end if the variable has a value. yet the html still shows even if the product does not have the variable ...
0
votes
1
answer
1k
views
show custom text field only when it's populated
Having trouble with a custom field. It's a plain text field, called special_note.
<?php $specnote = $_product->getResource()->getAttribute('special_note');
if ($specnote) {
echo "<...
1
vote
1
answer
678
views
Hide Price and Add To Cart button based on product attribute
I have two types of products (Product Type A (available for sale) and Product Type B (not available for sale)) and I created an attribute for each to differentiate.
I am trying to write a conditional ...