Jump to content

Problema salvataggio spedizione - Parser Error


Recommended Posts

Buongiorno a tutti, non riesco più a salvare i costi di spedizione.

Ogni volta che provo a salvare ottengo un messaggio di errore che dice:

===

Alert

TECHNICAL ERROR:

Details:

Error thrown: [object Object]

Text status: parsererror

===

 

La versione di prestashop è la 1.6.1.5 e tutti i plugin sono aggiornati all'ultima versione. Il problema è che in seguito a tale errore ogni spedizione della stessa categoria (corriere) ora risulta a 0 € quindi ho dovuto sospendere le vendite.

Qualcuno sa come risolvere?

 

Alcuni dettagli da Firebug

POST:

action finish_step active 1 ajax 1 delay_1 7-10 fees[9][0] 6.80 filename   grade 0 groupBox[] 1 groupBox[] 2 groupBox[] 3 id_carrier 105 id_carrier 105 id_carrier 105 id_carrier 105 id_tax_rules_group 0 is_free 0 logo   max_depth 0 max_height 0 max_weight 1.100000 max_width 0 name Spedizione con corriere range_behavior 0 range_inf[0] 0.000000 range_sup[0] 1.100000 shipping_handling 0 shipping_method 1 step_number 2 submitAddcarrier 1 submitAddcarrier 1 submitAddcarrier 1 submitAddcarrier 1 url   zone_9 1

 

Sorgente:

id_carrier=105&submitAddcarrier=1&name=Spedizione+con+corriere&delay_1=7-10&grade=0&logo=&filename=&url=&id_carrier=105&submitAddcarrier=1&shipping_handling=0&is_free=0&shipping_method=1&id_tax_rules_group=0&range_behavior=0&range_inf%5B0%5D=0.000000&range_sup%5B0%5D=1.100000&zone_9=1&fees%5B9%5D%5B0%5D=6.80&id_carrier=105&submitAddcarrier=1&max_width=0&max_height=0&max_depth=0&max_weight=1.100000&groupBox%5B%5D=1&groupBox%5B%5D=2&groupBox%5B%5D=3&id_carrier=105&submitAddcarrier=1&active=1&action=finish_step&ajax=1&step_number=2

 

Il problema sembra in "Risposta" in quanto è codice HTML con <div> ecc.

<div class="alert alert-danger">
            <button type="button" class="close" data-dismiss="alert">×</button>
                            Property RangeWeight->delimiter1 is empty
                    </div>
    
    
    
        
<div class="leadin"></div>


<script>
    var labelNext = 'Successivo';
    var labelPrevious = 'Precedente';
    var    labelFinish = 'Fine';
    var    labelDelete = 'Elimina';
    var    labelValidate = 'Conferma';
    var validate_url = 'index.php?controller=AdminCarrierWizard&token=af06be7ae12161eadc117da9a1109aa1';
    var carrierlist_url = 'index.php?controller=AdminCarriers&token=4e8dcfae69a8e69d712cac1fadafcb74&conf=4';
    var nbr_steps = 4;
    var enableAllSteps = true;
    var need_to_validate = 'Conferma l\'ultima fascia prima di crearne una nuova.';
    var delete_range_confirm = 'Sei sicuro di voler cancellare questa fascia?';
    var currency_sign = '€';
    var PS_WEIGHT_UNIT = 'kg';
    var invalid_range = 'Questa fascia non è valida';
    var overlapping_range = 'Gli intervalli si sovrappongono';
    var range_is_overlapping = 'Gli intervalli si sovrappongono';
    var select_at_least_one_zone = 'Si prega di selezionare almeno una zona';
    var multistore_enable = '';
</script>

<div class="row">
    <div class="col-sm-2">
        
<div id="carrier_logo_block" class="panel">
    <div class="panel-heading">
        Logo
        <div class="panel-heading-action">
            <a id="carrier_logo_remove" class="btn btn-default" style="display:none" href="javascript:removeCarrierLogo();">
                <i class="icon-trash"></i>
            </a>
        </div>
    </div>
    <img id="carrier_logo_img" src="../img/admin/carrier-default.jpg" class="img-thumbnail" alt=""/>
</div>

<script type="text/javascript">
    var carrier_translation_undefined = 'non definito';

    function removeCarrierLogo()
    {
        if (confirm('Sei sicuro di voler eliminare il logo?'))
        {
            $('#carrier_logo_img').attr('src', '../img/admin/carrier-default.jpg');
            $('#logo').val('null');
            $('#carrier_logo_remove').hide();
        }
    }
    
    function uploadCarrierLogo() {
        $.ajaxFileUpload({
            url: 'ajax-tab.php?tab=AdminCarrierWizard&token=af06be7ae12161eadc117da9a1109aa1&action=uploadLogo',
            secureuri: false,
            fileElementId: 'carrier_logo_input',
            dataType: 'xml',
            success: function (data, status) {
                data = data.getElementsByTagName('return')[0];
                var message = data.getAttribute("message");
                if (data.getAttribute("result") == "success")
                {
                    $('#carrier_logo_img').attr('src', message);
                    $('#logo').val(message);
                    $('#carrier_logo_remove').show();
                }
                else
                    alert(message);
            }
        });
    }
</script>
    </div>
    <div class="col-sm-10">
        <div id="carrier_wizard" class="panel swMain">
            <ul class="steps nbr_steps_4">
                            <li>
                    <a href="#step-1">
                        <span class="stepNumber">1</span>
                        <span class="stepDesc">
                            Impostazioni generali<br />
                                                    </span>
                        <span class="chevron"></span>
                    </a>
                </li>
                            <li>
                    <a href="#step-2">
                        <span class="stepNumber">2</span>
                        <span class="stepDesc">
                            Destinazioni spedizione e costi<br />
                                                    </span>
                        <span class="chevron"></span>
                    </a>
                </li>
                            <li>
                    <a href="#step-3">
                        <span class="stepNumber">3</span>
                        <span class="stepDesc">
                            Dimensioni, peso e accesso gruppo<br />
                                                    </span>
                        <span class="chevron"></span>
                    </a>
                </li>
                            <li>
                    <a href="#step-4">
                        <span class="stepNumber">4</span>
                        <span class="stepDesc">
                            Riepilogo<br />
                                                    </span>
                        <span class="chevron"></span>
                    </a>
                </li>
                        </ul>
                            <div id="step-1" class="step_container">     
                    

<form id="step_carrier_general" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data" novalidate>
            <input type="hidden" name="id_carrier" id="id_carrier" value="105" />
                <input type="hidden" name="submitAddcarrier" value="1" />
                
                <div class="panel" id="fieldset_form">
                                            
                                                <div class="form-wrapper">
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3 required">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                                                                                                                                        Caratteri permessi: lettere, spazi e ().-.
                                                                                                                                                                                                                                Il nome dello spedisioniere sarà mostrato durante il checkout.
                                                                                                                                                                                                                                Con un valore di 0, il nome del mezzo di spedizione sarà sostituito dal nome del negozio.
                                                                                                                                                            ">
                                                                                Nome corriere
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                                                                                                                                                                                                                                    <input type="text"
                                            name="name"
                                            id="name"
                                            value="Spedizione con corriere"
                                            class=""
                                                                                                                                                                                                                                                                                                                     required="required"                                                                                         />
                                        
                                                                                                                                                                                    
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3 required">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    Il tempo stimato per la consegna sarà mostrato durante il checkout.
                                                ">
                                                                                Tempo di transito
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <input type="text"
                                                    id="delay_1"
                                                    name="delay_1"
                                                    class=""
                                                    value="7-10"
                                                    onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
                                                                                                                                                             maxlength="128"                                                                                                                                                                                                                 required="required"                                                      />
                                                                                                                                                                                                                                                                                                                                                            
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    Inserisci "0" per il ritardo di consegna più lungo, o "9" per quello più corto.
                                                ">
                                                                                Grado di velocità
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                                                                                                                                                                                                                                    <input type="text"
                                            name="grade"
                                            id="grade"
                                            value="0"
                                            class=""
                                             size="1"                                                                                                                                                                                                                                                                                                                                                                />
                                        
                                                                                                                                                                                    
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                Logo
                                                                            </label>
                                                            

                            
                <div class="col-lg-9">
            <input id="carrier_logo_input" class="hide" type="file" onchange="uploadCarrierLogo();" name="carrier_logo_input" />
            <input type="hidden" id="logo" name="logo" value="" />
            <div class="dummyfile input-group">
                <span class="input-group-addon"><i class="icon-file"></i></span>
                <input id="attachement_filename" type="text" name="filename" readonly="" />
                <span class="input-group-btn">
                    <button id="attachement_fileselectbutton" type="button" name="submitAddAttachments" class="btn btn-default">
                        <i class="icon-folder-open"></i> Scegli un file
                    </button>
                </span>
            </div>
            <p class="help-block">
                    Formato JPG, GIF, PNG. Dimensione del file 8.00 MBytes max.
                    Dimensione attuale <span id="carrier_logo_size">non definito</span>.
            </p>
        </div>
        
                                <div class="col-lg-9">
                                
                                                                
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    URL di tracking: digita '@' dove deve apparire il numero di tracking, sarà automaticamente sostituito dal numero di tracking.
                                                ">
                                                                                URL di tracking
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                                                                                                                                                                                                                                    <input type="text"
                                            name="url"
                                            id="url"
                                            value=""
                                            class=""
                                                                                                                                                                                                                                                                                                                                                                                                            />
                                        
                                                                                                                                                                                    
                                
                                                                            <p class="help-block">
                                                                                            For example: 'http://example.com/track.php?num=@' with '@' where the tracking number should appear.
                                                                                    </p>
                                                                    
                                </div>
                            

                                                </div>
                        
                                        
                                                                    
                                    </div><!-- /.form-wrapper -->
                                
                        
                                        
        </div>
        
        
    </form>



    <script type="text/javascript">
        var module_dir = '/modules/';
        var id_language = 1;
        var languages = new Array();
        var vat_number = 1;
        // Multilang field setup must happen before document is ready so that calls to displayFlags() to avoid
        // precedence conflicts with other document.ready() blocks
                    languages[0] = {
                id_lang: 1,
                iso_code: 'it',
                name: 'Italiano (Italian)',
                is_default: '1'
            };
                // we need allowEmployeeFormLang var in ajax request
        allowEmployeeFormLang = 0;
        displayFlags(languages, id_language, allowEmployeeFormLang);

        $(document).ready(function() {

            $(".show_checkbox").click(function () {
                $(this).addClass('hidden')
                $(this).siblings('.checkbox').removeClass('hidden');
                $(this).siblings('.hide_checkbox').removeClass('hidden');
                return false;
            });
            $(".hide_checkbox").click(function () {
                $(this).addClass('hidden')
                $(this).siblings('.checkbox').addClass('hidden');
                $(this).siblings('.show_checkbox').removeClass('hidden');
                return false;
            });

            
            if ($(".datepicker").length > 0)
                $(".datepicker").datepicker({
                    prevText: '',
                    nextText: '',
                    dateFormat: 'yy-mm-dd'
                });

            if ($(".datetimepicker").length > 0)
            $('.datetimepicker').datetimepicker({
                prevText: '',
                nextText: '',
                dateFormat: 'yy-mm-dd',
                // Define a custom regional settings in order to use PrestaShop translation tools
                currentText: 'Adesso',
                closeText: 'Fatto',
                ampm: false,
                amNames: ['AM', 'A'],
                pmNames: ['PM', 'P'],
                timeFormat: 'hh:mm:ss tt',
                timeSuffix: '',
                timeOnlyTitle: 'Scegli l\'ora',
                timeText: 'Ora',
                hourText: 'Ora',
                minuteText: 'Minuti',
            });
                    });
    state_token = '5b4b8f347a16f3110192acdca0e54919';
    
    var string_price = 'Sarà applicato quando il prezzo è';
    var string_weight = 'Sarà applicato quando il peso è';

    </script>

                </div>
                            <div id="step-2" class="step_container">     
                    

<form id="step_carrier_ranges" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data" novalidate>
            <input type="hidden" name="id_carrier" id="id_carrier_1" value="105" />
                <input type="hidden" name="submitAddcarrier" value="1" />
                
                <div class="panel" id="fieldset_form_1_1">
                                            
                                                <div class="form-wrapper">
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    Includi i costi di gestione (come definiti in Spedizione > Preferenze) nel prezzo finale della spedizione.
                                                ">
                                                                                Aggiungi i costi di gestione
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                    <span class="switch prestashop-switch fixed-width-lg">
                                                                                <input type="radio" name="shipping_handling" id="shipping_handling_on" value="1"/>
                                        <label for="shipping_handling_on">Sì</label>
                                                                                <input type="radio" name="shipping_handling" id="shipping_handling_off" value="0" checked="checked"/>
                                        <label for="shipping_handling_off">No</label>
                                                                                <a class="slide-button btn"></a>
                                    </span>
                                                                
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                Spedizione gratuita
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                    <span class="switch prestashop-switch fixed-width-lg">
                                                                                <input type="radio" name="is_free" id="is_free_on" value="1"/>
                                        <label for="is_free_on">Sì</label>
                                                                                <input type="radio" name="is_free" id="is_free_off" value="0" checked="checked"/>
                                        <label for="is_free_off">No</label>
                                                                                <a class="slide-button btn"></a>
                                    </span>
                                                                
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                Fatturazione
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                            <div class="radio t">
                                            <label><input type="radio"    name="shipping_method" id="billing_price" value="2"/>In base al prezzo totale.</label>
                                        </div>
                                                                                                                    <div class="radio t">
                                            <label><input type="radio"    name="shipping_method" id="billing_weight" value="1" checked="checked"/>In base al peso totale.</label>
                                        </div>
                                                                                                                                            
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                Tasse
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                            <select name="id_tax_rules_group"
                                                class=" fixed-width-xl"
                                                id="id_tax_rules_group"
                                                                                                                                                                                                >
                                                                                            <option value="0">Nessuna tassa</option>
                                                                                                                                                                                                                                                    <option value="5"
                                                                                                                                                                                                                                                >IT Books Rate (4%)</option>

                                                                                                                                                                                                                <option value="4"
                                                                                                                                                                                                                                                >IT Foodstuff Rate (4%)</option>

                                                                                                                                                                                                                <option value="2"
                                                                                                                                                                                                                                                >IT Reduced Rate (10%)</option>

                                                                                                                                                                                                                <option value="1"
                                                                                                                                                                                                                                                >IT Standard Rate (22%)</option>

                                                                                                                                                                                                                <option value="3"
                                                                                                                                                                                                                                                >IT Super Reduced Rate (4%)</option>

                                                                                                                                                                                        </select>
                                                                                                    
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    Il valore di fuori fascia viene usato quando il carrello del cliente non rientra nelle fasce stabilite (ad es. quando il peso dei prodotti nel carrello è superiore al valore della fascia di peso più grande).
                                                ">
                                                                                Comportamento fuori fasce
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                            <select name="range_behavior"
                                                class=" fixed-width-xl"
                                                id="range_behavior"
                                                                                                                                                                                                >
                                                                                                                                                                                                                                                    <option value="0"
                                                                                                                                                                                                selected="selected"
                                                                                                                                                                                    >Prendi il costo della fascia più grande</option>

                                                                                                                                                                                                                <option value="1"
                                                                                                                                                                                                                                                >Disattiva il mezzo di trasporto</option>

                                                                                                                                                                                        </select>
                                                                                                    
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                            

                            
            <div class="ranges_not_follow warn" style="display:none">
            <label>Le fasce non sono ordinate correttamente</label>
            <a href="#" onclick="checkRangeContinuity(true); return false;" class="btn btn-default">Riordinamento</a>
        </div>
                <script>var zones_nbr = 12 ; /*corresponds to the third input text (max, min and all)*/</script>
        <div id="zone_ranges" style="overflow:auto">
            <h4>Intervalli</h4>
            <table id="zones_table" class="table" style="max-width:100%">
                <tbody>
                    <tr class="range_inf">
                        <td class="range_type"></td>
                        <td class="border_left border_bottom range_sign">>=</td>
                                                <td class="border_bottom">
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon weight_unit">kg</span>
                                <span class="input-group-addon price_unit">€</span>
                                <input class="form-control" name="range_inf[0]" type="text" value="0.000000" />
                            </div>
                        </td>
                                            </tr>
                    <tr class="range_sup">
                        <td class="range_type"></td>
                        <td class="border_left range_sign"><</td>
                                                <td class="range_data">
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon weight_unit">kg</span>
                                <span class="input-group-addon price_unit">€</span>
                                <input class="form-control" name="range_sup[0]" type="text" value="0.000000" autocomplete="off"/>
                            </div>
                        </td>
                                            </tr>
                    <tr class="fees_all">
                        <td class="border_top border_bottom border_bold">
                            <span class="fees_all" >All</span>
                        </td>
                        <td style="">
                            <input type="checkbox" onclick="checkAllZones(this);" class="form-control">
                        </td>
                                                <td class="border_top border_bottom " >
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon currency_sign" style="display:none" >€</span>
                                <input class="form-control" type="text" style="display:none" autocomplete="off" />
                            </div>
                        </td>
                                            </tr>
                                        <tr class="fees" data-zoneid="4">
                        <td>
                            <label for="zone_4">Africa</label>
                        </td>
                        <td class="zone">
                            <input class="form-control input_zone" id="zone_4" name="zone_4" value="1" type="checkbox" />
                        </td>
                                                <td>
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon">€</span>
                                <input class="form-control" name="fees[4][0]" type="text"
                                 disabled="disabled"
                                 value="" />
                            </div>
                        </td>
                                            </tr>
                                        <tr class="fees" data-zoneid="3">
                        <td>
                            <label for="zone_3">Asia</label>
                        </td>
                        <td class="zone">
                            <input class="form-control input_zone" id="zone_3" name="zone_3" value="1" type="checkbox" />
                        </td>
                                                <td>
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon">€</span>
                                <input class="form-control" name="fees[3][0]" type="text"
                                 disabled="disabled"
                                 value="" />
                            </div>
                        </td>
                                            </tr>
                                        <tr class="fees" data-zoneid="8">
                        <td>
                            <label for="zone_8">Central America/Antilla</label>
                        </td>
                        <td class="zone">
                            <input class="form-control input_zone" id="zone_8" name="zone_8" value="1" type="checkbox" />
                        </td>
                                                <td>
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon">€</span>
                                <input class="form-control" name="fees[8][0]" type="text"
                                 disabled="disabled"
                                 value="" />
                            </div>
                        </td>
                                            </tr>
                                        <tr class="fees" data-zoneid="1">
                        <td>
                            <label for="zone_1">Europe</label>
                        </td>
                        <td class="zone">
                            <input class="form-control input_zone" id="zone_1" name="zone_1" value="1" type="checkbox" />
                        </td>
                                                <td>
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon">€</span>
                                <input class="form-control" name="fees[1][0]" type="text"
                                 disabled="disabled"
                                 value="" />
                            </div>
                        </td>
                                            </tr>
                                        <tr class="fees" data-zoneid="7">
                        <td>
                            <label for="zone_7">Europe (non-EU)</label>
                        </td>
                        <td class="zone">
                            <input class="form-control input_zone" id="zone_7" name="zone_7" value="1" type="checkbox" />
                        </td>
                                                <td>
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon">€</span>
                                <input class="form-control" name="fees[7][0]" type="text"
                                 disabled="disabled"
                                 value="" />
                            </div>
                        </td>
                                            </tr>
                                        <tr class="fees" data-zoneid="9">
                        <td>
                            <label for="zone_9">Italia</label>
                        </td>
                        <td class="zone">
                            <input class="form-control input_zone" id="zone_9" name="zone_9" value="1" type="checkbox" checked="checked"/>
                        </td>
                                                <td>
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon">€</span>
                                <input class="form-control" name="fees[9][0]" type="text"
                                
                                 value="" />
                            </div>
                        </td>
                                            </tr>
                                        <tr class="fees" data-zoneid="2">
                        <td>
                            <label for="zone_2">North America</label>
                        </td>
                        <td class="zone">
                            <input class="form-control input_zone" id="zone_2" name="zone_2" value="1" type="checkbox" />
                        </td>
                                                <td>
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon">€</span>
                                <input class="form-control" name="fees[2][0]" type="text"
                                 disabled="disabled"
                                 value="" />
                            </div>
                        </td>
                                            </tr>
                                        <tr class="fees" data-zoneid="5">
                        <td>
                            <label for="zone_5">Oceania</label>
                        </td>
                        <td class="zone">
                            <input class="form-control input_zone" id="zone_5" name="zone_5" value="1" type="checkbox" />
                        </td>
                                                <td>
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon">€</span>
                                <input class="form-control" name="fees[5][0]" type="text"
                                 disabled="disabled"
                                 value="" />
                            </div>
                        </td>
                                            </tr>
                                        <tr class="fees" data-zoneid="6">
                        <td>
                            <label for="zone_6">South America</label>
                        </td>
                        <td class="zone">
                            <input class="form-control input_zone" id="zone_6" name="zone_6" value="1" type="checkbox" />
                        </td>
                                                <td>
                            <div class="input-group fixed-width-md">
                                <span class="input-group-addon">€</span>
                                <input class="form-control" name="fees[6][0]" type="text"
                                 disabled="disabled"
                                 value="" />
                            </div>
                        </td>
                                            </tr>
                                        <tr class="delete_range">
                        <td> </td>
                        <td> </td>
                                                                                    <td> </td>
                                                                        </tr>
                </tbody>
            </table>
        </div>

        <div class="new_range">
            <a href="#" onclick="add_new_range();return false;" class="btn btn-default" id="add_new_range">Aggiungi nuova fascia</a>
        </div>
            
                                <div class="col-lg-9 col-lg-offset-3">
                                
                                                                
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                        
                                                                    
                                    </div><!-- /.form-wrapper -->
                                
                        
                                        
        </div>
        
        
    </form>



    <script type="text/javascript">
        var module_dir = '/modules/';
        var id_language = 1;
        var languages = new Array();
        var vat_number = 1;
        // Multilang field setup must happen before document is ready so that calls to displayFlags() to avoid
        // precedence conflicts with other document.ready() blocks
                    languages[0] = {
                id_lang: 1,
                iso_code: 'it',
                name: 'Italiano (Italian)',
                is_default: '1'
            };
                // we need allowEmployeeFormLang var in ajax request
        allowEmployeeFormLang = 0;
        displayFlags(languages, id_language, allowEmployeeFormLang);

        $(document).ready(function() {

            $(".show_checkbox").click(function () {
                $(this).addClass('hidden')
                $(this).siblings('.checkbox').removeClass('hidden');
                $(this).siblings('.hide_checkbox').removeClass('hidden');
                return false;
            });
            $(".hide_checkbox").click(function () {
                $(this).addClass('hidden')
                $(this).siblings('.checkbox').addClass('hidden');
                $(this).siblings('.show_checkbox').removeClass('hidden');
                return false;
            });

            
            if ($(".datepicker").length > 0)
                $(".datepicker").datepicker({
                    prevText: '',
                    nextText: '',
                    dateFormat: 'yy-mm-dd'
                });

            if ($(".datetimepicker").length > 0)
            $('.datetimepicker').datetimepicker({
                prevText: '',
                nextText: '',
                dateFormat: 'yy-mm-dd',
                // Define a custom regional settings in order to use PrestaShop translation tools
                currentText: 'Adesso',
                closeText: 'Fatto',
                ampm: false,
                amNames: ['AM', 'A'],
                pmNames: ['PM', 'P'],
                timeFormat: 'hh:mm:ss tt',
                timeSuffix: '',
                timeOnlyTitle: 'Scegli l\'ora',
                timeText: 'Ora',
                hourText: 'Ora',
                minuteText: 'Minuti',
            });
                    });
    state_token = '5b4b8f347a16f3110192acdca0e54919';
    
    var string_price = 'Sarà applicato quando il prezzo è';
    var string_weight = 'Sarà applicato quando il peso è';

    </script>

                </div>
                            <div id="step-3" class="step_container">     
                    

<form id="step_carrier_conf" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data" novalidate>
            <input type="hidden" name="id_carrier" id="id_carrier_2" value="105" />
                <input type="hidden" name="submitAddcarrier" value="1" />
                
                <div class="panel" id="fieldset_form_2_2">
                                            
                                                <div class="form-wrapper">
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    Larghezza massima del pacco gestita da questo corriere. Imposta a "0" oppure lascia vuoto per ignorare. Il valore deve essere un numero intero.
                                                ">
                                                                                Larghezza massima pacco (cm)
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                                                                                                                                                                                                                                    <input type="text"
                                            name="max_width"
                                            id="max_width"
                                            value="0"
                                            class=""
                                                                                                                                                                                                                                                                                                                                                                                                            />
                                        
                                                                                                                                                                                    
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    Altezza massima del pacco gestita da questo corriere. Imposta a "0" oppure lascia vuoto per ignorare. Il valore deve essere un numero intero.
                                                ">
                                                                                Altezza massima pacco (cm)
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                                                                                                                                                                                                                                    <input type="text"
                                            name="max_height"
                                            id="max_height"
                                            value="0"
                                            class=""
                                                                                                                                                                                                                                                                                                                                                                                                            />
                                        
                                                                                                                                                                                    
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    Profondità massima del pacco gestita da questo corriere. Imposta a "0" oppure lascia vuoto per ignorare. Il valore deve essere un numero intero.
                                                ">
                                                                                Profondità massima pacco (cm)
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                                                                                                                                                                                                                                    <input type="text"
                                            name="max_depth"
                                            id="max_depth"
                                            value="0"
                                            class=""
                                                                                                                                                                                                                                                                                                                                                                                                            />
                                        
                                                                                                                                                                                    
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    Peso massimo del pacco gestito da questo corriere. Imposta a "0" oppure lascia vuoto per ignorare.
                                                ">
                                                                                Peso massimo pacco (kg)
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                                                                                                                                                                                                                                    <input type="text"
                                            name="max_weight"
                                            id="max_weight"
                                            value="1.100000"
                                            class=""
                                                                                                                                                                                                                                                                                                                                                                                                            />
                                        
                                                                                                                                                                                    
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    Segna tutti i gruppi a cui vuoi dare accesso a questo mezzo di spedizione.
                                                ">
                                                                                Accesso di gruppo
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                                                        
<div class="row">
    <div class="col-lg-6">
        <table class="table table-bordered">
            <thead>
                <tr>
                    <th class="fixed-width-xs">
                        <span class="title_box">
                            <input type="checkbox" name="checkme" id="checkme" onclick="checkDelBoxes(this.form, 'groupBox[]', this.checked)" />
                        </span>
                    </th>
                    <th class="fixed-width-xs"><span class="title_box">Id</span></th>
                    <th>
                        <span class="title_box">
                            Nome del gruppo
                        </span>
                    </th>
                </tr>
            </thead>
            <tbody>
                            <tr>
                    <td>
                                                <input type="checkbox" name="groupBox[]" class="groupBox" id="groupBox_1" value="1" checked="checked" />
                    </td>
                    <td>1</td>
                    <td>
                        <label for="groupBox_1">Visitor</label>
                    </td>
                </tr>
                            <tr>
                    <td>
                                                <input type="checkbox" name="groupBox[]" class="groupBox" id="groupBox_2" value="2" checked="checked" />
                    </td>
                    <td>2</td>
                    <td>
                        <label for="groupBox_2">Guest</label>
                    </td>
                </tr>
                            <tr>
                    <td>
                                                <input type="checkbox" name="groupBox[]" class="groupBox" id="groupBox_3" value="3" checked="checked" />
                    </td>
                    <td>3</td>
                    <td>
                        <label for="groupBox_3">Customer</label>
                    </td>
                </tr>
                        </tbody>
        </table>
    </div>
</div>
                                                                
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                        
                                                                    
                                    </div><!-- /.form-wrapper -->
                                
                        
                                        
        </div>
        
        
    </form>



    <script type="text/javascript">
        var module_dir = '/modules/';
        var id_language = 1;
        var languages = new Array();
        var vat_number = 1;
        // Multilang field setup must happen before document is ready so that calls to displayFlags() to avoid
        // precedence conflicts with other document.ready() blocks
                    languages[0] = {
                id_lang: 1,
                iso_code: 'it',
                name: 'Italiano (Italian)',
                is_default: '1'
            };
                // we need allowEmployeeFormLang var in ajax request
        allowEmployeeFormLang = 0;
        displayFlags(languages, id_language, allowEmployeeFormLang);

        $(document).ready(function() {

            $(".show_checkbox").click(function () {
                $(this).addClass('hidden')
                $(this).siblings('.checkbox').removeClass('hidden');
                $(this).siblings('.hide_checkbox').removeClass('hidden');
                return false;
            });
            $(".hide_checkbox").click(function () {
                $(this).addClass('hidden')
                $(this).siblings('.checkbox').addClass('hidden');
                $(this).siblings('.show_checkbox').removeClass('hidden');
                return false;
            });

            
            if ($(".datepicker").length > 0)
                $(".datepicker").datepicker({
                    prevText: '',
                    nextText: '',
                    dateFormat: 'yy-mm-dd'
                });

            if ($(".datetimepicker").length > 0)
            $('.datetimepicker').datetimepicker({
                prevText: '',
                nextText: '',
                dateFormat: 'yy-mm-dd',
                // Define a custom regional settings in order to use PrestaShop translation tools
                currentText: 'Adesso',
                closeText: 'Fatto',
                ampm: false,
                amNames: ['AM', 'A'],
                pmNames: ['PM', 'P'],
                timeFormat: 'hh:mm:ss tt',
                timeSuffix: '',
                timeOnlyTitle: 'Scegli l\'ora',
                timeText: 'Ora',
                hourText: 'Ora',
                minuteText: 'Minuti',
            });
                    });
    state_token = '5b4b8f347a16f3110192acdca0e54919';
    
    var string_price = 'Sarà applicato quando il prezzo è';
    var string_weight = 'Sarà applicato quando il peso è';

    </script>

                </div>
                            <div id="step-4" class="step_container">     
                    
<script type="text/javascript">
    var summary_translation_undefined = '[non definito]';
    var summary_translation_meta_informations = 'Questo corriere è @s1 e la data di consegna annunciata è: @s2.';
    var summary_translation_free = '<strong>gratuito</strong>';
    var summary_translation_paid = '<strong>a pagamento</strong>';
    var summary_translation_range = '<span class="is_free">Questo corriere può consegnare ordini da @s1 a @s2.</span>';
    var summary_translation_range_limit = 'Se l\'ordine eccede le fasce, il comportamento è di @s3.';
    var summary_translation_shipping_cost = 'Il costo di spedizione è calcolato @s1 e la regola @s2 sarà applicata.';
    var summary_translation_price = '<strong>in base al prezzo</strong>';
    var summary_translation_weight = '<strong>in base al peso</strong>';
</script>

<div class="defaultForm">
    <div class="panel">
        <div class="panel-heading">Nome corriere <strong id="summary_name"></strong></div>
        <div class="panel-body">
            <p id="summary_meta_informations"></p>
            <p id="summary_shipping_cost"></p>
            <p id="summary_range"></p>
            <div>
            Questo corriere sarà proposto per queste zone di consegna
                <ul id="summary_zones"></ul>
            </div>
            <div>
                E sarà proposto per questi gruppi di clienti
                <ul id="summary_groups"></ul>
            </div>
                    </div>
    </div>
    

<form id="step_carrier_summary" class="defaultForm form-horizontal" method="post" enctype="multipart/form-data" novalidate>
            <input type="hidden" name="id_carrier" id="id_carrier_3" value="105" />
                <input type="hidden" name="submitAddcarrier" value="1" />
                
                <div class="panel" id="fieldset_form_3_3">
                                            
                                                <div class="form-wrapper">
                                            
                        <div class="form-group">
                                                    
                                                                    <label class="control-label col-lg-3">
                                                                                <span class="label-tooltip" data-toggle="tooltip" data-html="true" title="                                                    Abilita il corriere nel front office.
                                                ">
                                                                                Attivato
                                                                                </span>
                                                                            </label>
                                                            

                            
            
                                <div class="col-lg-9">
                                
                                                                    <span class="switch prestashop-switch fixed-width-lg">
                                                                                <input type="radio" name="active" id="active_on" value="1" checked="checked"/>
                                        <label for="active_on">Sì</label>
                                                                                <input type="radio" name="active" id="active_off" value="0"/>
                                        <label for="active_off">No</label>
                                                                                <a class="slide-button btn"></a>
                                    </span>
                                                                
                                
                                                                    
                                </div>
                            

                                                </div>
                        
                                        
                                                                    
                                    </div><!-- /.form-wrapper -->
                                
                        
                                        
        </div>
        
        
    </form>



    <script type="text/javascript">
        var module_dir = '/modules/';
        var id_language = 1;
        var languages = new Array();
        var vat_number = 1;
        // Multilang field setup must happen before document is ready so that calls to displayFlags() to avoid
        // precedence conflicts with other document.ready() blocks
                    languages[0] = {
                id_lang: 1,
                iso_code: 'it',
                name: 'Italiano (Italian)',
                is_default: '1'
            };
                // we need allowEmployeeFormLang var in ajax request
        allowEmployeeFormLang = 0;
        displayFlags(languages, id_language, allowEmployeeFormLang);

        $(document).ready(function() {

            $(".show_checkbox").click(function () {
                $(this).addClass('hidden')
                $(this).siblings('.checkbox').removeClass('hidden');
                $(this).siblings('.hide_checkbox').removeClass('hidden');
                return false;
            });
            $(".hide_checkbox").click(function () {
                $(this).addClass('hidden')
                $(this).siblings('.checkbox').addClass('hidden');
                $(this).siblings('.show_checkbox').removeClass('hidden');
                return false;
            });

            
            if ($(".datepicker").length > 0)
                $(".datepicker").datepicker({
                    prevText: '',
                    nextText: '',
                    dateFormat: 'yy-mm-dd'
                });

            if ($(".datetimepicker").length > 0)
            $('.datetimepicker').datetimepicker({
                prevText: '',
                nextText: '',
                dateFormat: 'yy-mm-dd',
                // Define a custom regional settings in order to use PrestaShop translation tools
                currentText: 'Adesso',
                closeText: 'Fatto',
                ampm: false,
                amNames: ['AM', 'A'],
                pmNames: ['PM', 'P'],
                timeFormat: 'hh:mm:ss tt',
                timeSuffix: '',
                timeOnlyTitle: 'Scegli l\'ora',
                timeText: 'Ora',
                hourText: 'Ora',
                minuteText: 'Minuti',
            });
                    });
    state_token = '5b4b8f347a16f3110192acdca0e54919';
    
    var string_price = 'Sarà applicato quando il prezzo è';
    var string_weight = 'Sarà applicato quando il peso è';

    </script>

</div>

                </div>
                    </div>
    </div>
</div>


Edited by tadan78 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...