News:

Looking for documentation? Take a look on our wiki

Main Menu

Layout of "select shipment methods" and "select payment methods"

Started by Alist3r, March 06, 2015, 14:38:59 PM

Previous topic - Next topic

Alist3r

Hi all,
i'm trying to customize the layout of the checkout page. Pratically i did all the page but i have a problem with the lists of the payement methods and the shipment methods.

I'm working on the "select_payment.php" and "select_shipment.php" files inside components/com_virtuemart/views/cart/tmpl

I found this code that render the lists of the payment methods

<?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 "<h1>".$this->payment_not_found_text."</h1>";
    }

?>


and the similar for the shipment

if ($this->found_shipment_method ) {

   echo "<fieldset>\n";
// if only one Shipment , should be checked by default
    foreach ($this->shipments_shipment_rates as $shipment_shipment_rates) {
if (is_array($shipment_shipment_rates)) {
    foreach ($shipment_shipment_rates as $shipment_shipment_rate) {
echo $shipment_shipment_rate."<br />\n";
    }
}
    }
    echo "</fieldset>\n";
    } else {
echo "<h".$headerLevel.">".$this->shipment_not_found_text."</h".$headerLevel.">";
    }


The result of the html its a list of radio button like this

<fieldset>
<input type="radio" name="virtuemart_shipmentmethod_id" id="shipment_id_1" value="1" checked="checked">
<label for="shipment_id_1"><span class="vmshipment"><span class="vmshipment_name">Self pick-up</span><span class="vmshipment_cost"> (Costo aggiunto: 2,49 €)</span></span></label>
<br>
<input type="radio" name="virtuemart_shipmentmethod_id" id="shipment_id_2" value="2">
<label for="shipment_id_2"><span class="vmshipment"><span class="vmshipment_name">Corriere Espresso</span><span class="vmshipment_cost"> (Costo aggiunto: 9,00 €)</span></span></label>
<br>
</fieldset>


i really need to modify this html but i dont understand WHERE virtuemart find this html codes. I think its in the plugins folder but i didn't found a layout for the standard payments method.
So, where i can find it?

Thank

Im using Joomla 3.4 and VirtueMart 3.0.6

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


jenkinhill

ISTR (well it was 5 years ago!) that the OP later edited the post to add the versions.  Is Covid-9 lockin making people so bored that they look at ancient posts??  :-)
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jankoo


GJC Web Design

from memory administrator\components\com_virtuemart\plugins\vmpsplugin.php   public function displayListFE()  if not over ridden in the individual plugins
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation