Forums / Developer / payment gateway based on price

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

eZ debug

Timing: Jan 20 2025 23:33:02
Script start
Timing: Jan 20 2025 23:33:02
Module start 'content'
Timing: Jan 20 2025 23:33:02
Module end 'content'
Timing: Jan 20 2025 23:33:02
Script end

Main resources:

Total runtime0.0373 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 589.3281180.8359
Module start 'content' 0.00770.0242 770.164193.8672
Module end 'content' 0.03180.0054 864.031370.7031
Script end 0.0372  934.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00246.4901120.0002
Check MTime0.00112.9554120.0001
Mysql Total
Database connection0.00092.314010.0009
Mysqli_queries0.004010.722340.0010
Looping result0.00000.042820.0000
Template Total0.004913.210.0049
Template load0.00102.598610.0010
Template processing0.003910.539510.0039
Override
Cache load0.00071.850510.0007
General
dbfile0.00225.8628100.0002
String conversion0.00000.016030.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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