VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: lausianne on January 25, 2018, 16:35:36 PM

Title: Cart: inconsistent html, missing classes
Post by: lausianne on January 25, 2018, 16:35:36 PM
Hello,

I'm working on the styling of a shopping cart, and have some difficulties.

Html: "Selected shipment" is h4, "Selected payment" is h3 - they should be the same
Classes: Some classes repeat in several rows - no problem. But: the rows themselves have no specific classes. Therefore some items within a certain row are hard to grab.

I could change the template but would rather not do that, because of updates etc.

Maybe a developer could consider improvements? Thank you!
Title: Re: Cart: inconsistent html, missing classes
Post by: GJC Web Design on January 25, 2018, 17:50:59 PM
is this the core templates?
if so versions please!
Title: Re: Cart: inconsistent html, missing classes
Post by: lausianne on January 25, 2018, 19:12:16 PM
Sorry. Core templates, VM 3.2.10

If you have a suggestion for additonal templates (also paid ones), I'd appreciate it. Especially for the cart (mobile ...)
EDIT: I am not looking for a Joomla template, the design is given. Just for VM, so the cart output is divs, not tables.
Title: Re: Cart: inconsistent html, missing classes
Post by: Jörgen on January 25, 2018, 20:02:32 PM
Which core template ? There are several to choose from.

You will not get rid of all the tables. Some views meant to be sent with email or printed should remain tables.

I would suggest olympian themes, I use Hera, but Zeus is a more recent template.

https://www.olympianthemes.com/ (https://www.olympianthemes.com/)

regards

Jörgen @ Kreativ Fotografi
Title: Re: Cart: inconsistent html, missing classes
Post by: lausianne on January 29, 2018, 10:45:01 AM
Hi Jörgen,

Thanks. I'm confused now. Now I'm not sure what you mean by template. In VM > Configuration > Templates there is a section "Templates and Layouts". This has a dropdown "Cart layout". This has only one choice: "default". And that's what I am currently worried about.
I have everything set to default in this section, my Joomla base template is Joostrap, very much modified. It has no provisions for VM.

E-Mail and Print is no problem, because it does not need to be responsive. Only the cart on screen matters, and as tables it does not scale well.

Those themes you mentioned are very nice, but they would restyle the whole site, which is not an option for this project. And buying a whole theme just to get a single file out of it ... I hoped that there was such a file floating around in the community that I could use for starters.

After more research: Template is loaded here: .\components\com_virtuemart\views\cart\tmpl\default.php
Template for the pricelist: .\components\com_virtuemart\views\cart\tmpl\default_pricelist.php
This is where the "dreaded" tables are created. In default.php it says

// This displays the pricelist MUST be done with tables, because it is also used for the emails

That, if it's true, is a real problem. Checking http://heravm3.olympianthemes.com/ - I see, still tables. Nicely styled, but still not really good.

Anyway, I let myself be inspired by Olympic themes, and styled something that should be good enough.

Thanks again, Jörgen!

Regards,
Ralf
Title: Re: Cart: inconsistent html, missing classes
Post by: Jörgen on January 29, 2018, 14:12:40 PM
Sorry to say there are only complete Joomla templates available as far as i know. But Yu can assign templates to individual parts of the design if that would be a solution. And You could also break out parts from a template and incorporate in Your own.

Hope I gave You som more help, don´t want to spread confusion in to many places ;)

regards

Jörgen @ Kreativ Fotografi