kurtissn Posted January 26, 2009 Posted January 26, 2009 Hi all. I'm a little green at this. I have installed a clean version of osCommerce and done step by step install of QTPro 4.51b. Where I'm stuck is on "Creating a Product Attribute Display Plugin". Could one of you experts explain in more detail what the follonf is telling me to do? 1. Choose the plugin that is closest to your desired functionality to extend. 2. Copy the plugin file you want to extend to a new name in catalog/includes/classes. 3. Change the require_once line and the extends part of the class definition to refer to the class you have chosen to extend. 4. Update the class name to match the file name of your new plugin. 5. If you are adding new configuration options: 1. Insert rows into table 'configuration' for your new options. Your configuration keys should all start with 'PRODINFO_ATTRIBUTES_'. They should all have configuration group id 888001. 2. Override method _SetConfigurationProperties to set class properties from the configuration constants. Be sure to use the $prefix parameter passed to this method rather than hardcoding 'PRODINFO_ATTRIBUTES_'. This is so that in the future product attribute display plugins can be used on other pages with different options. See pad_base for how this is done. Be sure to set all options that your plugin will use including existing options you did not add. 6. In the admin site select Configuration and Product Information. Select your new plugin from the dropdown list for the Product Info Attribute Display plugin and set your configuration options. I've yet to make this part work. Thanks Curtis
Recommended Posts
Archived
This topic is now archived and is closed to further replies.