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

Register a new Custom Option Module
 
ttwhy
Member
 
Avatar
Total Posts:  70
Joined:  2008-01-27
 

Hi, i’am trying to insert my own custom option module, but till now i’am failing.

I’ve already registered the new Option in the config.xml for the backend (and its visible in the dropdown list) and copied a select.phtml (which contains a javascript which generated the html code for the form) to my own.phtml and modiefied the code that it should call the new javascript var, but magento doesnt “include” the file.
I think there has to be some kind of xml file which cares about what filetypes got included, but i cant find it (my “grep” skills didn’t help me yet)

This is a traceback for the file.phtml
if tried to run it backword but its didnt showed me where to find the xml

#0  include() called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Template.php:144]
#1  Mage_Core_Block_Template->fetchView(adminhtml/default/default/template/catalog/product/edit/options/type/file.phtml) called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Template.php:175]
#2  Mage_Core_Block_Template->renderView() called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Template.php:192]
#3  Mage_Core_Block_Template->_toHtml() called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Abstract.php:643]
#4  Mage_Core_Block_Abstract->toHtml() called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Abstract.php:503]
#5  Mage_Core_Block_Abstract->_getChildHtml(file_option_type, 1) called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Abstract.php:454]
#6  Mage_Core_Block_Abstract->getChildHtml(file_option_type) called at [/var/www/web3/html/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Option.php:174]
#7  Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options_Option->getTemplatesHtml() called at [/var/www/web3/html/app/design/adminhtml/default/default/template/catalog/product/edit/options/option.phtml:27]
#8  include(/var/www/web3/html/app/design/adminhtml/default/default/template/catalog/product/edit/options/option.phtml) called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Template.php:144]
#9  Mage_Core_Block_Template->fetchView(adminhtml/default/default/template/catalog/product/edit/options/option.phtml) called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Template.php:175]
#10 Mage_Core_Block_Template->renderView() called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Template.php:192]
#11 Mage_Core_Block_Template->_toHtml() called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Abstract.php:643]
#12 Mage_Core_Block_Abstract->toHtml() called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Abstract.php:503]
#13 Mage_Core_Block_Abstract->_getChildHtml(options_box, 1) called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Abstract.php:454]
#14 Mage_Core_Block_Abstract->getChildHtml(options_box) called at [/var/www/web3/html/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options.php:69]
#15 Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Options->getOptionsBoxHtml() called at [/var/www/web3/html/app/design/adminhtml/default/default/template/catalog/product/edit/options.phtml:44]
#16 include(/var/www/web3/html/app/design/adminhtml/default/default/template/catalog/product/edit/options.phtml) called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Template.php:144]
#17 Mage_Core_Block_Template->fetchView(adminhtml/default/default/template/catalog/product/edit/options.phtml) called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Template.php:175]
#18 Mage_Core_Block_Template->renderView() called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Template.php:192]
#19 Mage_Core_Block_Template->_toHtml() called at [/var/www/web3/html/app/code/core/Mage/Core/Block/Abstract.php:643]
#20 Mage_Core_Block_Abstract->toHtml() called at [/var/www/web3/html/app/code/core/Mage/Adminhtml/controllers/Catalog/ProductController.php:274]
#21 Mage_Adminhtml_Catalog_ProductController->optionsAction() called at [/var/www/web3/html/app/code/core/Mage/Core/Controller/Varien/Action.php:376]
#22 Mage_Core_Controller_Varien_Action->dispatch(options) called at [/var/www/web3/html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php:248]
#23 Mage_Core_Controller_Varien_Router_Standard->match(Mage_Core_Controller_Request_Http Object ([] => /admin/catalog_product/options/id/13/key/530107c4af76a366abf8467b16c1fce0/,[] => ,[] => /admin/catalog_product/options/id/13/key/530107c4af76a366abf8467b16c1fce0/,[] => adminhtml,[] => Array ([api] => Array ()),[] => Mage_Adminhtml,[] => Array ([0] => _GET,[1] => _POST),[] => /index.php/admin/catalog_product/options/id/13/key/530107c4af76a366abf8467b16c1fce0/,[] => /index.php,[] => ,[] => /admin/catalog_product/options/id/13/key/530107c4af76a366abf8467b16c1fce0/,[] => Array ([id] => 13,[key] => 530107c4af76a366abf8467b16c1fce0),[] => Array (),[] => 1,[] => admin,[] => module,[] => catalog_product,[] => controller,[] => options,[] => action)) called at [/var/www/web3/html/app/code/core/Mage/Core/Controller/Varien/Front.php:158]
#24 Mage_Core_Controller_Varien_Front->dispatch() called at [/var/www/web3/html/app/Mage.php:459]
#25 Mage::run() called at [/var/www/web3/html/index.php:65]
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top