Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Can Not Get Full Description Through Api Rate Topic   - - - - -

 
  • michael
  • Senior Member
  • Authorized Reseller
  • Join Date: 27-Oct 06
  • 229 posts

Posted 16 August 2020 - 06:57 AM #1

In the Json data, both short description and full description are empty, anyone know what condition missed ? Thanks !

Attached Files


Do whatever you want to do....

 
  • michael
  • Senior Member
  • Authorized Reseller
  • Join Date: 27-Oct 06
  • 229 posts

Posted 01 September 2020 - 10:14 AM #2

Anyone can help ? Very appreciate !


Do whatever you want to do....

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20910 posts

Posted 01 September 2020 - 10:39 AM #3

Do you mean GET request for product?


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • michael
  • Senior Member
  • Authorized Reseller
  • Join Date: 27-Oct 06
  • 229 posts

Posted 02 September 2020 - 10:29 AM #4

Do you mean GET request for product?

Yes, correct.


Do whatever you want to do....

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20910 posts

Posted 02 September 2020 - 12:53 PM #5

For products you should check short_description and full_description fields as described here

 

https://docs.cs-cart...s/products.html


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 

Posted 04 September 2020 - 02:18 PM #6

To solve this problem, you need to tell me how the query you do to get the correct results.



 
  • michael
  • Senior Member
  • Authorized Reseller
  • Join Date: 27-Oct 06
  • 229 posts

Posted 07 September 2020 - 04:32 AM #7

For products you should check short_description and full_description fields as described here

 

https://docs.cs-cart...s/products.html

Thanks for your reply, I tried the API get as below:

https://www.mydomain.com/api/products?page=1&pfull=Y&items_per_page=10&status=A&pcode=p116d4912789k280c4914433g209&sort_order=asc&sorting=code

Product code is: p116d4912789k280c4914433g209

 

But the return result only display as 

"pfull":"Y"

Not the full description details. So still can not get the value of the "full description".

 

Please check the screenshot. Hope you can help me, thank you again !


Do whatever you want to do....

 
  • michael
  • Senior Member
  • Authorized Reseller
  • Join Date: 27-Oct 06
  • 229 posts

Posted 07 September 2020 - 04:34 AM #8

Sorry, screenshot attached again.

Attached Files


Do whatever you want to do....

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20910 posts

Posted 07 September 2020 - 06:32 AM #9

Looks like full description is not available in products lists. You should extend the fn_get_products function or get product information by ID


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • michael
  • Senior Member
  • Authorized Reseller
  • Join Date: 27-Oct 06
  • 229 posts

Posted 07 September 2020 - 06:59 AM #10

Looks like full description is not available in products lists. You should extend the fn_get_products function or get product information by ID

 

Thanks, I tried the method as you mentioned in this topic: https://forum.cs-car...ll/#entry321317

 

It works. Looks like there is a bug for products API. 

 

The default description value is empty, need to add below code:

extend[]=description&extend[]=full_description

Attached Files


Do whatever you want to do....

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 20910 posts

Posted 07 September 2020 - 01:44 PM #11

Thank you for keeping us updated


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)