Shop, several payment methods

Author Message

Carlos Revillo

Wednesday 12 July 2006 4:26:51 pm

hi again. i've added ezpaypal to my shop. all seems to be ok.
I've added a shop -> checkout -> before trigger, as i read in www.ez.no

But in my shop, i want several paymethods. Well, only two. one we call "Cash on delivery" and one for Paypal. How can execute the workflow only when users select PAYPAL method.

For the selection i use radio - buttons. thanks so much.

Xavier Dutoit

Wednesday 12 July 2006 11:23:25 pm

Hi,

Have a look at this contribution and plug it into your workflow.

http://ez.no/community/contribs/workflow/simple_paymentmethods

X+

http://www.sydesy.com

Carlos Revillo

Thursday 13 July 2006 1:45:34 am

thanks... but i think i'm missing something. i've added this new workflow, before confirmorder. But now, i'm not being redirected to sandbox.paypal...

Do i have to do something with my previous workflow? Cheers.

Carlos Revillo

Tuesday 18 July 2006 10:41:55 am

any ideas on this? Actually i have a shop - checkout - before trigger and a paypal worklow with "all options enabled"

what i get when i going to checkout i get a form like this

<form method="post" action="site/shop/checkout">
            <input type="radio" name="SelectedGateway" value="ezpaypal"                                     checked="checked"/>Paypal
        
    <div class="buttonblock">
        <input class="defaultbutton" type="submit" name="SelectButton"  value="Seleccionar" />
        <input class="button"        type="submit" name="CancelButton"  value="Cancelar" />
    </div>

</form>

But now i want to add a second input in order to admit cash on delivery.

i have tried to override my template and add this to the form

 <input type="radio" name="SelectedGateway" value="cash"                                     />Cash

What do i have to do to admit cash on delivery?

Maybe i have to create a copy of ezpaypal as a new extension?. Thank you.

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 18:27:14
Script start
Timing: Jan 18 2025 18:27:14
Module start 'layout'
Timing: Jan 18 2025 18:27:14
Module start 'content'
Timing: Jan 18 2025 18:27:15
Module end 'content'
Timing: Jan 18 2025 18:27:15
Script end

Main resources:

Total runtime0.6157 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.0391152.6250
Module start 'layout' 0.00480.0033 741.664139.4453
Module start 'content' 0.00800.6062 781.1094541.6797
Module end 'content' 0.61420.0015 1,322.789112.1641
Script end 0.6157  1,334.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.6013160.0002
Check MTime0.00150.2440160.0001
Mysql Total
Database connection0.00060.104910.0006
Mysqli_queries0.567192.0984600.0095
Looping result0.00060.0916580.0000
Template Total0.584895.020.2924
Template load0.00230.381220.0012
Template processing0.582594.599220.2912
Template load and register function0.00020.031410.0002
states
state_id_array0.00100.163610.0010
state_identifier_array0.00080.126420.0004
Override
Cache load0.00200.3189250.0001
Sytem overhead
Fetch class attribute can translate value0.00050.084820.0003
Fetch class attribute name0.00120.200750.0002
XML
Image XML parsing0.00060.094420.0003
class_abstraction
Instantiating content class attribute0.00000.002250.0000
General
dbfile0.00090.1451160.0001
String conversion0.00000.001940.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/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
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs