X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   How do I use the SDK macros with the new version of xcart? (https://forum.x-cart.com/showthread.php?t=74083)

Halfwayhome22 06-15-2016 04:29 PM

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

skiv 06-17-2016 01:23 AM

Re: How do I use the SDK macros with the new version of xcart?
 
You should copy 'core.php' and 'create-module.php' files to the folder that contains 'top.inc.php' file


All times are GMT -8. The time now is 11:51 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.