bossanova808/CommerceFriendlyOrderNumbers

Undefined Index

klick opened this issue · 5 comments

klick commented

Hey bossanova808 (and merry christmas).

I get a breaking Error after the user hits pay:

Undefined index: IsImageScience

/craft/plugins/commercefriendlyordernumbers/services/CommerceFriendlyOrderNumbersService.php(50)

50        if(craft()->config->get('environmentVariables')['IsImageScience']){
51             $order->setContentFromPost(array(
52                 'ISOrderNumber' => $orderNumber,
53             ));
54         }

It is looking for an environment variable of ”IsImageScience”. Do you know what that is?

Edit:
I have never used order fields. Do I have to put a reference to it into the checkout form?

Best
klick

(Oh and Merry Christmas too!)

klick commented

Thank you. Works as expected now. :)

klick commented

One more: I had to start-lowercase all FriendlyOrderNumber variable names in that jQuery-function in order for the friendly order number to show up on order detail-views in commerce. Otherwise it’s #undefined.

Cool, I'll update the docs - will be on holiday for a little while though (feel free to PR it!) :)