Jump to content

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

API helper class for CS-Cart 4 - FREE Rate Topic   * * * * * 2 votes

 

Posted 06 July 2015 - 02:28 PM #21

Hello friends... I am a newbie in cs cart. anyone can tell me how to override the template file..
I want to override orders/details.tpl in another addon.

Thank you...! :-)

 
  • imac
  • CTO
  • CS-Cart Architects
  • Join Date: 22-Nov 05
  • 1,849 posts

Posted 07 July 2015 - 09:47 PM #22

Hello friends... I am a newbie in cs cart. anyone can tell me how to override the template file..
I want to override orders/details.tpl in another addon.

Thank you...! :-)


There is a separate section in Docs "How to override a template": http://docs.cs-cart..../tpl_hooks.html
Here is an extra link:
http://stackoverflow...ariant-item-tpl
Ilya Makarov,
CS-Cart Architect Team
Suggest and vote for new features | Report a bug

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 16,123 posts

Posted 08 July 2015 - 08:49 AM #23

Hello friends... I am a newbie in cs cart. anyone can tell me how to override the template file..
I want to override orders/details.tpl in another addon.

Thank you...! :-)


For admin panel please use:

design/backend/templates/addons/YOUR_ADDON/overrides/views/orders/details.tpl

For store-front please use:

design/themes/YOUR_THEME/templates/addons/YOUR_ADDON/overrides/views/orders/details.tpl
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • Kriziun
  • Newbie
  • Trial users
  • Join Date: 31-Jul 15
  • 1 posts

Posted 31 July 2015 - 09:59 PM #24

Hi, i'm trying ti update tracking number by sending a request to http://host/api/shipments/1 via PUT request. I can receive a shipment data via GET request so id is correct.
My test data is {"carrier":"FEDEX","tracking_number":"111"}
But I received an error: {"message":"Bad Request: Only the tracking_number and carrier params can be updated with the setting 'Allow multiple shipments for a single order' set","status":400}

What i'm doing wrong?

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 16,123 posts

Posted 03 August 2015 - 09:36 AM #25

Looks like a bug in the app\Tygh\Api\Entities\Shipments.php file due to the following code:

if (Settings::instance()->getValue('use_shipments', '', $order_info['company_id']) == 'Y') {
      $data['message'] = __('api_shipments_not_allow_update');
      $valid_params = false;
}

The system checks value of the setting, but does not check input parameters.

Please contact CS-Cart support team.
GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration

Certified CS-Cart RU Developer | Сертифицированный разработчик на CS-Cart Русская Версия

 
  • demeldoo
  • Senior Member
  • Members
  • Join Date: 27-Jul 12
  • 880 posts

Posted 18 November 2015 - 12:09 PM #26

i read this http://doc.prestasho...REST webserviceand there are some prepared tools... 

 

hope this prepared solutions will be found in the future directly on cs cart api page



 

Posted 16 April 2016 - 09:54 AM #27

Hi there,

 

In the past few months, I left my API wrapper project alone :(

Yesterday I made some changes regarding bug reports, and released the first "official" release with version number 1.0.0

 

You can find the latest version of this wrapper class here: https://github.com/d...stvan/cscartapi

 

I'm using this tool for a lot of projects, and I realized, that this class is helpful, but it would be good if I will be able to install the package via Composer, and I'm working on a version which has a lot of helpful methods, and a beautiful API.

If you think it is a good idea, please share your ideas here.

 

Enhancements for version 2.0.x

- Composer compatibility

- New API (eg. CSCart::Products()->whereStatus('A')->get()->toArray()) which is similar to Laravel's Eloquent API

- Service provider for Laravel (I use this API in Laravel projects a lot)

- New HTTP Client version (you will have the option to use streamclient instead of curlclient) 



 
  • Rbraat
  • Newbie
  • Trial users
  • Join Date: 17-May 16
  • 2 posts

Posted 17 May 2016 - 02:29 PM #28

How can i create a new category with this tool?



 

Posted 19 May 2016 - 07:24 AM #29

How can i create a new category with this tool?

 

You can check the official API documentation here:

http://docs.cs-cart....categories.html

 

If you create a POST request to "/categories", it will create a new entry for you.

 

For more information about this tool, please check the readme file here: https://github.com/d...stvan/cscartapi



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 10,140 posts

Posted 19 December 2016 - 12:28 AM #30

Hello, you can directly in the home page (index.tpl) call Banner and blog data Can no one help me?

Happy to if I could understand your question. 


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.


 
  • markhedley
  • Advanced Member
  • Trial users
  • Join Date: 19-Nov 16
  • 129 posts

Posted 19 December 2016 - 04:44 AM #31

Hello, you can directly in the home page (index.tpl) call Banner and blog data Can no one help me?

stick to the topic perhaps???



 

Posted 21 December 2017 - 07:22 AM #32

Hi there,

 

In the past few months, I left my API wrapper project alone :(

Yesterday I made some changes regarding bug reports, and released the first "official" release with version number 1.0.0

 

You can find the latest version of this wrapper class here: https://github.com/d...stvan/cscartapi

 

I'm using this tool for a lot of projects, and I realized, that this class is helpful, but it would be good if I will be able to install the package via Composer, and I'm working on a version which has a lot of helpful methods, and a beautiful API.

If you think it is a good idea, please share your ideas here.

 

Enhancements for version 2.0.x

- Composer compatibility

- New API (eg. CSCart::Products()->whereStatus('A')->get()->toArray()) which is similar to Laravel's Eloquent API

- Service provider for Laravel (I use this API in Laravel projects a lot)

- New HTTP Client version (you will have the option to use streamclient instead of curlclient) 

 

Hello,

 

Where I can find the version 2? on the above link is version 1.

 

Thanks