[Solved] One subcategory not shown. It shows CID 0

  • Posts: 101
  • Thank you received: 12
10 years 10 months ago #177667

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 2.5.27
-- PHP version -- : 5.4.31

Hi,

Under the default Webshop category, I have 4 categories:

  • Baptism
  • Communion
  • Marriage
  • Confectionery
  • (I made an extra category TestCat1 which I will explain later)



When I go to Webshop, I can't see Confectionery next to the other three subcategories.
I added a new category TestCat1 and this is displayed correctly.
So it's just category Confectionery that is not displayed. This category has id 154 as you can see in the printscreen above.



In the image you can see I printed out the itemid, id and cid which I did with the following code in /templates/rt_mercado/html/com_hikashop/category/listing.php
$itemid = JFactory::getApplication()->input->getInt('Itemid'); 
$id = $this->params->get('id');
$cid = JFactory::getApplication()->input->getInt('cid'); 
echo "itemid: ".$itemid."<br>id: ".$id."<br>cid: ".$cid."<br>";

The problem is that somehow hikashop thinks that the CID of Confectionery is 0 instead of 154 and because of that 2 things happen.
1) Confectionery is not shown when you go to Webshop.
2) When you go to one of the subcategories of Confectionery, like for example Confectionery -> Gift papers, it shows Webshop, taxation category, order status, manufacturer as you can see in the image below instead of the Chrismas, Saint-Nicolas, Everyday and Unicolors (see on left menu for subcategories of Gift paper).
So Confectionery and its subcategories are getting a CID of 0 instead of their real CID.



What could be the cause of this?
In the database you can see that Confectionery really is a subcategory of Webshop.




You can see it as well in the breadcrumbs.
I'm really confused. Did I mess something up?

Thanks in advance for helping out.

Last edit: 10 years 10 months ago by SG.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 10 months ago #177685

Hi,

Would it be possible to have a link to your store ?
I see that you are using translations (Falang ?) ; maybe you are overriding something "more for that category which will affect the rest of HikaShop processing.

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: 101
  • Thank you received: 12
10 years 10 months ago #177755

Hi Jerome,

Sure, here are the links:
For the Gift Paper category: tinyurl.com/lsesexh
Here you should normally see four other subcategories:

  • Christmas – New Year
  • Saint-Nicolas
  • Everyday
  • Unicolors

And then the parent of Gift Paper is the category Confectionery which only has Gift Paper as subcategory:
tinyurl.com/kyxjyrm

Thanks for taking a look.

I will send you a pm with SU access just in case you need it.
I will refer this post in the PM.

Thanks!!!

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

  • Posts: 101
  • Thank you received: 12
10 years 10 months ago #177764

By the way i'm using Falang?
But how could Falang override something so important like the category id?
Is there a way to test this or something that i can disable temporarily?

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 10 months ago #178205

Hi,

Sorry for the delay ; I was working on my components and the HikaShop team seems to not have take a look at your problem (maybe because I started to answer you... well !)

I checked your backend and I saw that your put an ACL for the category "gift paper".
Only the group "SuperUserSG" has the authorization to display it ; but due to the rest of the category configuration ; the menu display some elements of the children categories.

So I reset the category ACL to all and now all is working properly.

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.
The following user(s) said Thank You: SG

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

  • Posts: 101
  • Thank you received: 12
10 years 10 months ago #178386

Hi,

That's ok Jerome and thanks for still looking into.
I'm glad it's solved. I wouldn't have found it without your help!!!!

What I don't understand is that it was showing the root categories.
You said "but due to the rest of the category configuration ; the menu display some elements of the children categories."
Was there something specific in the settings that made the subcategories of root show?
I would have except it to show nothing if the ACL wasn't assigned right.
I'm just trying to find to logic, behind so I might solve these kind of problems myself :-)

Thanks again Jerome!

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 10 months ago #178390

Hi,

Well, it will be difficult to me to tell you like that ; Just that HikaShop couldn't load the category (cause of the ACL) so it removed the CID and where there is no CID, HikaShop load the default category, which is the "1".
This last one is some kind of security in order to not try to load a category which does not exists (the 0).

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.
The following user(s) said Thank You: SG

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

  • Posts: 101
  • Thank you received: 12
10 years 10 months ago #178460

Hi,

That's a good enough anwser :-)
I will mark this thread as being solved.

Greets

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

Time to create page: 0.067 seconds
Powered by Kunena Forum