Category sub cats problem after update to 1.5.3

  • Posts: 179
  • Thank you received: 17
12 years 7 months ago #23334

Please see attached image :

My sub categories in the page were all left justified before the update, now they are all centered. I have checked all the modules and they have 'no' selected for centering.

Attachments:
Last edit: 12 years 7 months ago by rikatos.

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 7 months ago #23374

It's not a text-align modification but a margin modification that you need to add in your CSS:

.hikashop_category_listmenu{
margin-left: -30px;
}

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

  • Posts: 179
  • Thank you received: 17
12 years 7 months ago #23377

Sorry I pointed out the wrong part, it is not the blue menu I am worried about, it is the category listings on the main content part.

You will see under Lifejackets that Adult lifejacket etc are now all centered. Before you chose the option 'no' in text centre on the module and they aligned to the left, now they dont.

Last edit: 12 years 7 months ago by rikatos.

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 7 months ago #23382

You should try to turn off the "text centered" option of you menu with the id 34. You will find it via the menu Display->Content menus.

The problem is that that option was not working before and we fixed it. Since you have it turned on in the options of your menu, the text is now centered.

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

  • Posts: 179
  • Thank you received: 17
12 years 7 months ago #23383

Im afraid, as you will see from the message above, I already have it set to no. All my menu modules have this set to no but since update it has reverted to center whatever the option is set to.

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 7 months ago #23384

Well, you said that you checked your modules, but I'm talking about a menu. Did you check that menu's options ?

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

  • Posts: 179
  • Thank you received: 17
12 years 7 months ago #23385

SOrry, yes Under Display --> Meus they are all set to no centering.

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 7 months ago #23406

That's strange...
The CSS code generated is:
#hikashop_category_information_menu_34 div.hikashop_subcontainer {
text-align: center;
}

which indicates that this option is turned on for the menu 34...

Anyway, a simple way to solve the problem for good is to add the CSS code:
div.hikashop_subcontainer {
text-align: center !important;
}

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

  • Posts: 179
  • Thank you received: 17
12 years 7 months ago #23410

I used text-align : left of course rather than center and all is now good again, thanks for all your help today :)

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

  • Posts: 82
  • Thank you received: 1
12 years 7 months ago #23603

I am also having this issue. WHERE in the CSS do I change the code? Please be specific.

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 7 months ago #23618

AS you can see in my message, I use the word "add", not "change". So there is no CSS to change. You need to add the CSS provided in my previous post in your hikashop CSS file in the front end CSS file that you can edit via the interface in the Display tab of the configuration. You can add it at the beginning or at the end, as you like.

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

  • Posts: 41
  • Thank you received: 1
12 years 7 months ago #23678

Howdy, I've just upgraded to 1.5.3 as well and had the same problem happen - everything aligned center, and yes I can use CSS to fix it, but something odd has definitely happened during the upgrade. Been through all of modules and menus and they are all set to No as far as the Center option goes.

I've also tested changing the option on one of the menu items to Yes, saving and then changing it to No, but it still stays centered.

Out of interest, where do these values live in the database. I just had a look to see if it was set as Center in there but couldn't find it amongst the Hikashop tables - or is it JSON encoded as menu item paramenter?

Joomla 1.6.5/HikaShop 1.5.3

Last edit: 12 years 7 months ago by nathan.

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 7 months ago #23686

Yes, the latest version of HikaShop doesn't take into account anymore the centering for listings.
You need to change the code:

$css.='
#'.$main_div_name.' div.hikashop_subcontainer {
	text-align:center;
}
#'.$main_div_name.' div.hikashop_container {
	text-align:center;
}
			';
by:
$center = $params->get('text_center');
		if(!empty($center)){
		$css.='
#'.$main_div_name.' div.hikashop_subcontainer,#'.$main_div_name.' div.hikashop_subcontainer span {
	text-align:center;
}
#'.$main_div_name.' div.hikashop_container {
	text-align:center;
}
			';
		}else{
			$css.='
#'.$main_div_name.' div.hikashop_subcontainer,#'.$main_div_name.' div.hikashop_subcontainer span {
	text-align:left;
}
#'.$main_div_name.' div.hikashop_container {
	text-align:left;
}
			';
		}
in the file administrator/components/com_hikashop/helpers/module.php in order to solve the problem.

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

  • Posts: 41
  • Thank you received: 1
12 years 7 months ago #23687

Thanks for the reply Nicolas, but I'd rather use CSS than go modifying core files, which I'm sure you'd recommend as well...

I've fixed the listing with the css override and also had to left align "hikashop_product_name" - can I just ask, what's the obsession with centering everything all about?

Any reason why the latest version doesn't take into account the centering - are you going to remove that parameter?

Loving working with HikaShop though, very refreshing...if I could post a review on the JED I would :-)

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
12 years 7 months ago #23693

The code modification I posted will be included in next release so you won't have any problem when updating if you do it yourself.

We changed all the listing views for the last release in order to include effects and a carousel mode:
www.demo.hikashop.com/index.php?option=c...5&Itemid=103&lang=en
The centering not working was a byproduct of all the modifications we had to make. We won't remove the option.

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

  • Posts: 41
  • Thank you received: 1
12 years 7 months ago #23694

Ok cool and thanks - and yes the Carousel is a nice addition

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

Time to create page: 0.102 seconds
Powered by Kunena Forum