Jump to content

Search the Community

Showing results for tags 'package edit'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • News
    • The Lounge
  • Community
    • Pre-Sales Questions
    • Support
    • The Marketplace
    • Contribute
    • Show Off
    • Feature Requests
    • Bugs
    • Contests
  • Developer Corner
    • General
    • Extensions
  • BlestaStore's Forum
  • BlestaStore's BlestaCMS
  • BlestaStore's Resellers
  • BlestaStore's BlestaForums
  • BlestaStore's Promotions
  • CubeData's Official Announcements From CubeData
  • CubeData's Peer Support
  • CubeData's Resellers
  • ModulesGarden Club's Topics
  • Blesta Addons's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Wire


Location


Interests

Found 1 result

  1. Hi. When I try to call the Packages\Edit function through the API, it fails with the following error: { "response": null, "error": { "name": { "empty": "Please enter a package name." }, "email_content[0][lang]": { "empty": "Please enter a language." }, "pricing[0][currency]": { "format": "Currency code must be 3 characters." } } } Here's my code which calls the API: public function deactivatePackage($id = null) { global $blestaapi; $response = $blestaapi->put("packages", "edit", array("package_id" => $id, "vars" => array("status" => "restricted"))); $responseParsed = array("response" => $response->response(), "error" => $response->errors()); return $responseParsed; } I'm quite confused, because it seems that I call the Packages\Add function because it complains about the missing options that are a optional in Packages\Edit but not in Packages\Add.
×
×
  • Create New...