Quantcast
Channel: OXID Community Forum
Viewing all articles
Browse latest Browse all 6951

Extend the oxshop with a Module

$
0
0
Hey Guys,

i`m new to oxid shop system and wanted to write a module which extends the oxshop so i can use it in any template wherever i want.
I`ve tested the module successfully by extending the 'start'-controller and used it on the startup page with $oView->myfunc().

Now i want to use the same module on another page so i wanted to extend the 'oxshop'.
So here is my Metadata file:

Code:

<?php

$sMetadataVersion = '1.0';

$aModule = array(
    'id'          => 'allround',
    'title'        => 'Allrounder',
    'description'  => 'Overall function',
    'version'      => '1.0',
    'author'      => 'OC',
    'extend'      => array(
        'oxShop' =>'allround/tester'
    )
);

with this tester.php file:

Code:

<?php

class tester extends tester_parent
{
        function __construct()
        {
               
        }
       
        public function test()
        {
                echo "Tester";
        }
       
}

?>

When i now go to my acp and activate the module, the whole acp is killed and my shop says "shop offline!".. i have to delete the folder from my ftp to reconstruct the acp and the page .. i hope you can help me ..

thanks for reading!

Best regards

Sebastian

Viewing all articles
Browse latest Browse all 6951

Trending Articles