Jump to content

alirot

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Location
    bz
  • Activity
    Other

alirot's Achievements

Newbie

Newbie (1/14)

  • First Post Rare
  • Conversation Starter Rare
  • Dedicated Rare
  • Week One Done Rare
  • One Month Later Rare

Recent Badges

1

Reputation

  1. Solved thanks to Nicula Gabriel
  2. Prestashop 1.7: After I followed the steps for the transfer from Localhost in a server, a strange situation appears: No page manages to load the .css or .JS files and in the source of the page they appear without "/" between them, as in the image below; I checked the PS_configuration table with PS_SHOP and PS_SHOP_Domain, also, check the settings from the /ap/ponfig/parameters.php file, cleared the smartry from bo, nothing happens. Any idea, please?
  3. seems to be my mystake on 'table' => 'ps_category_group', if I remove prefix "ps_", everything were ok thanks
  4. Prestashop version is: 1.6.1.23 Files used: WebserviceRequest.php <?php class WebserviceRequest extends WebserviceRequestCore { public static function getResources() { $resources=parent::getResources(); $resources['category_group'] = array('description' => 'Expose category_group table', 'class' => 'CategoryGroup'); ksort($resources); return $resources; } } ?> CategoryGroup.php class <?php class CategoryGroupCore extends ObjectModel { public $id_category; public $id_group; public static $definition = array( 'table' => 'ps_category_group', 'primary' => 'PRIMARY', 'fields' => array( 'id_category' => array('type' => self::TYPE_INT), 'id_group' => array('type' => self::TYPE_INT) ) ); protected $webserviceParameters = array(); } ?>
  5. Hello I tried this documentation https://webkul.com/blog/how-to-add-new-tables-in-rest-api-of-prestashop/ for exposing category_group table in webservice (two fields, id_category and id_group, creating in override folder class Category_Group and WebserviceRequest.php in webservice folder) but when I call localhost/local_site/api/category_group, the xml returned is empty please help
×
×
  • Create New...