Skip to main content

custom.css not loaded

More
13 years 8 months ago #85703 by jeroensci
Hello,

Can someone tell me why the frontend_custom.css is not loaded on the product pages? for exapmple: www.vanroonenzoon.nl/outlet/category/41-houthaarden

It does load on the category pages: www.vanroonenzoon.nl/outlet

Please help, It used to work fine.

HS2.0 Joomla 2.5.8

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #85751 by nicolas
Replied by nicolas on topic custom.css not loaded
Hi,

HikaShop CSS and JS files are not added to any of your pages. I've never seen that. It's definitely not a problem in HikaShop. It must be either a plugin doing that or coming from the template. You should first try to switch your template to see if that comes from the template or not, and if not, try to unpublish the plugins (and especially the system plugins) one by one to see which one could be the culprit.
Then, you can contact them to see why that happens.

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #85848 by jeroensci
Replied by jeroensci on topic custom.css not loaded
Hi,

i think that the completely not loading was a problem with the joomla system cache. This sometimes happens but disapears with a refresh of the page.

The problem i mentioned with the custom.css is still present.

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #85849 by jeroensci
Replied by jeroensci on topic custom.css not loaded
It looks if the specific category is loading it's own css:
#hikashop_category_information_menu_413

I

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #85850 by Jerome
Replied by Jerome on topic custom.css not loaded
Hi,

The problem is that we do not do something special in the product page. For all of our pages we include the custom css with the same technical.
So, if with some pages, the css is included and in other, it's not. it is not an HikaShop bug.
Please check your cache extensions or any other extension which could modify the joomla content (like an extension to minimize CSS for example).

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #85852 by jeroensci
Replied by jeroensci on topic custom.css not loaded
Ok I just solved it, it was a problem with a java/css exclusion plugin.

Sorry ;)

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #85878 by jeroensci
Replied by jeroensci on topic custom.css not loaded
I still need a little of your help.

I can't get a line-through at my price before discount. (i did set the option 'show price before discount' at the corresponding module view).
I thougt it was a css problem but it is still there now.

example: www.vanroonenzoon.nl/outlet/category/41-houthaarden

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #85880 by jeroensci
Replied by jeroensci on topic custom.css not loaded
Firebug says it is product_price_full, but I think this should be product_price_before_discount, how do I change that?

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #85922 by Xavier
Replied by Xavier on topic custom.css not loaded
It's product_price_full, but you can add a class or change it name by editing the view "product / listing_price".

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #85940 by jeroensci
Replied by jeroensci on topic custom.css not loaded
Dear Xavier,

when I change in the view product/listing_price:
<span class="hikashop_product_price_full<?php echo $class; ?>">

to

<span class="hikashop_product_price_before_discount<?php echo $class; ?>">

It also changes products without discount en puts a line_through in the full price

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #85969 by Eliot
Replied by Eliot on topic custom.css not loaded
Hi,

It's normal since your removed the original class.
The best to do is to keep this class and add another one like that:
Code:
<span class="hikashop_product_price_full<?php echo $class; ?> hikashop_product_price_your_style">

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #86041 by jeroensci
Replied by jeroensci on topic custom.css not loaded
I didn't change the original listing_price.php (version 2.0)

I tried an older version of listing_price.php (version 1.5.7) and then it works ok.

Maybe it is because of a change in the code?

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #86086 by Xavier
Replied by Xavier on topic custom.css not loaded
Yes some changes have probably been made in this file since 1.5.7

If you want to use the latest file you can use the method given by eliot to add a class dynamically.

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #86806 by jeroensci
Replied by jeroensci on topic custom.css not loaded
Thank you for helping me. Can someone point me in the right direction how i make it work dynamically?

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #86870 by Xavier
Replied by Xavier on topic custom.css not loaded
Don't you have solved your problem ?
On the page " www.vanroonenzoon.nl/outlet/category/41-houthaarden " the price before discount got a line-trough.

To use dynamic class you can do something like:
Code:
if(!empty($price->price_orig_value_without_discount_with_tax)) $class = 'yourClass'; else $class = '';

Please Log in or Create an account to join the conversation.

Time to create page: 0.342 seconds
Powered by Kunena Forum