From bae3fbb9c04bb7099a470ca2b097b4dbdfd2bbb1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 30 Mar 2017 12:52:53 +0300 Subject: [PATCH] Added custom fields to buy now buttons --- resources/views/accounts/client_portal.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/accounts/client_portal.blade.php b/resources/views/accounts/client_portal.blade.php index 7f46129eb260..dc9e4d491b73 100644 --- a/resources/views/accounts/client_portal.blade.php +++ b/resources/views/accounts/client_portal.blade.php @@ -432,10 +432,10 @@ iframe.src = '{{ rtrim(SITE_URL ,'/') }}/view/' var form = '
' + "\n"; - @foreach (['custom_client1', 'custom_client2', 'custom_invoice1', 'custom_invoice2', 'custom_product1', 'custom_product2'] as $field) - if ($('input#{{ $field }}').is(':checked')) { - form += '' + "\n"; - link += '&{{ $field }}='; + @foreach ($account->present()->customTextFields as $field => $val) + if ($('input#{{ $val['name'] }}').is(':checked')) { + form += '' + "\n"; + link += '&{{ $val['name'] }}='; } @endforeach