View Single Post
  #1  
Old 06-15-2016, 04:29 PM
 
Halfwayhome22 Halfwayhome22 is offline
    
Join Date: Jun 2016
Posts: 0
 

Default How do I use the SDK macros with the new version of xcart?

Hello.

I recently downloaded xcart 5.2.15-0 for my mac and set up my localhost so I can learn about how to use xcart for potential future use. Essentially, I am going through the x-cart 5 knowledge base (http://kb.x-cart.com/display/XDD/Developer+docs) to teach myself xcart and I have run into problems that are preventing me from proceeding further. Currently I am up to step 4, working with settings and the x-cart SDK.

Currently, I cannot use any of the SDK macros. On the mac version,the main xcart folder is located in /Applications/xcart5.2.15-0/apps and the localhost is ran inside htdocs (so /Applications/xcart5.2.15-0/apps/xcart/htdocs) . If I put the next-SDK folder next to that xcart folder like the instructions tell me and try to run the macro from the xcart folder using terminal (the command line), I get a top.inc.php not found error. If I run the same macro from the htdocs folder (having to go up one more level to the next-sdk folder, I get a much larger error).

I believe that the next-sdk folder was meant for an earlier version of xcart where the files were organized differently, and now it wont work with the new version. I don't really have enough expertise in coding yet to be able to troubleshoot the problem. I know that the issue most likely resides in the core.php file when called from the macro php file (such as create-module.php).

I was wondering if anyone else has installed the new version and had any issues with this yet? hopefully with any potential fixes. Thanks.

Richard
__________________
5.2.15-0
Reply With Quote