Jump to content

Edit History

rvkvino

rvkvino

@Alex Thanks for your help, I have included init.php

require_once ('../init.php');

Then the above error not coming now. Now this is working fine. 

Now I have another problem like if I use file_get_-contents,

require_once ('../config/config.inc.php');
require_once ('../init.php');

$json = file_get_contents('php://input');
$data = json_decode($json);

Now I couldn't access the $data variable, it's showing empty. I have checked without include config on this case this file_get_contents is working fine.

rvkvino

rvkvino

@Alex Thanks for your help, I have included init.php

require_once ('../init.php');

Then the above error not coming now. Now this is working fine. 

rvkvino

rvkvino

@Alex Thanks for your help, I have included init.php

require_once ('../init.php');

Then the above error not coming now. Now this is working fine. I have one more doubt how can I get the default carrier for cart? I need some help on while creating the cart I need to post id_carrier default value. How to get the default id_carrier value in web service? Could you please help me on this?

×
×
  • Create New...