www_puertoricoautoforo_com
asked on
Have part # display under product thumbnail in Grid View? Magentocommerce
Hi, I would like to have my part # displayed underneath my products. It does this after I click on the product, but I would like it to display the part # underneath the product in "Grid or List" view. How could I do this?
I read a book on customizing Magento, actually a couple, but I did not see anything that talked about the grid or list view of a product.
If you click here, you can see some carbon fiber hoods for sale:
http://www.carbonfiberhoods.com/exterior/hoods.html
You'll notice that this page displays the thumbnail, name, price, special price of each carbon fiber hood but it does not display the part #. How can I have the part number appear on the actual Grid page instead of just the detail page?
http://www.carbonfiberhoods.com/exterior/hoods.html
I read a book on customizing Magento, actually a couple, but I did not see anything that talked about the grid or list view of a product.
If you click here, you can see some carbon fiber hoods for sale:
http://www.carbonfiberhoods.com/exterior/hoods.html
You'll notice that this page displays the thumbnail, name, price, special price of each carbon fiber hood but it does not display the part #. How can I have the part number appear on the actual Grid page instead of just the detail page?
http://www.carbonfiberhoods.com/exterior/hoods.html
firstly give people a chance to see the question at least 48 hours before you request attention, secondly we could need the code you have used to create the website/grid so we can look over it and see where it is that the current data is coming from. only then can we help with the # number. that is the easy part. please include all the code for that pages. any php and any html files you use to get it looking how it looks. along with any database structures.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I added it here:
modified "app/code/core/Mage/Catalo g/etc/conf ig.xml"
to now include the following
<product>
<collection>
<attributes>
<name />
<url_key />
<part_number /> (this is the only line that I changed)
<price />
<special_price />
<special_from_date />
<special_to_date />
<short_description />
<thumbnail />
<small_image />
<image_label />
<thumbnail_label />
<small_image_label />
<tax_class_id />
<status />
<news_from_date />
<news_to_date />
<created_at />
<updated_at />
</attributes>
</collection>
</product>
However, when I refresh the Dodge Challenger carbon fiber hood it does not show the part #, if I click on the item then click on additional information I can see it, but I'm trying to get it to appear at this screen:
http://www.carbonfiberhoods.com/exterior/hoods/seibon-carbon-fiber-oem-style-carbon-fiber-hood-2009-2010-dodge-challenger.html
modified "app/code/core/Mage/Catalo
to now include the following
<product>
<collection>
<attributes>
<name />
<url_key />
<part_number /> (this is the only line that I changed)
<price />
<special_price />
<special_from_date />
<special_to_date />
<short_description />
<thumbnail />
<small_image />
<image_label />
<thumbnail_label />
<small_image_label />
<tax_class_id />
<status />
<news_from_date />
<news_to_date />
<created_at />
<updated_at />
</attributes>
</collection>
</product>
However, when I refresh the Dodge Challenger carbon fiber hood it does not show the part #, if I click on the item then click on additional information I can see it, but I'm trying to get it to appear at this screen:
http://www.carbonfiberhoods.com/exterior/hoods/seibon-carbon-fiber-oem-style-carbon-fiber-hood-2009-2010-dodge-challenger.html
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I added this code, but I get the following error..
Parse error: syntax error, unexpected T_VARIABLE in /home/webmaster/domains/ra ceonusa.co m/public_h tml/app/de sign/front end/defaul t/raceonus a/template /catalog/p roduct/lis t.phtml on line 92
http://75.127.116.143/exterior/body-kits/fronts.html
When I take out the underscore from the beginning of "_products" I get this error:
Fatal error: Call to a member function getPartNumber() on a non-object in /home/webmaster/domains/ra ceonusa.co m/public_h tml/app/de sign/front end/defaul t/raceonus a/template /catalog/p roduct/lis t.phtml on line 125
Do you think it's the spelling of the words "Part Number"?
In the attributes page next to "Attribute Code" it is "part_number"
In my admin and store view it is "Part Number'
Parse error: syntax error, unexpected T_VARIABLE in /home/webmaster/domains/ra
http://75.127.116.143/exterior/body-kits/fronts.html
When I take out the underscore from the beginning of "_products" I get this error:
Fatal error: Call to a member function getPartNumber() on a non-object in /home/webmaster/domains/ra
Do you think it's the spelling of the words "Part Number"?
In the attributes page next to "Attribute Code" it is "part_number"
In my admin and store view it is "Part Number'
<h2 class="part-number-custom"><?php echo $this->htmlEscape(_$product->getPartNumber()) ?></h2>
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.