Jump to content

Monckey100

Members
  • Posts

    1
  • Joined

  • Last visited

Monckey100's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have been trying really hard but I cannot for the life of me figure out how to pass the order_id. I am trying to pass the order_id or any type of identifier really. When using Add it gives more than enough information, However Edit is very limited and has been giving me a hard time. I need to know which order_id the client is working with through POST as a simple clientid is not enough for me to specify which product they are using. Originally I would use what the client named their server which worked but if they choose to edit the name of the server...well it doesn't pass the old one. I tried using the client id and the date they got the order which works but edit does not pass date added. I decided, okay maybe qty has a hint for me and I decided to edit the plugin directly which KIND OF worked: private static $reserved_fields = array('qty','date_added','client_id','id','id_code'); from private static $reserved_fields = array('qty'); and placed those in the service field similar to what qty requests. date_added and client_id are the only ones that ended up working but, they would request for information in the fields! When I left them blank and set them as secret or any configuration really it wouldn't work or would show up blank but when I allowed admins to add variables into them, the date_added would just pass the current time stamp and client_id would just say "the client does not exist" until you entered a correct client ID. I just want: {order.number} to populate in the POST arrays found here: https://docs.blesta.com/display/user/Order+System and it's driving me crazy. I'm one variable away from finishing my script.
×
×
  • Create New...