Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - FashionMart (SKU# FLEX-00008)

TOPIC: Module styling different on Home Page

Module styling different on Home Page 9 years 4 months ago #3125

I have FashionMart flex2 working on www.progienics.com
It looks great when viewing a category.

I have a VM Products module of "Best Sellers" scheduled to appear on a number of pages, including the home page.
When it appears on any category page its styling matches that of the category and looks like we want it to.

However, when it appears on the Home page it seems to revert to the default styling that VM uses, which is ugly.

Is there a module class suffix that I could use that would assign FasionMart's styling to that module or is there some other way to address this?

Thanks
The administrator has disabled public write access.

Module styling different on Home Page 9 years 4 months ago #3126

Hi,

where's a product page with it publihed?

Cheers
The administrator has disabled public write access.

Module styling different on Home Page 9 years 4 months ago #3128

www.progienics.com
It's on the left.
The administrator has disabled public write access.

Module styling different on Home Page 9 years 4 months ago #3129

I'm sorry - this isn't meant to be a hide & seek game - so what category page is it published on?

but you can try including the FashionMart css in the module.. just after the
defined('_JEXEC') or die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );

add

 
JHTML::stylesheet ( 'flexibleVM2Global.css', 'templates/rt_affinity/html/com_virtuemart/assets/css/', false );
 
Last Edit: 9 years 4 months ago by John.
The administrator has disabled public write access.

Module styling different on Home Page 9 years 4 months ago #3131

To see what it is supposed to look like go to www.progienics.com/component/virtuemart/?Itemid=222

To see the problem page go to www.progienics.com/

Notice how the home page "Best Sellers" module loses the styling associated with the cart.

By the way, I can't find a module named "Best Sellers" anywhere in the tree of the site.
Does it put them some place different for VM?

Thank you.
The administrator has disabled public write access.

Module styling different on Home Page 9 years 4 months ago #3137

Hi,

Our VM Template is responsible to style your Virtuemart Component ONLY.
VM - Featured Product Module is excluded from this. But since the add to cart button in the VM module and VM component use the same exact Class names, our VM Template is stylizing the add to cart button in VM module if the module is published where our VM Template is active.

it because this CSS file: flexibleVM2Global.css is loaded in the website only where our VM Template is active. Which is this page: www.progienics.com/component/virtuemart/?Itemid=222
(because this is Virtuemart Component page)

But our VM TEmplate is deactivated in this page: www.progienics.com/
Because it is not a Virtuemart Component page.

You need to load this CSS file everywhere in your website, so no matter which page you are, the add to cart button will be GREY instead of GREEN.

To do it, you can do this:

Open this PHP file:
/templates/YOUR_TEMPLATE/index.php

and anywhere in this PHP file add this PHP line:
<?php 
   JHTML::stylesheet ( 'flexibleVM2Global.css', 'templates/rt_affinity/html/com_virtuemart/assets/css/', false ); 
?>

So your website will load the flexibleVM2Global.css in your entire website no matter what page it is. And the problem will be solved. You won't ever see the GREEN add to cart button no where anymore.

Regards.
Forum Support.
The administrator has disabled public write access.
Time to create page: 0.115 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo