- Posts: 51
- Thank you received: 0
category in product page
i found out how to show the brand on the product page that i asked in a previous post using the following code found in another thread
Now what i want is your help to modify this code to make it show one subcategory assigned to the product
To the product i have assigned 2 categories like this : main category-category_A main category-category_B-subcategory
so i want to display only the one of them or maybe two (if there where three subcategories) linked to the category description page
the final look of my product page should be like this:
-title
-image
-CATEGORY(linkable)
-price
-extra fields
etc etc
thanx
Please Log in or Create an account to join the conversation.
I think that you can try something like that:
in the view "product / show_default".
Please Log in or Create an account to join the conversation.
for example... www.ubook.gr/ ???????????? what is the menu name and category ????????
Please Log in or Create an account to join the conversation.
Try this:
Please Log in or Create an account to join the conversation.
thats perfect thank you !!!!
to refine it a little and get exactly what i want !! :
imagine we have the root directory with categories... in there there are : BIG_CAT_A and BIG_CAT_B
each of them has its own sub cats .. i d like that script in (2 parts??) to take BIG_CAT_A and show it with other attributes e.g. subcategories and products contained
and take BIG_CAT_B and show its subcategories only with other attributes e.g. just the description of the subcategories

i hope u understand !!!!
big thanx
Please Log in or Create an account to join the conversation.
Can you make a screenshot of want you want ?
I understand in the big parts but I don't see it clearly.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
screenshot is difficult
the general result is a bookstore that i want the writter to be clickable and show the details of each writer even if i have one or... three writers
and to show ofcourse the category of the book clickable again and when you click it to show all the books of that category
so i thought to make the writters as categories in a general big category (after root) called e.g. WRITTERS and in there to have all the writers and in each product to assign 1-2-3 or as many writers are for the book
and a second big category called e.g. CATEGORIES containing all the categories of the books . SO in the script i could assign manually the id of the big categories and tell to take the first and show this this bla bla and take the second and do the same ...or just hide it (if i dont want to show the categories)
!!!!
any questions ??????? hehhe
thanks
Please Log in or Create an account to join the conversation.
By this way, you will have two listing, the first one all the categories of the book, and the second one the list of the writers.
Please Log in or Create an account to join the conversation.
you made my day
thats perfect.. only more one tiny detail
when you click on the writer it shows you the details i would also like to show all the books that are under himanother thing .. when i click the category i doesn't show all the categories but only 4 . do you know why ??????
thank you
Please Log in or Create an account to join the conversation.
You already should have the products displayed.
Try to create a category listing menu, even if it's a hidden menu, it should solve the problem.
Could you give me an example for your second thing ?
Please Log in or Create an account to join the conversation.
check here ubook.igrouphost.com/index.php?option=co...106&name=&Itemid=300
this is the product page and click on ΛΟΓΟΤΕΧΝΙΑ
in the top menu you can see "category listing" is the one i created
i also sent you a pm with username and password to access the backend if you need !!!
about the other thing:
as i said there is a book(product) to the book are assigned two main categories a) the category and b) the writers
for the b) the writers (θαναηλακη πολη on the above link) if you click them you can see the category description (cause each writer is a category with image and description) until now which is right. Each writer though has written (been assigned to ) many books(products) so i would like those books to be displayed either on a module or under the description like a product listing.

thanks
Please Log in or Create an account to join the conversation.
To have the products displayed, you just have to replace "ctrl=category" to "ctrl=product" in the previous given code.
Please Log in or Create an account to join the conversation.
that worked

a problem .. ine the category.. if the book belongs to a subcategory e.g. literature->english literature it should show "english literature" but it shows nothing
if it belongs to literature it shows normal "literature"
whats wrong ???
thanx
Please Log in or Create an account to join the conversation.
Problem solved, that was because in the code given I was checking the parent_category_id, so it displayed nothing when the parent category were different than the root category.
I just replaced "if($categoryInfo->category_parent_id == '2')" by "if($categoryInfo->category_parent_id != '204')" (204 = writters category)
Please Log in or Create an account to join the conversation.
thank you !! i have another really big problem now
i finally started to import the products and hikashop stops responding
its loading around 4000 brands
100000 categories
and 250000 products
is there any limit or something ? cause i tested it with the first 1000 and it was ok
thanks
Please Log in or Create an account to join the conversation.
If a page is too long to charge (it's the case while you are uploading a csv) and the time go over the timeout setting of the server then it stops.
I suggest that you made many csv files from your main csv file, to reduce the charge.
Please Log in or Create an account to join the conversation.
i upload with a custom script directly to mysql
after the upload finishes and the db is complete
then i open hikashop, i go to categories-writers
or brands etc .. and i get a blank page
the same in the front end
Please Log in or Create an account to join the conversation.
With the debug mode you should see an error displayed.
Please Log in or Create an account to join the conversation.
ubook.igrouphost.com/administrator/index...tegory&task=edit&cid []=1029536
Please Log in or Create an account to join the conversation.
Where did you found this link ?
I don't see any category with this id in your category listing.
Just go on the root directory, show all sub elements and you would see 182 categories.
10009450 and 10009451 have strange numbers but, categories just before are : 204, 201, 200, ...
So, I really don't know what the database entry for the id "1029536", but for HikaShop, it's not a category.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.