Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

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

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #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
  #2  
Old 06-17-2016, 01:23 AM
 
skiv skiv is offline
 

X-Cart team
  
Join Date: Dec 2008
Posts: 10
 

Default 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
__________________
Kirill Stadler,
Lead X-Cart 5 developer
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:02 PM.

   

 
X-Cart forums © 2001-2020