Shopping Basket extension

Author Message

Bernhard Reiter

Thursday 17 March 2005 6:35:52 am

Hi,
I removed from basket.php (kernel/shop) some lines of code so that the userregister page is not shown anymore.

But i think it would be cleaner to have such a modification as an extension. I tried a bit around but without success.
so my question is, if it is possible to "override" the standard basket with my modified version.

Frederik Holljen

Friday 18 March 2005 8:13:41 am

You can change any visual appearance by overriding templates. Overriding PHP files is not possible however. Such functionality must either be configurable (e.g with an ini setting) or it should be handled by plugins.

Bernhard Reiter

Monday 21 March 2005 12:55:35 am

I think i have it now: just needs to actually be tested;-)

I make a new extension which contains my modified basket, when i change the shop templates to call my basket instead of the default one.
Does sound logic, doesnt it?

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 21:08:34
Script start
Timing: Jan 18 2025 21:08:34
Module start 'layout'
Timing: Jan 18 2025 21:08:34
Module start 'content'
Timing: Jan 18 2025 21:08:34
Module end 'content'
Timing: Jan 18 2025 21:08:34
Script end

Main resources:

Total runtime0.7829 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.9141152.6250
Module start 'layout' 0.00750.0043 740.539139.4453
Module start 'content' 0.01190.7696 779.9844503.9219
Module end 'content' 0.78140.0014 1,283.90638.1641
Script end 0.7828  1,292.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.5389160.0003
Check MTime0.00140.1785160.0001
Mysql Total
Database connection0.00170.213710.0017
Mysqli_queries0.732893.6033570.0129
Looping result0.00060.0721550.0000
Template Total0.745295.220.3726
Template load0.00240.302520.0012
Template processing0.742894.889220.3714
Template load and register function0.00020.022010.0002
states
state_id_array0.00130.171410.0013
state_identifier_array0.00110.143320.0006
Override
Cache load0.00200.2507140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.105020.0004
Fetch class attribute name0.00150.196640.0004
XML
Image XML parsing0.00060.082420.0003
class_abstraction
Instantiating content class attribute0.00000.005540.0000
General
dbfile0.00070.0927160.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs