Shop - Add new delivery costs

Author Message

loukmane issa

Tuesday 22 September 2009 7:59:31 am

Hi my dear community,

I'm actually working on an ezpublish, and i've one little problem, i think you could resolve it rapidly but, i'm just beginner and i don't know all the facets of this big tool.

I want to add some delivery taxes on my product. For example, if you bought a ticket, you can print it (it's free) or you can ask to send it by post (it cost you for example $1).

I've look around the table 'ezorder_item' and 'ezOrder' class in 'ezOrder.php' (kernel/classes) but i don't find what to change...

Thanks very much for your help.

Nicklas Lundgren

Thursday 24 September 2009 3:38:04 am

Hi Loukmane,

I would say that you need a new shipping handler to take care of this.

Please take a look at this thread for some information:

http://ez.no/doc/ez_publish/techn.../features/improved_shipping_handling

Also, this contribution is helpful as a start for your own shipping handler:

http://ez.no/developer/contribs/examples/sample_shipping_handler

Best regards,
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

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

Main resources:

Total runtime0.0127 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.1328151.2109
Module start 'layout' 0.00460.0021 739.343836.6484
Module start 'content' 0.00670.0048 775.992290.1406
Module end 'content' 0.01150.0012 866.132829.9922
Script end 0.0127  896.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002116.2230140.0001
Check MTime0.00107.4956140.0001
Mysql Total
Database connection0.00065.048910.0006
Mysqli_queries0.002217.658830.0007
Looping result0.00000.086110.0000
Template Total0.00097.410.0009
Template load0.00075.818310.0007
Template processing0.00021.585610.0002
Override
Cache load0.00054.193310.0005
General
dbfile0.00118.313780.0001
String conversion0.00000.052440.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