Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

modifying the output of the custom options
 
tr909
Member
 
Total Posts:  31
Joined:  2008-11-25
 

hi,
i´m digging since a few days to find a solution for modifying the output
of the custom options on the product-view. i want to modify the unordered
lists which are used to display for example radio buttons.

where are the php-files located?

thanx for ya help,
michael

 
Magento Community Magento Community
Magento Community
Magento Community
 
Discovery
Enthusiast
 
Total Posts:  767
Joined:  2007-12-29
 

There are quite a few files depending on what is shown, e.g. check boxes.

Turn on the template path hints in admin to show the files you need to edit.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tr909
Member
 
Total Posts:  31
Joined:  2008-11-25
 

i found lots of templates and php-files that are related with the product-view
and the options. but i couldn´t find the right file which assembles the unordered
lists and the radiobuttons
. there must be function containing the ULs and
LIs but i found nothing like that…

 
Magento Community Magento Community
Magento Community
Magento Community
 
Discovery
Enthusiast
 
Total Posts:  767
Joined:  2007-12-29
 

Did you turn on the template path hints in admin?

These show the .phtml files to edit.

You can also use Firebug to further track down exact lines so you know what to search for.

 
Magento Community Magento Community
Magento Community
Magento Community
 
tr909
Member
 
Total Posts:  31
Joined:  2008-11-25
 

no, i didnt, i just digged the template-path...and YESSSS!!! found it:

here´s the file which loads a function that displays radiobuttons:
magento\app\design\frontend\xxl\default\template\catalog\product\view\options\type\Select.phtml

then i looked at these files:
magento\app\code\core\Mage\Catalog\Model\Product\Option.php

this was leading me to this file:
magento\app\code\core\Mage\Catalog\Block\Product\View\Options\Type\Select.php

thanx anyway…

greetz,
michael

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top