<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[calcolo della spedizione]]></title><description><![CDATA[<p dir="auto">ciao a tutti, avrei bisogno per il mio sito e-commerce uno script che mi permetta di calcolare il costo della spedizione. Mi sapete dare qualche link con tutorial o esempio? Ho cercato in rete , ma non ho trovato nulla. Grazie</p>
]]></description><link>https://dev.connect.gt/topic/20331/calcolo-della-spedizione</link><generator>RSS for Node</generator><lastBuildDate>Fri, 27 Nov 2026 00:30:05 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/20331.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Nov 2006 15:35:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to calcolo della spedizione on Sat, 04 Nov 2006 08:38:31 GMT]]></title><description><![CDATA[<p dir="auto">Ciao Eliane,<br />
ti ho modificato il poste perchè avevi scritto tutto il codice nei tag quote.<br />
Per migliorare la leggibilità ho inserito i tag [ code ]</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/stella" aria-label="Profile: Stella">@<bdi>Stella</bdi></a>: anche io ti consiglio di utilizzare il peso per determinare le spese di sped.</p>
<p dir="auto"><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /><img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/customizations/54a3bffb-5e4a-4eb8-81dc-99b2072e5d05-175.gif?v=12b9555a9a1" class="not-responsive emoji emoji-customizations emoji--ciauz" style="height:1.4em;width:auto;vertical-align:middle" title=":ciauz:" alt="" /></p>
]]></description><link>https://dev.connect.gt/post/390897</link><guid isPermaLink="true">https://dev.connect.gt/post/390897</guid><dc:creator><![CDATA[legolas]]></dc:creator><pubDate>Sat, 04 Nov 2006 08:38:31 GMT</pubDate></item><item><title><![CDATA[Reply to calcolo della spedizione on Fri, 03 Nov 2006 23:54:44 GMT]]></title><description><![CDATA[<p dir="auto">Salve Stella<br />
Che script per e-commercio usi?</p>
<p dir="auto">per la spessa di spedizione dipende di che prodotto venderai<br />
farei cosi:<br />
nel database <strong>tabella</strong> <strong>prodotti</strong> inserisci <strong>chilo</strong> per mettere il peso del prodotto<br />
nella pagina che inserisci il prodotto inserisci anche il chilo.</p>
<p dir="auto">nella pagina del carrello che calcola i prezzi dei prodotti, potresti calcolare anche il peso e fare un if così:</p>
<pre><code>&lt;%
menu2 = Request.QueryString("menu1")
%&gt;
 
&lt;SCRIPT language=JavaScript&gt;
&lt;!--  
function leapTo (link)
   {
   var new_url=link;
   if (  (new_url != "")  &amp;&amp;  (new_url != null)  )
      window.location=new_url;
   else
      alert("");
   }
// --&gt;
&lt;/SCRIPT&gt; 
&lt;% dim prezzosp, titolosp
if menu2="1" then
prezzosp=700
titolosp="Pacco Ordinario"
elseif menu2="2" then
prezzosp=932
titolosp="Pacco Ordinario assicurato"
elseif menu2="3" then
prezzosp=910
titolosp="Paccocelere 3"
elseif menu2="4" then
prezzosp=1142
titolosp="Paccocelere 3 assicurati"
elseif menu2="5" then
prezzosp=1530
titolosp="Paccocelere 1 Plus"
elseif menu2="6" then
prezzosp=1762
titolosp="Paccocelere 1 Plus assicurato"
elseif menu2="7" then
prezzosp=2500
titolosp="Paccocelere Maxi 3"
elseif menu2="8" then
prezzosp=2732
titolosp="Paccocelere Maxi 3 assicurato"
elseif menu2="9" then
prezzosp=500
titolosp="Spedizione a Milano città"
elseif menu2="10" then
prezzosp=0
titolosp=""
elseif menu2="11" then
prezzosp=2720
titolosp="Unione Europea, fino a 3 Kg"
elseif menu2="12" then
prezzosp=3140
titolosp="Unione Europea, 3 Kg fino a 5 Kg"
elseif menu2="13" then
prezzosp=4800
titolosp="Unione Europea, 5 Kg fino a 15 Kg"
elseif menu2="14" then
prezzosp=6535
titolosp="Unione Europea, 15 Kg fino a 30 Kg"
elseif menu2="15" then
prezzosp=3605
titolosp="Norvegia o Svizzera, fino a 3 Kg"
elseif menu2="16" then
prezzosp=4030
titolosp="Norvegia o Svizzera, 3 Kg fino a 5 Kg"
elseif menu2="17" then
prezzosp=5690
titolosp="Norvegia o Svizzera, 5 Kg fino a 15 Kg"
elseif menu2="18" then
prezzosp=7435
titolosp="Norvegia o Svizzera, 15 Kg fino a 30 Kg"
else
prezzosp=0
titolosp=""
end if
%&gt;
            &lt;form name="form1" method="post" action=""&gt;
  &lt;font size="3"&gt;&lt;strong&gt;"Hai raggiunto &lt;%=FormatNumber(SpeseSpedizione,0)%&gt; KG"&lt;/strong&gt;&lt;/font&gt; 
          &lt;select name="menu1=" onChange="MM_jumpMenu('parent',this,0)"&gt;
    &lt;option value="" &gt;Selezione tipo spedizione:&lt;/option&gt;
            &lt;%if SpeseSpedizione &lt; int(21000) then%&gt;
            &lt;option value="?menu1=1" &lt;% if menu2 = "1" then %&gt;selected&lt;%end if%&gt; &gt;Pacco 
            Ordinario &amp;#8364; 7,00 (Italia)&lt;/option&gt;
            &lt;option value="?menu1=2" &lt;% if menu2 = "2" then %&gt;selected&lt;%end if%&gt; &gt;Pacco 
            Ordinario assicurato &amp;#8364; 9,32 (Italia)&lt;/option&gt;
            &lt;option value="?menu1=3" &lt;% if menu2 = "3" then %&gt;selected&lt;%end if%&gt; &gt;Paccocelere 
            3 &amp;#8364; 9,10 (Italia)&lt;/option&gt;
            &lt;option value="?menu1=4" &lt;% if menu2 = "4" then %&gt;selected&lt;%end if%&gt; &gt;Paccocelere 
            3 assicurato &amp;#8364; 11,42 (Italia)&lt;/option&gt;
            &lt;option value="?menu1=5" &lt;% if menu2 = "5" then %&gt;selected&lt;%end if%&gt; &gt;Paccocelere 
            1 Plus &amp;#8364; 15,30 (Italia)&lt;/option&gt;
            &lt;option value="?menu1=6" &lt;% if menu2 = "6" then %&gt;selected&lt;%end if%&gt; &gt;Paccocelere 
            1 Plus assicurato &amp;#8364; 17,62 (Italia)&lt;/option&gt;
            &lt;%end if%&gt;
            &lt;%if SpeseSpedizione &lt; int(31000) and SpeseSpedizione &gt;int(20000) then%&gt;
            &lt;option value="?menu1=3" &lt;% if menu2 = "3" then %&gt;selected&lt;%end if%&gt; &gt;Paccocelere 
            3 &amp;#8364; 9,10 (Italia)&lt;/option&gt;
            &lt;option value="?menu1=4" &lt;% if menu2 = "4" then %&gt;selected&lt;%end if%&gt; &gt;Paccocelere 
            3 assicurati &amp;#8364; 13,00 (Italia)&lt;/option&gt;
            &lt;option value="?menu1=5" &lt;% if menu2 = "5" then %&gt;selected&lt;%end if%&gt; &gt;Paccocelere 
            1 Plus &amp;#8364; 15,30 (Italia)&lt;/option&gt;
            &lt;option value="?menu1=6" &lt;% if menu2 = "6" then %&gt;selected&lt;%end if%&gt; &gt;Paccocelere 
            1 Plus assicurati &amp;#8364; 17,62 (Italia)&lt;/option&gt;
            &lt;%end if%&gt;
            &lt;%if SpeseSpedizione &lt; int(51000) and SpeseSpedizione &gt;int(30000) then%&gt;
            &lt;option value="?menu1=7" &lt;% if menu2 = "7" then %&gt;selected&lt;%end if%&gt; &gt;Paccocelere 
            Maxi 3 &amp;#8364; 25,00 (Italia) &lt;/option&gt;
            &lt;option value="?menu1=8" &lt;% if menu2 = "8" then %&gt;selected&lt;%end if%&gt; &gt;Paccocelere 
            Maxi 3 assicurati &amp;#8364; 27,32 (Italia) &lt;/option&gt;
            &lt;%end if%&gt;
            &lt;option value="?menu1=9" &lt;% if menu2 = "9" then %&gt;selected&lt;%end if%&gt; &gt;Spedizione 
            a Milano città &amp;#8364; 5,00 (Italia) &lt;/option&gt;
            &lt;option value="?menu1=10" &lt;% if menu2 = "10" or int(menu2) &gt;int(10) then %&gt;selected&lt;%end if%&gt; &gt;Altri 
            paese &lt;/option&gt;
          &lt;/select&gt;
          &lt;a href="faq.asp?p=spedizione"&gt;Dettagli spedizione&lt;/a&gt; 
        &lt;/form&gt;
&lt;%if menu2="10" or int(menu2) &gt;int(10) then%&gt;
        &lt;strong&gt;Spedizione paesi dell'Unione Europea:&lt;/strong&gt;&lt;br&gt;
Austria, Belgio, Danimarca, Finlandia, Francia, Germania, Irlanda, Lussemburgo, Paesi Bassi, Portogallo, Regno Unito, Spagna, Svezia.&lt;br&gt;&lt;br&gt;
        &lt;INPUT onclick="leapTo('?menu1=11')" type="radio" name="sesso" &lt;%if menu2="11" then%&gt;checked &lt;%end if%&gt;&gt; Fino a 3 Kg &amp;euro; &lt;font color="#FF0000"&gt;27,20 &lt;/font&gt;&lt;br&gt;
        &lt;INPUT onclick="leapTo('?menu1=12')" type="radio" name="sesso" &lt;%if menu2="12" then%&gt;checked &lt;%end if%&gt;&gt;da oltre 3 Kg fino a 5 Kg &amp;euro; &lt;font color="#FF0000"&gt;31,40 &lt;/font&gt;&lt;br&gt;
        &lt;INPUT onclick="leapTo('?menu1=13')" type="radio" name="sesso" &lt;%if menu2="13" then%&gt;checked &lt;%end if%&gt;&gt;da oltre 5 Kg fino a 15 Kg &amp;euro; &lt;font color="#FF0000"&gt;48,00 &lt;/font&gt;&lt;br&gt;
       &lt;INPUT onclick="leapTo('?menu1=14')" type="radio" name="sesso" &lt;%if menu2="14" then%&gt;checked &lt;%end if%&gt;&gt; da oltre 15 Kg fino a 30 Kg &amp;euro; &lt;font color="#FF0000"&gt;65,35 &lt;/font&gt;&lt;br&gt;
        &lt;br&gt;
        
  &lt;strong&gt;Spedizione Norvegia - Svizzera:&lt;/strong&gt;&lt;br&gt;
       &lt;INPUT onclick="leapTo('?menu1=15')" type="radio" name="sesso" &lt;%if menu2="15" then%&gt;checked &lt;%end if%&gt;&gt; Fino a 3 Kg &amp;euro; &lt;font color="#FF0000"&gt;36,05 &lt;/font&gt;&lt;br&gt;
        &lt;INPUT onclick="leapTo('?menu1=16')" type="radio" name="sesso" &lt;%if menu2="16" then%&gt;checked &lt;%end if%&gt;&gt;da oltre 3 Kg fino a 5 Kg &amp;euro; &lt;font color="#FF0000"&gt;40,30&lt;/font&gt; &lt;br&gt;
       &lt;INPUT onclick="leapTo('?menu1=17')" type="radio" name="sesso" &lt;%if menu2="17" then%&gt;checked &lt;%end if%&gt;&gt; da oltre 5 Kg fino a 15 Kg &amp;euro; &lt;font color="#FF0000"&gt;56,90 &lt;/font&gt;&lt;br&gt;
       &lt;INPUT onclick="leapTo('?menu1=18')" type="radio" name="sesso" &lt;%if menu2="18" then%&gt;checked &lt;%end if%&gt;&gt; da oltre 15 Kg fino a 30 Kg &amp;euro; &lt;font color="#FF0000"&gt;74,35 &lt;/font&gt;&lt;br&gt;
        &lt;br&gt;
  Altri paese non sono ammessi perché i costi sono tropi elevati.&lt;br&gt;&lt;br&gt;
&lt;%end if%&gt;
prezzo spedizione = &lt;%=VisualizzaPrezzo(prezzosp)%&gt;
</code></pre>
<p dir="auto">Ho fatto questo script per il e-commerce di mwopen</p>
]]></description><link>https://dev.connect.gt/post/390898</link><guid isPermaLink="true">https://dev.connect.gt/post/390898</guid><dc:creator><![CDATA[eliane]]></dc:creator><pubDate>Fri, 03 Nov 2006 23:54:44 GMT</pubDate></item></channel></rss>