Jump to content

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

How To Use Git And Cs-Cart Sdk On Windows?

  • bububeti
  • Member
  • Trial users
  • Join Date: 28-Aug 20
  • 24 posts

Posted 07 September 2020 - 08:01 AM #1

I want to develop a module using windows but the documentation is only for linux. I know I should use the cs-cart sdk but it is developed for linux/mac only. What should I do?

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

Posted 07 September 2020 - 07:57 PM #2

The biggest issue you're going to run into is the directory path separator.  Just ensure you use the php constant DIRECTORY_SEPARATOR on filesystem references.  For http references you should always use a forward slash since HTTPD (and others) will adjust for anything different on the underlying system.  I.e.:

function my_local_path($path) {
  return str_replace('\\', DIRECTORY_PATH, $path);


Could do nothing on a linux system but handle the replacement on a windoz system.

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.