payment gateway based on price

Author Message

frederic pioups

Friday 02 November 2007 3:05:12 am

Hi everybody,
i would like to know how can I display a payment gateway based on price?
For example, i would like a customer can choose/see paypal gateway only if the amount of the order > 150 €.
I don't find how to do it. Please help :)
Thanks .

Heath

Monday 05 November 2007 11:25:53 am

While this subject can become complicated why not start fairly simple by creating a template override to get started with in the most minimalistic way.

It would seem that you wish to create a template override of the template, 'design/standard/templates/workflow/selectgateway.tpl'.

Then add your own custom template logic (structure/process) to limit the display of payment gateway (options) based on price evaluation within the template override of the base template.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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 22:17:43
Script start
Timing: Jan 18 2025 22:17:43
Module start 'layout'
Timing: Jan 18 2025 22:17:43
Module start 'content'
Timing: Jan 18 2025 22:17:43
Module end 'content'
Timing: Jan 18 2025 22:17:43
Script end

Main resources:

Total runtime0.0198 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.0067 589.3438152.6250
Module start 'layout' 0.00670.0031 741.968839.4453
Module start 'content' 0.00970.0076 781.414189.3203
Module end 'content' 0.01730.0024 870.734430.3047
Script end 0.0197  901.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003015.0342140.0002
Check MTime0.00146.8459140.0001
Mysql Total
Database connection0.00104.857610.0010
Mysqli_queries0.002512.862730.0008
Looping result0.00000.115710.0000
Template Total0.00199.510.0019
Template load0.00115.383010.0011
Template processing0.00084.074310.0008
Override
Cache load0.00083.957410.0008
General
dbfile0.00031.484680.0000
String conversion0.00000.039840.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