Important: Setting up a shipment gateway

Author Message

christian bencivenni

Monday 03 December 2007 2:41:07 am

Hi to you all.
I'm finally finishing to setting up a ezPaypal ecommerce gateway with an operative shipping handler.
Right now very important was this topic: http://ez.no/developer/forum/general/shipping_in_ezp_3_8
with a lot of specific.

Now I have a FINAL PROBLEM which required your help.

I configured all the steps of the topic. When a user made a checkout eZ Publish open a confirmation page and after it directly the paypal sandbox.
I need a in-the-middle step too: BEFORE the Paypal redirect but AFTER the Confirm order I must permit the user to choose if the payment is Paypal OR a Manual bank cash payment.In both cases the order must be cofirmed but only in the first one the Paypal redirect must work.

I know that the redirect is proceeded through the checkout/before trigger.

Someone can tell me a way to check in the confirmorder.tpl the payment method and how to able or disable the trigger inside the template?

Please it's very important.

Thank you in advance.

christian bencivenni

Monday 03 December 2007 8:49:41 am

No one can help me?

Substantially I need to create a CONDITIONAL TRIGGER.

If the use choose manual payment it only confirm order
if the user choose paypal it start with usual payment gateway workflow.

Someone have any idea?

christian bencivenni

Wednesday 05 December 2007 12:32:24 am

No one can help me?
Ok.
I hoped someone can have a different idea but...
I think to work in this way:

1. create a new trigger called, for example, Newone
2. remove paypal payment from checkout/before trigger
3. add the Paypal payment to the Newone trigger
4. add in the confirmorder page a info box with the two ways of payment
5. add in the confirm order page a button with value="Paypal" and action ="newone trigger"

I think that by this way the order will be always confirmed and, if the user want to pay with paypal, he can choose the redirect to paypal site with the button.

Do you think is correct?
Any idea about make it?

Pascal Specht

Wednesday 05 December 2007 5:02:26 am

Hi Christian,

Did you see this topic, it may help you, I guess:

http://ez.no/developer/forum/developer/payment_gateway_depending_on_shopaccounthandler_selection/re_payment_gateway_depending_on_shopaccounthan__2

</Pascal>

christian bencivenni

Thursday 06 December 2007 1:04:01 am

YES!
It's exactly what I'm searching for.
But I still have a doubt: if I need to create a Choose template where user can choose the payment method where I must place it? And how?

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

Main resources:

Total runtime0.8907 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 589.1484152.6406
Module start 'layout' 0.00810.0042 741.789139.4766
Module start 'content' 0.01230.8770 781.2656532.2891
Module end 'content' 0.88930.0014 1,313.554712.1250
Script end 0.8906  1,325.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4238160.0002
Check MTime0.00160.1787160.0001
Mysql Total
Database connection0.00090.102510.0009
Mysqli_queries0.835393.7823630.0133
Looping result0.00050.0588610.0000
Template Total0.854195.920.4270
Template load0.00220.247120.0011
Template processing0.851995.643720.4259
Template load and register function0.00020.017910.0002
states
state_id_array0.00090.103810.0009
state_identifier_array0.00110.127020.0006
Override
Cache load0.00190.2122430.0000
Sytem overhead
Fetch class attribute can translate value0.00100.109820.0005
Fetch class attribute name0.00080.090460.0001
XML
Image XML parsing0.00070.074920.0003
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00200.2212160.0001
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

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

Time used to render debug report: 0.0001 secs