custom.css not loaded

  • Posts: 10
  • Thank you received: 2
11 years 4 months ago #85703

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.

  • Posts: 81677
  • Thank you received: 13102
  • MODERATOR
11 years 4 months ago #85751

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.

  • Posts: 10
  • Thank you received: 2
11 years 4 months ago #85848

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.

  • Posts: 10
  • Thank you received: 2
11 years 4 months ago #85849

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.

  • Posts: 26032
  • Thank you received: 4006
  • MODERATOR
11 years 4 months ago #85850

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.

  • Posts: 10
  • Thank you received: 2
11 years 4 months ago #85852

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.

  • Posts: 10
  • Thank you received: 2
11 years 4 months ago #85878

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.

  • Posts: 10
  • Thank you received: 2
11 years 4 months ago #85880

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #85922

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.

  • Posts: 10
  • Thank you received: 2
11 years 4 months ago #85940

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.

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #85969

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:

<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.

  • Posts: 10
  • Thank you received: 2
11 years 4 months ago #86041

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #86086

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.

  • Posts: 10
  • Thank you received: 2
11 years 3 months ago #86806

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #86870

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:

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.099 seconds
Powered by Kunena Forum