VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: iWim on April 13, 2021, 12:12:15 PM

Title: Methodprices: display name and description seperately
Post by: iWim 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
Title: Re: Methodprices: display name and description seperately
Post by: Jörgen 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
Title: Re: Methodprices: display name and description seperately
Post by: iWim 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
Title: Re: Methodprices: display name and description seperately
Post by: Jörgen on April 13, 2021, 20:59:39 PM
Nice to hear that You found a solution
Jörgen