VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: jankoo on April 06, 2018, 23:05:37 PM

Title: payment layout override
Post by: jankoo on April 06, 2018, 23:05:37 PM
hi,

i need to override layouts for choosing payments.. i found the layout is created in file vmsplugin.php

but when i change layouts here it will rewrite with the updates.. why the layouts are created inside the functions?

please move the layout rendering to the /html / cart folder so we can override this..

thank you
Title: Re: payment layout override
Post by: AH on April 07, 2018, 10:28:00 AM
Try using css to modify the layout



Title: Re: payment layout override
Post by: jenkinhill on April 07, 2018, 15:19:14 PM
You can override components/com_virtuemart/views/cart/tmpl/select_payment.php
Title: Re: payment layout override
Post by: jankoo on April 07, 2018, 17:42:12 PM
i cant use css for what i need.

in the file components/com_virtuemart/views/cart/tmpl/select_payment.php is nothing..

i need to change <li> payments layout for every payment plugin..
that layout is happening inside functions in the /administrator/components/com_virtuemart/plugins/vmsplugin.php   

or is there any way i can use in my override layouts values from this functions? something as $this->payment->logo; $this->payment->name; etc..?
thx