I’m trying to create a quotation module.
Basic principle, if price is zero, then show an extra tab in the product details page, with a form. When forms been sent, show a thank you.
i’ve created a module/anfragge/out/blocks/tabs_anfrage.tpl
and inserted it into the db
INSERT INTO `oxtplblocks` (`OXID`, `OXACTIVE`, `OXSHOPID`, `OXTEMPLATE`, `OXBLOCKNAME`, `OXPOS`, `OXFILE`, `OXMODULE`, `OXTIMESTAMP`)
VALUES ('fkg587121d1d47be0bda2253922d4e26', '1', 'oxbaseshop', 'layout/base.tpl', 'details_tabs_pricealarm', '0', 'tabs_anfrage', 'anfrage', CURRENT_TIMESTAMP);
Have i understood correctly you cannot create a new block, only overwrite another ?
ie here details_tabs_pricealarm
What is the OXID - just random 32 char or ?
Another problem at the moment is my module (class) is being repeatedly loaded, in a loop until the memory runs out.
This is my metadata for the module
$aModule = array(
'id' => 'anfrage',
'title' => 'Send anfrage email for products',
'description' => array(
'de' => 'Sendet Anfrage email, spezifisch für Sonderbau, aber geht für jeden Produkt mit ein preis von 0.00',
'en' => 'Send quotation email, mainly for Sonderbau,but should work for all products with a price of 0.00'
),
'version' => '1.0.0',
'extend' => array(
'details' => 'anfrage/views/anfrage'
),
'settings' => array(
)
);
Whats wrong ?