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/13/2020 11:19 AM by
Will Strohl
Which API function returns the promotion product
5 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 1 of 2
1
2
>
>>
Author
Messages
3ART Technologies
Basic Member
Posts:37
7/6/2019 9:20 AM
Hi
Can any one tell me which API function returning the promotion products information
Regards
Will Strohl
Veteran Member
Posts:570
7/6/2019 3:42 PM
[quote=RB;1157]
Can any one tell me which API function returning the promotion products information
[/quote]
What information are you specifically hoping to see returned? Maybe an example could help. :)
Will Strohl, Upendo Ventures
Hotcakes Cloud
|
Get Support
|
Code Support
Official Cloud & Support provider for Hotcakes
3ART Technologies
Basic Member
Posts:37
7/13/2019 11:11 AM
[quote=Will Strohl;1158][quote=RB;1157]
Can any one tell me which API function returning the promotion products information
[/quote]
What information are you specifically hoping to see returned? Maybe an example could help. :)[/quote]
I already read the list of promotion items by sql table thanks
Will Strohl
Veteran Member
Posts:570
7/25/2019 2:05 PM
I wouldn't recommend directly querying the database in any third-party application. The database is never part of the API and is subject to breaking changes during any and all upgrades.
When this happens, it not only makes the application look bad, but oftentimes also the developer(s) involved - causing the organization to question why they used either in the first place. This scenario becomes dangerous and costly very quickly for all parties.
Alternatively, it's always better to use whatever API options are available.
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 6:09 PM
I already change it from the db to the API it's by the help of the following code and it's working fine thanks
var HccApp = HccAppHelper.InitHccApp();
var all_featuredProducts = HccApp.CatalogServices.Products.FindFeatured(1, 50000);
var listResult = all_featuredProducts.AsEnumerable().OrderByDescending(i => i.CreationDateUtc).Take(3).ToList();
You are not authorized to post a reply.
Page 1 of 2
1
2
>
>>
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