problems replacing standart module

Author Message

Anton Shishkin

Sunday 28 March 2004 10:07:22 pm

I wrote extension to replace standart module 'shop'. I have changed file kernel/content/action.php like this:

if ( $http->hasPostVariable( "ActionAddToBasket" ) )
    {
        $shopModule =& eZModule::exists( "sgkshop" );
        $result =& $shopModule->run( "basket", array() );
        $module->setExitStatus( $shopModule->exitStatus() );
        $module->setRedirectURI( $shopModule->redirectURI() );

    }
    else if ( $http->hasPostVariable( "ActionAddToWishList" ) )
    {
        $shopModule =& eZModule::exists( "sgkshop" );
        $result =& $shopModule->run( "wishlist", array() );
        $module->setExitStatus( $shopModule->exitStatus() );
        $module->setRedirectURI( $shopModule->redirectURI() );
    }

<i>(I replaced name of standart module 'shop' by my own module's name 'sgkshop')</i>
But when I click button 'Add to basket', I'm still redirected to standart module's 'shop' basket. What else needs to be changed to work properly (i.e.redirect me to my module when I click to 'Add to basket' button).

My extension has the same structure as standart module 'shop', just some addons.

Anton Shishkin

Monday 29 March 2004 1:43:00 am

Ok guys, i did it :)))
problem is solved

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 20:56:56
Script start
Timing: Jan 18 2025 20:56:56
Module start 'layout'
Timing: Jan 18 2025 20:56:56
Module start 'content'
Timing: Jan 18 2025 20:56:56
Module end 'content'
Timing: Jan 18 2025 20:56:56
Script end

Main resources:

Total runtime0.0263 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.9219152.6250
Module start 'layout' 0.00630.0058 740.546939.4609
Module start 'content' 0.01210.0117 780.007889.3516
Module end 'content' 0.02370.0025 869.359430.3047
Script end 0.0262  899.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002810.6085140.0002
Check MTime0.00124.4522140.0001
Mysql Total
Database connection0.00062.143110.0006
Mysqli_queries0.005520.779630.0018
Looping result0.00000.057210.0000
Template Total0.00207.810.0020
Template load0.00134.867810.0013
Template processing0.00082.896210.0008
Override
Cache load0.00062.362710.0006
General
dbfile0.005821.943780.0007
String conversion0.00000.045440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0003 secs