Problema spedizione gratuita
-
Salve, ho un problema su un sito wordpress.org con estensione woocommerce ed elementor, ho settato tariffa unica, spedizione gratuita e ritiro in sede, ho aggiunto uno snippet a file .php del tema storevilla per far sparire la tariffa unica e selezionare direttamente quella gratuita quando disponibile, però mi sparisce anche ritiro in sede, come lo modifico?
ecco qua, l’ho trovato sul web
/**
* Hide shipping rates when free shipping is available.
* Updated to support WooCommerce 2.6 Shipping Zones.
*
* @param array $rates Array of rates found for the package.
* @return array
*/
function my_hide_shipping_when_free_is_available( $rates ) {
$free = array();
foreach ( $rates as $rate_id => $rate ) {
if ( ‘free_shipping’ === $rate->method_id ) {
$free[ $rate_id ] = $rate;
break;
}
}
return ! empty( $free ) ? $free : $rates;
}
add_filter( ‘woocommerce_package_rates’, ‘my_hide_shipping_when_free_is_available’, 100 ); -
Ciao!
Il nostro team di supporto gestisce l’assistenza ai siti WordPress.com esclusivamente e non siamo in grado di fornire supporto agli utenti di WordPress.org, poiché la struttura di questi siti è molto diversa. Il tuo account WordPress.com non ha nessun sito creato, dunque sembra che il sito di cui stai parlando sia ospitato altrove e creato con WordPress.org.
Puoi trovare supporto e suggerimenti per i siti WordPress.org qui:
– http://it.wordpress.org/support/
– https://wordpress.org/support/plugin/woocommerce/ (per WooCommerce)Puoi anche contattare il team di supporto del tuo provider di hosting per chiedere aiuto per risolvere il tuo problema.
Spero ti sia d’aiuto il chiarimento! Buona giornata!
- L'argomento ‘Problema spedizione gratuita’ è chiuso a nuove risposte.