Received an error/notice when trying to modify a template: “The Code has already been taken.”. Attempt was made on Order status changed template. Tried to change it to {{ $site_logo }}From {{ $site_name }}: {first_name}, your order {order_id} at {location_name} has been updated to {status_name} ({status_comment})
SMS Notify Extension
Template Order confirmation sms notification to staff requires a staff phone number doesn’t it? Where is the phone number for this notice set?
roydeanjr It takes it from the setting for the restaurant’s number
minyeongkim Can you try this fix here see if works for you.
- Edited
@sampoyigi I can see the error below after fixed
and I got the same message which didn’t replace ““äfirst nameñ, your order has been confirmed and will be with you shortly. To view your order progress, use the URL below: äorder view urlñ””
“Array to string conversion” on line 419 of /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Str.php#0 /var/www/html/vendor/laravel/framework/src/Illuminate/Support/Str.php(419): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, ‘Array to string…’, ‘/var/www/html/v…’, 419, Array) #1 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/QueryException.php(56): Illuminate\Support\Str::replaceArray(‘?’, Array, ‘insert into ti...') #2 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/QueryException.php(39): Illuminate\Database\QueryException->formatMessage('insert into
ti…', Array, Object(ErrorException)) #3 /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Connection.php(670): Illuminate\Database\QueryException->__construct(‘insert into `ti…’, Array, Object(ErrorException)) #4…."
Tagged v1.0.2 with some minor improvements and bug fixes.
minyeongkim the variables won’t get replaced when sending a test message but should now work with the automation rule.
sampoyigi it works well Thank you so much
Hello when I try to create a new template in the design I get a page not found.
Anyone else having this issue? Any idea on how to solve this?
Creating new templates is not supported, however, you can edit existing ones.
- Edited
Ok, thanks for the reply.
I am also having an issue when testing with the Send Test Message button:
Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function methodExists() on null
in /home/jeezatec/prenotazioni.viaprade8.it/extensions/igniterlabs/smsnotify/smsnotifications/AnonymousNotification.php:14
I am using Twilio APIs
Any idea what is the problem?
sampoyigi Thanks for all the efforts you put in the project
minyeongkim Is this extension working for you? What version are you using? Is the status on the message matching the status that the order has been changed to?
- Edited
I have tried everything I know and still cannot get this extension to actually send a message for real order activity. I can send a test message just fine, but now when I actually change the status of an order. What is the problem?
BTW, I have raised this as a separate issue on github and on the forums here. Non of the updates seem to be helping.
Hi, this extension is absolutely on my todo-list, just not yet on the top of my list.
Just in case, since I’m in Europe (Austria), I assume I may not find an operator here that offers a compatible service here. Would it be possible to configure this extension be use an own-built SMS-Gateway? There are some really interesting initiatives available on setting up a private SMS Gateway at home using a USB stick with Sim-card.
Reading material on Howto Forge: ‘How to install a Raspberry Pi SMS Server’
@igor Twilio works in Europe and messages are sent from a European number - you can specify what country
- Edited
checked prices at twilio.. about € 0,09 / sms, whereas a simple subscription for a mobile-phone sim costs € 8,50 per month and includes 1000 sms which makes it € 0,0085 / sms.
Thanks ryanmitchell , will follow this closely!
On my side when I go to the SMS Template tab I am redirected to en error page
(1/1) ValidationException
The content field is required.
in Validation.php line 59
at Template->throwValidationException()
in ValidatingObserver.php line 56
at ValidatingObserver->performValidation(object(Template), ‘saving’)
in ValidatingObserver.php line 20
at ValidatingObserver->saving(object(Template))
in Dispatcher.php line 389
at Dispatcher->Illuminate\Events{closure}(‘eloquent.saving: IgniterLabs\SmsNotify\Models\Template’, array(object(Template)))
in Dispatcher.php line 218
at Dispatcher->dispatch(‘eloquent.saving: IgniterLabs\SmsNotify\Models\Template’, array(object(Template)), true)
in Dispatcher.php line 191
at Dispatcher->until(‘eloquent.saving: IgniterLabs\SmsNotify\Models\Template’, object(Template))
in HasEvents.php line 189
at Model->fireModelEvent(‘saving’)
in Model.php line 652
at Model->save(array(‘force’ => false))
in Model.php line 698
at Model->saveInternal(array(‘force’ => false))
in Model.php line 726
at Model->save()
in Template.php line 115
at Template::syncAll()
in Templates.php line 58
at Templates->index(‘index’)
at call_user_func_a