Search the Community
Showing results for tags 'order-carrier.tpl'.
-
I have a strange issue with couriers' error messages at checkout in PS 1.6.1.14 (Default Theme). To emulate a minimum amount for purchases needed for a specific group, I've disabled its assigned couriers below a certain purchase amount (let's say 150). The behavior is correct and there's an error showing until the cart reaches 150 euros. But the error message is printed twice for every assigned courier! The message comes from order-carrier.tpl, I guess: if I change that line into tpl file, it changes in error box too (and, of course, it is repeated two times for every courier that is active for that group). The url that shows the error is /quick-order Some years ago someone modified a controller to have this thing of minimum purchase amount working. Something like this: https://www.prestashop.com/forums/topic/585753-set-minimum-order-purchase-for-customers-group-prestashop-16/ Any suggestion on on what to do? Where to check? Is there a way to force a single error message to be printed? PS: of course the message "The product selection cannot be delivered by the available carrier(s). Please amend your cart." has been translated to fit the need of warining about minum purchase amount. Thanks for your time
- 2 replies
-
- order-carrier.tpl
- courier
- (and 3 more)
-
Dear PrestaShop community, For few days, I'm fighting with the following problem. I want to add very simple check-box in the carrier list in check-out (one more below "I agree with terms and conditions..."). My guess is that this check-box is hidden in the .../themes/your_theme/order-carrier.tpl (or few other files with prefix "order"). But the problem comes when I make any changes in these files. Nothing shows up on the live site. Even after deleting whole "div" with the checkbox, it still shows on the site - what is a bit weird. I tried it the "hard-way" and deleted whole "order-carrier.tpl" file from the site. That page in the check-out was missing and it showed blank page. But after adding it back with no content (zero of code in the "order-carrier.tpl"), it showed up back again in all it's glory.... Could please anyone point me the right direction? Thank you very much for any help, MP
- 2 replies
-
- check-box
- prestashop
-
(and 4 more)
Tagged with:
-
Не отображается способы доставки в режиме 5 шагов, только рамка. То же самое в одностраничном режиме. Все настройки по доставке сделанной: зоны, страна, область, курьеры, шкала цен и веса, доставка. Когда отключаю перевозчиков, выдает сообщение: "Нет доступных способов доставки по адресу". Консоль ошибок не выдает, только для шаблона order-carrier.tpl переменные $delivery_option_list и $delivery_option: Smarty_Variable Object (3) -> value = Array (0) -> nocache = false -> scope = "Smarty root" Версия PrestaShop 1.5.4.1, обновил до последней (1.5.5) - не помогло. Почему эти переменные не получают свои массивы значений? Помогите!
- 5 replies
-
- способы доставки
- $delivery_option
-
(and 1 more)
Tagged with:
-
Hello, I am having serious trouble removing the free shipping option. I followed the instructions from this module http://www.prestashop.com/forums/topic/243702-solved-how-to-remove-shipping-carrier-sorting-best-pricefastest-speed/ to comment out the proper code from order-carrier.tpl, but it still shows a radio button as a blank option. I attached a screen shot below. Someone please help!!
-
hello, i have modified \classes\cart.php getTotalShippingCost() function, because i wanted change the way to obtain the shipping_cost it is working correctly in cart confirm, it is working correctly in shipping calculation.... but the first time i go to the "select carrier page" which uses order-carrier.tpl is not getting the correct shipping cost. If i go to confirm the cart , then the shiping cost is correct; at this moment if i go back to the select carrier page then appears the correct shipping cost. how calculate "select carrier page" which uses order-carrier.tpl the shipping cost (firs time, before selecting the carrier and confirm it) i have see that uses $option.total_price_without_tax value resumed in the attached image Thank you!
-
- order-carrier.tpl
- cart.php
-
(and 1 more)
Tagged with:
-
Подскажите, как правильно сделать, чтобы в зависимости от ID метода доставки, выводились разные надписи. Мне нужно что бы в графе забрать в магазине стояло напротив слово БЕСПЛАТНО. Пробывал прописать в order-carrier.tpl {if ($this->id_carrier==23)} {l s='Free!'}{/if} не помогает, заполняет этим словом все колоки.
-
Ciao a tutti, Nella form contenuta in order-carrire.tpl ho aggiunto un nuovo campo di testo che in teoria dovrebbe "portare con se" un valore lungo tutto il percorso dell'ordine, sino alla sua chiusura e ovviamente scrivere il dato in un nuovo record( tipo text) contenuto nella tabella ps_orders. chiamato ws_ddt inoltre questo valore lo dovrò riportare in fattura. Premetto che sono già riuscito a legare la presenza o meno del campo testo in base al gruppo di utenza collegato.Mi spiegerò meglio più avanti con l'esempio pratico. Diciamo che il comportamento dovrebbe essere simile a quello del valore gift_message, ma senza la necessità di abilitare o meno la confezione regalo. Ovviamente voglio mantenere integro il codice inerente la scelta o meno della confezione regalo legata al suo messaggio. questo è quello che ho fatto. creo un corriere legato solo a un gruppo di utenza. ho forzato il codice del file "order-carrier.tpl" in questo modo: {if $carrier.id_carrier == 22} <p id="ws_ddt" class="textarea"> <label for="ws_ddt">{l s='DDT n'}</label> <textarea rows="1" cols="15" id="ws_ddt" name="ws_ddt" >{$cart->ws_ddt|escape:'htmlall':'UTF-8'}</textarea> </p> {else} {$carrier.delay|escape:'htmlall':'UTF-8'} {/if} dove 22 è il valore dell'id del correre che intendo utilizzare per un solo gruppo di utenza. ho modificato la classe Order.php in questo modo: public $ws_ddt; protected $fieldsValidate = array( 'id_address_delivery' => 'isUnsignedId', .... .... 'ws_ddt' => 'isMessage' ); poi ho aggiunto : public function getFields() { parent::validateFields(); $fields['id_address_delivery'] = intval($this->id_address_delivery); .... .... $fields['ws_ddt'] = pSQL($this->ws_ddt); return $fields; } Ho apportato anche le modifice nel file order.php contenuto nella root di prestashop intorno alla riga 217 /* Carrier step */ function processCarrier() { global $cart, $smarty, $isVirtualCart, $orderTotal; $errors = array(); $cart->recyclable = (isset($_POST['recyclable']) AND !empty($_POST['recyclable'])) ? 1 : 0; $cart->ws_ddt = ($_POST['ws_ddt']); nonostante tutto il valore della variabile "ws_ddt" si perde subito dopo il suo inserimento, già nella fase di scelta della forma di pagamento, mentre , pur simulandone il "comportamento", il valore inserito nel campo "gift_message" viene trascinato sino alla fine del processo dell'ordine e scritto nel database . qualcuno è in grado di aiutarmi?? Grazie per la disponibilità. Ale. p.s. ho dato già un occhiata al seguente topic http://www.prestasho...-order-carrier/
-
- order-carrier.tpl
- carrier
-
(and 3 more)
Tagged with: