Forums / General / Shop, several payment methods
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
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.
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.