Menu
Product
Showcase
Partners
Community
Resources
Services
Sign Up / Log In
Try It Now
Download
Product
Showcase
Partners
Community
Resources
Services
Sign Up / Log In
Forums
Search Forum
Search
Advanced Search
Topics
Posts
Unanswered
Active Topics
Prev
Go to previous topic
Next
Go to next topic
Last Post 5/14/2020 9:49 PM by
Will Strohl
How to get the category list in serverside programming
11 Replies
1 Subscribed to this topic
1 Subscribed to this forum
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Page 2 of 3
<<
<
1
2
3
>
>>
Author
Messages
3ART Technologies
Basic Member
Posts:37
5/10/2020 10:02 PM
Hi,
I tried the code
var HccApp = HccAppHelper.InitHccApp();
var allCats = HccApp.CatalogServices.Categories.FindAllSnapshotsPaged(1, 5000);
but it's only returning the default language caption and properties, how I will get different language category property like name and rewrite URL
Will Strohl
Veteran Member
Posts:570
5/12/2020 12:57 PM
Hello:
Can you please provide some more details about what was returned? I'm not sure I understand. Thanks! :)
Will Strohl, Upendo Ventures
Hotcakes Cloud
|
Get Support
|
Code Support
Official Cloud & Support provider for Hotcakes
3ART Technologies
Basic Member
Posts:37
5/12/2020 5:54 PM
Hi,
Thanks for the reply, I have multilanguage portal English and Arabic. Once I called the product through the server-side API, it is returning me the active language product information. (Like if I am in Arabic the Arabic product data I received and When I am in English the English data is receiving).
But when it comes to categories, whatever the language I selected it's only returning me the English data. I already make sure the translation exists.
I don't know why this is the behaviour of API. Temporarily I collected data from the database but I want to that with API
Will Strohl
Veteran Member
Posts:570
5/13/2020 11:23 AM
Have you debugged the API call? When you do, please check the code to see if you're specifying the language and also inspect the request to see if the headers are being sent with a language parameter. Even in a threaded context, you should be able to see that by debugging it.
Will Strohl, Upendo Ventures
Hotcakes Cloud
|
Get Support
|
Code Support
Official Cloud & Support provider for Hotcakes
3ART Technologies
Basic Member
Posts:37
5/13/2020 6:23 PM
I found very strange thing :S, Once I tried to deploy the module on the pages which created by HCC wizard, it returning me the correct value, but when i placed the same module in my customer DNN page it is only getting the English URL. In both cases the culture set as ar-SA. I did not get why it is behaving like that.
The setting is showing me ar-SA in both pages.
[img=https://i.ibb.co/kGQYXfx/lanugage-Problem.png]Image problem[/img]
You are not authorized to post a reply.
Page 2 of 3
<<
<
1
2
3
>
>>
Private
General
--Ask Anything
--Content Management
--Customer Experience
--Marketing
--SEO
Merchants
--Catalog Management
--Marketing/Promotions
--Order Management
--Payments
--Shipping
--Store Administration (General)
Designers
--Themes
--Viewsets
--General Design
Developers
--Extension Points (Store-Relate...
--Implementation
--Installation and Upgrade
--Module Development
--General Development
Forums
Developers
Module Development
Sign-up for the Hotcakes Community Newsletter:
E-Mail Address