News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Payment checkout scrollbar and list

Started by rhks8, June 13, 2013, 19:50:23 PM

Previous topic - Next topic

rhks8

hey everyone,

im new to using virtuemart (2.0.18a). I do have a programming background (python), so im not completely useless :P
Anyway, ive attached a screenshot of the issue.
During payment, if the users choose the last option then they can use the dropdown list to select the bank.
Thats great, but how do I switch the dropdownlist and radiobutton around?

I found the area of select_payment.php where this is generated, it generates a field list.
In the CSS i cant seem to find to find the right div for it either. Ive been going through files for days to deceipher and backtrack the code. PHP is trickier than it seems :).

I know it calls for an array, and then "echos" (prints it) to the screen....but i need to find the part where i can change the radio button and dropdown around, so it looks neater and lined up.

<?php
     if ($this->found_payment_method) {
    echo "<fieldset>";
      foreach ($this->paymentplugins_payments as $paymentplugin_payments) {
          if (is_array($paymentplugin_payments)) {
         foreach ($paymentplugin_payments as $paymentplugin_payment) {
             echo $paymentplugin_payment.'<br />';
         }
          }
      }
    echo "</fieldset>";
    } else {
    echo "<h3>".$this->payment_not_found_text."</h3>";
    }
    ?>

I also dont have an issue with doing a hard coded workaround, i.e. call each individual payment option manually. Since i will always have 3 sorts of payment.
What are the variables used for calling on vmpayment 3 for example? With this i could just create a field myself in the echo statement, calling on each payment option. Rather than looping.

What are your thoughts on fixing this issue?

[attachment cleanup by admin]