shop

Author Message

Carlos Revillo

Monday 11 September 2006 3:07:12 am

hi. i've working with shop module and making some checks. all is well.
in http://host/index.php?/administracion/shop/statistics, i see statics for products.
i want to know if it's possible to reset this stats. i mean, i want all products has "quantity" to 0...

Ɓukasz Serwatka

Monday 11 September 2006 11:47:02 am

Hi Carlos, this is not possible by default. You may look on eZOrder::cleanupOrder( $orderID ) method, and re-use SQL queries for cleaning up your tables (ezproductcollection and ezproductcollection_item). Make sure that you did database backup.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 31 2025 00:38:52
Script start
Timing: Jan 31 2025 00:38:52
Module start 'layout'
Timing: Jan 31 2025 00:38:52
Module start 'content'
Timing: Jan 31 2025 00:38:53
Module end 'content'
Timing: Jan 31 2025 00:38:53
Script end

Main resources:

Total runtime0.0212 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.0044 587.8828151.1797
Module start 'layout' 0.00440.0039 739.0625220.6328
Module start 'content' 0.00830.0117 959.6953997.7109
Module end 'content' 0.02000.0011 1,957.406329.9922
Script end 0.0211  1,987.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002512.0404140.0002
Check MTime0.00104.6471140.0001
Mysql Total
Database connection0.00062.755110.0006
Mysqli_queries0.002310.700630.0008
Looping result0.00000.071010.0000
Template Total0.00083.910.0008
Template load0.00073.157410.0007
Template processing0.00020.747110.0002
Override
Cache load0.00052.203010.0005
General
dbfile0.00031.298180.0000
String conversion0.00000.031640.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.0001 secs