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
http://forum.virtuemart.net/index.php?topic=128401.0
Quote from: jenkinhill on March 06, 2015, 15:18:02 PM
http://forum.virtuemart.net/index.php?topic=128401.0
;D ;D ;D epic answer
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?? :-)
ok.. so he added version and still dont get answer? :D
from memory administrator\components\com_virtuemart\plugins\vmpsplugin.php public function displayListFE() if not over ridden in the individual plugins