News:

Support the VirtueMart project and become a member

Main Menu

Methodprices: display name and description seperately

Started by iWim, April 13, 2021, 12:12:15 PM

Previous topic - Next topic

iWim

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

#1
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

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

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.