Forums / Setup & design / Shop -> SOS... I really need a solution for shipping cost. Please.

Shop -> SOS... I really need a solution for shipping cost. Please.

Author Message

laurent le cadet

Tuesday 04 May 2004 5:31:18 am

Hi,

I build a shop for books but I can't manage to add a shipping cost for the total_price_inc_vat. It wil be the last touch before opening and <b>the dead line is now.</b>
I remember there was this option in the 2.2 series but with 3.3, it seems to be rather different.

The only way I found is to rewrite parts of code in kernel but I'm not good at this job and I'm not sure it's the best way.

Someone has an idea ?

Regards Laurent.

Paul Forsyth

Tuesday 04 May 2004 5:43:34 am

Im not sure what you are after here. Have you looked at the attributes of ezprice?

kernel/classes/datatypes/ezprice/ezprice.php

and at the shipping workflow event?

kernel/classes/workflowtypes/event/ezsimpleshipping/ezsimpleshippingtype.php

Do these help?

Paul

--
http://www.visionwt.com

laurent le cadet

Tuesday 04 May 2004 10:18:46 am

Hi Paul.

If that help ?

<b>For sure :)</b>

I make a workflow (simpleshipping) and a trigger (before confirm order) and I notice that the price of the product change. It works fine.
What I can't find is where to change the ShippingCost variable.
So many include and files :(

Could you help me again ?

Laurent

Paul Forsyth

Tuesday 04 May 2004 10:52:02 am

This is where looking at the php files help ;)

If you look at the simpleshippingtype file you will see inside it makes reference to two ini variables:

$ini =& eZINI::instance( 'workflow.ini' );

$cost = $ini->variable( "SimpleShippingWorkflow", "ShippingCost" );
$description = $ini->variable( "SimpleShippingWorkflow", "ShippingDescription" );

These are from the workflow ini file. So, if you set the values in that ini file, preferably as an override it should add the correct amount.

paul

--
http://www.visionwt.com

eZ debug

Timing: Jan 18 2025 16:05:37
Script start
Timing: Jan 18 2025 16:05:37
Module start 'content'
Timing: Jan 18 2025 16:05:38
Module end 'content'
Timing: Jan 18 2025 16:05:38
Script end

Main resources:

Total runtime0.8837 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.9688180.7969
Module start 'content' 0.00760.7437 768.7656522.9453
Module end 'content' 0.75130.1323 1,291.7109336.7422
Script end 0.8837  1,628.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.5061210.0002
Check MTime0.00160.1809210.0001
Mysql Total
Database connection0.00060.064710.0006
Mysqli_queries0.807691.38361970.0041
Looping result0.00200.22471950.0000
Template Total0.855096.720.4275
Template load0.00200.221720.0010
Template processing0.853096.522720.4265
Template load and register function0.00010.013110.0001
states
state_id_array0.00100.117810.0010
state_identifier_array0.00190.211820.0009
Override
Cache load0.00170.1914370.0000
Sytem overhead
Fetch class attribute can translate value0.00190.213930.0006
Fetch class attribute name0.00090.097450.0002
XML
Image XML parsing0.00090.103730.0003
class_abstraction
Instantiating content class attribute0.00000.001760.0000
General
dbfile0.00250.2849270.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs