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

TOPIC: Strange behaviour of css

Strange behaviour of css 11 years 2 months ago #2624

Hi,
the popup windows (Quick look, Ask for infos) look very poor as you can see at this link .

• Style is partially loaded
• Fonts are displayed in Times New Roman
• Add to cart button shows no cart icon and no dropdown effects.
• Cart button doesn't work even on detail pages, not only into popups.

Reloading the page sometimes works, sometimes not, and the button is displayed correctly just for half a second, then becomes a simple gray rectangle.
Looking at the code I noticed that flexibleVM2Global.css is loaded twice on the page.

Everything works when i turn javascript off from the browser settings

I already tried the following with no results:
• changing the base template to default beez20
• unpublishing modules like Widgetkit, Maximenu etc.
• testing on differrent browsers (Chrome, Safari,Firefox...).

Thank you in advance
Last Edit: 11 years 2 months ago by Leonardo lomartire. Reason: needed to explain better
The administrator has disabled public write access.

Strange behaviour of css 11 years 2 months ago #2668

Hi,

We have changed the layout of "add to cart" button of Virtuemart to CSS3 button with PureMArt.
But If you have a "Custom Field with Stockable Variant" in any product, the "add to cart" button becomes the default version. 'cause it MUST be, otherwise it doesn't work. Because depends on the stock number, the "add to cart" button is changed to "notify me" button. We needed to get back to original layout in case "custom field, Stockable variant" is enabled to keep this changing.

It is also same in our DEMO:
flexiblewebdesign.com/virtuemart-2-template-puremart/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=46&virtuemart_category_id=6

And one more advice that i noticed in your website; while dealing with "custom field, cart variant" don't leave the parent product with ZERO stock number, but give it something more. Otherwise the product will be labeled as "sold out" in category browse page, even though its child product has some stock. Because in category, the system shows the parent and be aware of the stock of the parent only (not its child product).
It is safe to put any value other than ZERO for parent since the parent is not an orderable product, do it just to remove the "sold out" label.

About loading the flexibleVM2Global.css twice in the page was a mistake of us, and we have fixed in the newest version. But still it won't hurts. And it won't give any slowness in the page loading, because at first line CSS gets loaded and cached then when it is called 2nd time, it is loaded instantly. But still it is unnecessary to load it twice though. It just doesn't sound right. But it won't hurt at all.

And about the layout difference between normal page and quicklook, ask question popup.
Because those popup plugin uses the "tmpl=component" parameter which doesn't load the CSS file that comes from your joomla template.
But you can include those CSS to this page manually as well. For this purpose, open this PHP file:

soldout.caperaweb.it/templates/capera_base/component.php

And manually include some CSS files (between <head> </head>)
For instance, you can include this CSS file, with this:
<l-ink rel="stylesheet" href="templates/capera_base/css/template.css" type="text/css" />
(important!! don't forget to change the l-ink with link in the above line. (i can't type link here, because we are in the forum page which is actually a HTML page)

Or any CSS file as you wish.

And one more advice to you. Next time when you create a topic in this forum, don't type more to make your topic goes up. Because the answers by our support members are given by starting from the last ;)

Regards.
Forum Support.
Last Edit: 11 years 2 months ago by Support.
The administrator has disabled public write access.

Strange behaviour of css 11 years 2 months ago #2673

Thank You so much for all solution and advices. We'll put into practice soon.

Francesco
The administrator has disabled public write access.

Strange behaviour of css 11 years 2 months ago #2699

Sure.

If not works, or you struck somewhere... let me know.

Regards,
Forum Support.
The administrator has disabled public write access.
Time to create page: 0.081 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