<?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[visualizzazione doppia spedizione]]></title><description><![CDATA[<p dir="auto">Ciao a tutti, ho un problema con woocommerce. Ho importato la spedizione nazionale a 5,50 in secondo oggetto a 0 e la spedizione gratis per un ordine di ?40. nel carrello in ogni caso compaioni entrambe e quando spendo piu di 40 non sparisce l'opzione ?5.50. allora ho cercato in rete e ho aggiunto un codice (copio sotto) ma non va , mi appare solo una spedizione, quella gratis per ogni importo. help!!!!<br />
/**</p>
<ul>
<li>woocommerce_package_rates is a 2.1+ hook<br />
<em>/<br />
add_filter( 'woocommerce_package_rates', 'hide_shipping_when_free_is_available', 10, 2 );<br />
/</em>*</li>
<li>Hide shipping rates when free shipping is available</li>
<li></li>
<li>@param array $rates Array of rates found for the package</li>
<li>@param array $package The package array/object being shipped</li>
<li><a class="plugin-mentions-user plugin-mentions-a" href="/user/return" aria-label="Profile: return">@<bdi>return</bdi></a> array of modified rates<br />
*/<br />
function hide_shipping_when_free_is_available( $rates, $package ) {<br />
// Only modify rates if free_shipping is present<br />
if ( isset( $rates['free_shipping'] ) ) {<br />
// To unset a single rate/method, do the following. This example unsets flat_rate shipping<br />
unset( $rates['flat_rate'] );<br />
// To unset all methods except for free_shipping, do the following<br />
$free_shipping = $rates['free_shipping'];<br />
$rates = array();<br />
$rates['free_shipping'] = $free_shipping;<br />
}<br />
return $rates;<br />
}</li>
</ul>
]]></description><link>https://dev.connect.gt/topic/223547/visualizzazione-doppia-spedizione</link><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 07:52:43 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/223547.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 May 2016 16:23:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to visualizzazione doppia spedizione on Sat, 21 May 2016 20:55:56 GMT]]></title><description><![CDATA[<p dir="auto">il codice non funziona più perchè hanno fatto delle modifiche.</p>
<p dir="auto">tu cosa vorresti?</p>
]]></description><link>https://dev.connect.gt/post/1223449</link><guid isPermaLink="true">https://dev.connect.gt/post/1223449</guid><dc:creator><![CDATA[provatoo]]></dc:creator><pubDate>Sat, 21 May 2016 20:55:56 GMT</pubDate></item></channel></rss>