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

TOPIC: css keeps on getting overwriten

css keeps on getting overwriten 11 years 2 months ago #2815

Hi,

Love your template!

A few little things; when I use cart attributes a few funny things happen:

- Cant unflag "new" product - tried from your plug in but nothing happens
- Cant change css, it keeps on getting overwritten by a other file with the same name
- Cant get related products to show

None of these are issues when I don't use cart attributes, can you suggest a solution please?

joomla 2.5.9
virtuemart 2.0.18a


Also, can some minor customization be done on your template? I would like to see the product volume show total as they fill the cart in either the cart or on the sidebar menu. We export furniture and need to fill containers to a maximum of 69 CBM

Thank you

Rick
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 2 months ago #2817

Hi Rick,

do number 2 first ..
either add !important to the end or just delete the entry you don't want..

I assume your writing your css in your template files but as the Puremart get loaded after these they have precidence - hence the cascading style sheets! ;)

e.g.

#myid {
color:red !important;
}

Number 1 & 3 - can you show me an example of what you mean? urls?

Re customisations, a incrememting volume is nothing to do with the template - this is either a special plugin or hacks to the product and cart models to achieve this.

We can give you an address of a specialist Virtuemart customiser that we have had dealings with if you need this...

Regards,

Admin
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 2 months ago #2818

John,

Thanks for the quick reply,

yes, I am making changes in my custom css files for my template, this !important will work in these files?

To see please other issues, log in www.elitedesignfurn.com/wholesale/trade-log-in

User: wholesale
pw 123456

www.elitedesignfurn.com/wholesale/product/sorted-by-collection-name/astor - "new" flag
www.elitedesignfurn.com/wholesale/product/sorted-by-collection-name/astor/astor-night-table-espresso-detail - related product not showing

Please send me a recommendation for customization, I would prefer a plug in!

Thanks

Rick
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 2 months ago #2822

yes, I am making changes in my custom css files for my template, this !important will work in these files?

Indeed - any !important always takes precidence..
- Cant unflag "new" product - tried from your plug in but nothing happens

I'm not sure what settings your using (maybe a screenshot of your template config? - there's a lot of possibilities in our templates) but if you just want rid of the new label (is it marked somewhere?) you could do it by css..
add to your template.css
.FlexibleNew {
  background: none !important;
}
 

whether the badge shows is decided by
// CHECK IF THE PRODUCT IS NEW OR OLD. IF THE PRODUCT WAS CREATED LESS THAN 1 WEEK AGO, IT WILL HAVE "NEW" BADGE.
if ($createddate > $today) {
							$NEWorOLD = "FlexibleNew";
							} else {
							$NEWorOLD = "";
							}

so if your product create dates get over a week old the label disappears anyway.. :)


for number 3 I need to know your template setup - see screen shot

Re customisation - the company is called http://www.gjcwebdesign.com
Attachments:
Last Edit: 11 years 2 months ago by John.
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 2 months ago #2823

John,

Okay, solution for css issues works, no more flags!

Concerning template layout as you attached, I have tried every possible combination, but still no related products, actually, it doesn't matter what combination I choose, there is no change to product or category page!

Thanks for the recommendation for customization, I will send them details shortly!

Rick
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 2 months ago #2824

Hi again,

for number 3 (related products) it was more so I could set our test shop like yours to see if we can recreate the problem.

Alternatively quite happy to have a look at your site if you can make us a login : if so please send the details to This email address is being protected from spambots. You need JavaScript enabled to view it.

Regards
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 2 months ago #2868

Hi Rick,

had a look at your admin setup for related products - looks fine.

Is there any example of related prods showing up in wholesale? Is it a problem only if they have /are children?

Would need to have a look in your DB (via cPanel) and ftp access to have a good look... (emailed to me - don't post!)

Re css - the underline example on tabs you gave me -
If you look at the attachments you'll see the underline comes from a css file wholesale/templates/rt_gantry/html/com_virtuemart/assets/Flexible/tabcontent.css line 25

flexibleVM2Global.css doesn't act on it..

this css put in any file e.g.
 
.tabsstyleDIV .shadetabs li a {
  text-decoration: none !important;
}
 

will overwrite it.

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

css keeps on getting overwriten 11 years 2 months ago #2872

Okay, figured out my issue with css!

If the tabstyleDIV change is after a FlexibleNEW change in a css file nothing happens!!! by putting it above the FlexibleNEW it works

Learned a valuable css lesson today!

Will look at the related items a little more and get back to you

Thanks for now!
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 2 months ago #2936

Hi,

you might notice that, the flexibleVM2Global.css is being loaded in the website twice.
It was a minor issue and has been fixed already. To prevent it to be loaded twice in the website can be solved by looking at these PHP files:

ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/assets/includes//flexibleMartGlobal.php
ROOT/templates/<yourjoomlatemplate>/html/mod_virtuemart_cart/default.php
ROOT/templates/<yourjoomlatemplate>/html/mod_virtuemart_search/default.php

And make sure all of these 3 php files, try to load the flexibleVM2Global.css with this PHP line:
JHTML::stylesheet($flexibleGlobalCSSfilename, $flexibleGlobalCSSpath);

Then there will be only one CSS loaded in the website. But in practical, it is no bad to load the same css file twice in the website. It would just give you some trouble if you are using FireBug (or any developer tool), because your CSS changes will be overwritten by the other CSS file. Beside this, nothing will be wrong. It won't even give any slowness while loading the website, because once the 1st one gets loaded by the browser, it would be sent to internet temporary history folder, and the 2nd one gets loaded instantly, since they have the same file name and their sizes are the same.

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

css keeps on getting overwriten 11 years 2 months ago #2969

Hi,

Thanks for reviewing my posts, yes, this css being loaded twice has given me a BIG headache as making custom changes get written over right away!

I have found the files you have listed but I am at a loss by what you mean - "And make sure all of these 3 php files, try to load the flexibleVM2Global.css with this PHP line:

JHTML::stylesheet($flexibleGlobalCSSfilename, $flexibleGlobalCSSpath);"

Solving the above will be a great relief!

Thanks

Rick
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 2 months ago #2981

Hi Rick,

Big admin is offline at the mo - but think he means check that all 3 of the files

ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/assets/includes//flexibleMartGlobal.php
ROOT/templates/<yourjoomlatemplate>/html/mod_virtuemart_cart/default.php
ROOT/templates/<yourjoomlatemplate>/html/mod_virtuemart_search/default.php

only try to load the css vis the code line

JHTML::stylesheet($flexibleGlobalCSSfilename, $flexibleGlobalCSSpath);

so check there is no code calling flexibleVM2Global.css any other way..
(I think) ;)

The boss will confirm this when he's back on line..

regards
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 2 months ago #2991

John,

Your explanation is correct, commented one line out of mod_virtuemart_cart and the double css is GONE!

Your contact at GJC webdesign for custom work was excellent, he made me a custom module for virtuemart in a few days!

Now I need to get related items working, as you asked previously, I checked parent product; related product shows. On child products it doesn't show.

Any suggestions?
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 2 months ago #2994

Hi Rick,

would you be able to confirm the problem is still there with Puremart disabled? (related prods)

Please can you test with Puremart completely disabled.
To do this just rename the folder

ROOT/templates/YOUR_TEMPLATE/html/com_virtuemart

to

ROOT/templates/YOUR_TEMPLATE/html/com_virtuemart2

if your using over-rides set them off as well in Configuration->Templates

Thanks for your patience..

Cheers
The administrator has disabled public write access.

css keeps on getting overwriten 11 years 1 month ago #3030

Hi Rick,

While you are adding custom field or "related products" to any child product, there is a special checkbox shows off in the VM Backend;

Attachment Pasted_Image_3_9_13_4_37_PM.gif not found



You need to check this box before clicking SAVE button

Regards.
Forum Support.
Last Edit: 11 years 1 month ago by Support.
The administrator has disabled public write access.
Time to create page: 0.133 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