Author Topic: payment layout override  (Read 403 times)

jankoo

  • Jr. Member
  • **
  • Posts: 55
payment layout override
« 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

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2821
  • VirtueMart Version: 3.4
Re: payment layout override
« Reply #1 on: April 07, 2018, 10:28:00 am »
Try using css to modify the layout



regards
A

Joomla 3.8.13
php 7.1

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27109
  • Always on vacation
    • Jenkin Hill Internet
Re: payment layout override
« Reply #2 on: April 07, 2018, 15:19:14 pm »
You can override components/com_virtuemart/views/cart/tmpl/select_payment.php
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.3.9989 on Joomla 3.9.1 PHP 7.0.32
Testing VM 3.4.3.9993 on Joomla 3.9.1

jankoo

  • Jr. Member
  • **
  • Posts: 55
Re: payment layout override
« Reply #3 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