VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Ihateit on January 22, 2013, 09:56:52 AM

Title: Determine if "Payment is selected" on checkout page
Post by: Ihateit on January 22, 2013, 09:56:52 AM
Hey forum,

i would like to know if there is a if statement that determines if Payment is selected. Im using some code on my checkoutpage right now:
<?php if ($this->cart->cartData['paymentName'] != 'Ingen betaling valgt' && $this->cart->cartData['paymentName'] != 'No payment selected' && $this->cart->cartData['paymentName'] != 'Ingen betalning vald' && $this->cart->cartData['paymentName'] != 'Ingen betalingsmetod er valgt') {?>
But it isnt very optimized, as i would like to add all the other languages aswell, fx. russian.

Its because im showing some images on the checkout page, and i only want to show them if the payment option is selected.

//Anders J. - PS. i dunno if this is the right category for my question
Title: Re: Determine if "Payment is selected" on checkout page
Post by: Ihateit on January 23, 2013, 15:13:45 PM
Bring Up My Post.

Hey guys, i still havent found a solution :-( Anyone with any suggestions at all?
Title: Re: Determine if "Payment is selected" on checkout page
Post by: Ihateit on February 12, 2013, 11:04:10 AM
BUMP. Maybe some fresh eyes have a solution :-)?