Author Topic: Methodprices: display name and description seperately  (Read 209 times)

iWim

  • Jr. Member
  • **
  • Posts: 73
Methodprices: display name and description seperately
« on: April 13, 2021, 12:12:15 pm »
Hey, hey,

I would like to rearange how the shipment data is displayed.

Currently:
Method
Mothod description (Fee € 1,23)

I would like it to be:
Method (Fee € 1,23)
Method decription

I copied sublayouts/methodprices.php to my template.
But it seems that $plugin->{$pluginName} displays both the shipment name and the description.

How can I display them seperately?

Thank you.
Wim

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3479
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Methodprices: display name and description seperately
« Reply #1 on: April 13, 2021, 15:15:54 pm »
You can accomplish this with css.

Tag name and description first:
<myspan or div>Method name</my span or div> <another span or div>Method description</another span or div>

Then arrange the display of these with some clever CSS or javascript.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

iWim

  • Jr. Member
  • **
  • Posts: 73
Re: Methodprices: display name and description seperately
« Reply #2 on: April 13, 2021, 16:15:57 pm »
Hallo Jörgen,

I thought I could do it by an override.

I have decided to use the clever css of flexbox to order the different spans.

Thank you.
Wim

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3479
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Methodprices: display name and description seperately
« Reply #3 on: April 13, 2021, 20:59:39 pm »
Nice to hear that You found a solution
Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.