Forums / Setup & design / Important: Setting up a shipment gateway

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?

eZ debug

Timing: Jan 31 2025 04:28:14
Script start
Timing: Jan 31 2025 04:28:14
Module start 'content'
Timing: Jan 31 2025 04:28:14
Module end 'content'
Timing: Jan 31 2025 04:28:14
Script end

Main resources:

Total runtime0.1861 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0194 588.0469180.8281
Module start 'content' 0.01940.0118 768.875097.9297
Module end 'content' 0.03120.1547 866.8047527.3750
Script end 0.1860  1,394.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.8532200.0002
Check MTime0.00140.7529200.0001
Mysql Total
Database connection0.00060.345510.0006
Mysqli_queries0.110859.52381410.0008
Looping result0.00110.56591390.0000
Template Total0.154382.910.1543
Template load0.00090.467010.0009
Template processing0.153482.432110.1534
Override
Cache load0.00060.314810.0006
Sytem overhead
Fetch class attribute can translate value0.00060.343310.0006
XML
Image XML parsing0.00030.135410.0003
General
dbfile0.033017.7343200.0017
String conversion0.00000.009730.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
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.0004 secs