DenKuzmin Posted November 11, 2023 at 04:13 PM Share Posted November 11, 2023 at 04:13 PM Хочу перенести способы доставки на самый верх. В шаблоне переместил блок вверх <?php if ($shipping_required) { ?> <div class="panel panel-default"> <div class="panel-heading"> <h4 class="panel-title"><?php echo $text_checkout_shipping_method; ?></h4> </div> <div class="panel-collapse collapse" id="collapse-shipping-method"> <div class="panel-body"></div> </div> </div> <?php } ?> Добавил JS $(document).ready(function () { $.ajax({ url: 'index.php?route=checkout/guest_shipping/save', type: 'post', data: { 'firstname': '', 'lastname': '', 'address_1': '', 'city': '', 'country_id': 176, 'zone_id': 2761 }, dataType: 'json', success: function(json) { $('.alert, .text-danger').remove(); $.ajax({ url: 'index.php?route=checkout/shipping_method', dataType: 'html', success: function(html) { $('#collapse-shipping-method .panel-body').html(html); } }); }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); }); При открытии страницы Оформления заказа получаю ошибку Вот содержимое строки 151 $custom_fields = $this->model_account_custom_field->getCustomFields($this->session->data['guest']['customer_group_id']); 0 Quote Link to comment Share on other sites More sharing options...
Rubynoid Posted November 11, 2023 at 05:00 PM Share Posted November 11, 2023 at 05:00 PM Купите модуль simple да не заморачивайтесь, там поля можно удалять и перемещать как душе угодно) 0 Quote Парсинг и импорт товаров Обновление версии OpenCart Телеграмм @rubynoid Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.