Jump to content

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

About Language Api Rate Topic   - - - - -

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

Posted 08 July 2020 - 02:17 PM #1

Does anyone know how to retrieve other language (Except English) of product info by restful api? We can only get English info through the API interface.
There is no description of how to set language from the online restful api document, 
Also, the params restrieved from the restful api are more then the restful api document. Which looks like this,
    "params": {
        "area": "A",
        "use_caching": true,
        "extend": [
            "product_name",
            "prices",
            "categories",
            "categories"
        ],
        "custom_extend": [],
        "pname": "",
        "pshort": "",
        "pfull": "",
        "pkeywords": "",
        "feature": [],
        "type": "simple",
        "page": 1,
        "action": "",
        "filter_variants": [],
        "features_hash": "",
        "limit": 0,
        "bid": 0,
        "match": "",
        "tracking": [],
        "get_frontend_urls": false,
        "items_per_page": 10,
        "apply_disabled_filters": "",
        "load_products_extra_data": true,
        "storefront": null,
        "ajax_custom": "1",
        "pcode": "p116d4912789k280c4914433g209",
        "sort_order": "desc",
        "sorting": "code",
        "sort_by": "timestamp",
        "include_child_variations": true,
        "group_child_variations": false,
        "sort_order_rev": "asc",
        "total_items": "1",
        "return_count": 1
    }
 
Maybe the online developer document not update ?
 
Thank you very much !

Do whatever you want to do....

 
  • soft-solid
  • Junior Member
  • Authorized Reseller
  • Join Date: 19-Apr 10
  • 1203 posts

Posted 08 July 2020 - 11:07 PM #2

Hello

 

Please try add to param "lang_code" with code country e.g "ru" or "pl".

 

Best regards

Robert


Team of SoftSolid
cs-cart.pl, marketplace

We specialize in creating the highest quality addons, safe, useful and flexible


 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11659 posts

Posted 09 July 2020 - 07:01 PM #3

You might also try yoursite.com/api.php?sl=en (whatever lang code you want)


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.