Un utente ha chiesto informazioni su WCFM - Frontend Manager for WooCommerce along with Bookings Subscription Listings Compatible di Wordpress

Informazioni “Market Shipping”

Un utente ha chiesto ๐Ÿ‘‡

Grazie mille per la pronta risposta.

Tuttavia, ho richiesto le informazioni “Spedizione Marketplace”

per dire addio alla breve descrizione / attributi.

vedi foto allegata.

https://imggmi.com/full/2019/11/25/a784069b6255dbe24330e5f951386bcb-full.png.html

Il problema รจ che non posso usare CSS per spostarlo o colorarlo !!

Per favore aiutami a riposizionarlo come nell’immagine e coloralo.

Grazie

Autore del plugin

(@wclovers)

1 anno, 4 mesi fa

Ciao,

Si prega di utilizzare questo codice di revisione –

add_action( 'woocommerce_single_product_summary', function() {
	global $WCFM, $WCFMmp, $post;
  	
	if( !apply_filters( 'wcfm_is_allow_store_shipping', true ) ) return; 
	
	$wcfm_shipping_options = get_option( 'wcfm_shipping_options', array() );
	$wcfmmp_store_shipping_enabled = isset( $wcfm_shipping_options['enable_store_shipping'] ) ? $wcfm_shipping_options['enable_store_shipping'] : 'yes';
	if( $wcfmmp_store_shipping_enabled != 'yes' ) return;
		
	$vendor_id = 0;
	$product_id = 0;
	if( is_product() && $post && is_object( $post ) ) {
		$product_id = $post->ID;
		$vendor_id = wcfm_get_vendor_id_by_post( $product_id );
	}
	if( !$product_id ) return;
	if( !$WCFM->frontend->is_wcfm_needs_shipping( $product_id ) ) return;
	if( !$vendor_id ) return;
	
	if( $WCFMmp->wcfmmp_vendor->is_vendor_sold_by( $vendor_id ) ) {
		$wcfmmp_shipping          = get_user_meta( $vendor_id, '_wcfmmp_shipping', true );
		$processing_times         = wcfmmp_get_shipping_processing_times();
		$processing_time          = isset($wcfmmp_shipping['_wcfmmp_pt']) ? $wcfmmp_shipping['_wcfmmp_pt'] : '';
		$processing_time          = get_post_meta( $product_id, '_wcfmmp_processing_time', true ) ? get_post_meta( $product_id, '_wcfmmp_processing_time', true ) : $processing_time;
		
		if( isset( $wcfmmp_shipping['_wcfmmp_user_shipping_enable'] ) && $processing_time && isset( $processing_times[$processing_time] ) ) {
			echo '<div class="wcfm_clearfix"></div><div class="wcfmmp_shipment_processing_display">'. __( 'Item will be shipped in', 'wc-multivendor-marketplace' ) . ' ' . $processing_times[$processing_time] .'</div><div class="wcfm_clearfix"></div>';
		}
	}	
}, 25 );
add_filter( 'wcfm_is_allow_shipping_processing_time_info', '__return_false' );

Grazie

Was this helpful?

0 / 0

Lascia un commento 0

Your email address will not be published. Required fields are marked *