TELAIO DI SUPPORTO PER SUPERFICIE PIANA


Compara

108

Svuota

Telaio di supporto per superficie piana

(per installlazione orizzontale)

Scheda tecnica

Manuale tecnico

 

Based on 0 reviews

0.0 overall
0
0
0
0
0

Only logged in customers who have purchased this product may leave a review.

There are no reviews yet.

// Già verificati e funzionanti// Aggiungo foglio di stile personalizzato function add_theme_scripts() { wp_enqueue_style( 'fogliodistile', 'https://www.ourhome.it/wp-content/themes/ms/my-style.css' ); } add_action ( 'wp_enqueue_scripts', 'add_theme_scripts' );// Percentuale di sconto ai prodotti wc add_filter('use_block_editor_for_post', '__return_false'); add_action( 'woocommerce_before_single_product_summary', 'labdesign80_show_sale_percentage', 25 ); add_action( 'woocommerce_before_shop_loop_item_title', 'labdesign80_show_sale_percentage', 25 ); function labdesign80_show_sale_percentage() { global $product; if ( $product->is_on_sale() ) { if ( ! $product->is_type( 'variable' ) ) { $max_percentage = round( ( ( $product->regular_price - $product->sale_price ) / $product->regular_price ) * 100 ); } else { foreach ( $product->get_children() as $child_id ) : $variation = $product->get_child( $child_id ); $price = $variation->get_regular_price(); $sale = $variation->get_sale_price(); $percentage = $price != 0 && ! empty( $sale ) ? ( ( $price - $sale ) / $price * 100 ) : $max_percentage; if ( $percentage >= $highest_percentage ) : $max_percentage = $percentage; $regular_price = $product->get_variation_regular_price( 'min' ); $sale_price = $product->get_variation_sale_price( 'min' ); endif; endforeach; } echo apply_filters( 'woocommerce_sale_flash', '
-' . round($max_percentage) . '%
', $post, $product ); } }// Modifiche al backend add_action('admin_head', 'codice_css');function codice_css() { echo ''; }// Usa il random come disposizione predefinita add_filter( 'woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args' ); function custom_woocommerce_get_catalog_ordering_args( $args ) { $orderby_value = isset( $_GET['orderby'] ) ? wc_clean( $_GET['orderby'] ) : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) ); if ( 'random_list' == $orderby_value ) { $args['orderby'] = 'rand'; $args['order'] = ''; $args['meta_key'] = ''; } return $args; } add_filter( 'woocommerce_default_catalog_orderby_options', 'custom_woocommerce_catalog_orderby' ); add_filter( 'woocommerce_catalog_orderby', 'custom_woocommerce_catalog_orderby' ); function custom_woocommerce_catalog_orderby( $sortby ) { $sortby['random_list'] = 'Random'; return $sortby; }add_filter('woocommerce_default_catalog_orderby', 'custom_default_catalog_orderby');function custom_default_catalog_orderby() { return 'random_list'; // Can also use title and price }// Plugin in MyCred si assicura che l'ordine sia in completato prima di attribuire i punti add_action( 'after_setup_theme', 'mycred_pro_adjust_woo_rewards', 110 ); function mycred_pro_adjust_woo_rewards() {remove_action( 'woocommerce_payment_complete', 'mycred_woo_payout_rewards' ); add_action( 'woocommerce_order_status_completed', 'mycred_woo_payout_rewards' );}// Plugin in MyCred aAccumulo punti in base all'importo finale function mycred_pro_reward_order_percentage( $order_id ) {if ( ! function_exists( 'mycred' ) ) return;// Get Order $order = wc_get_order( $order_id ); $cost = $order->get_subtotal();// Do not payout if order was paid using points if ( $order->payment_method == 'mycred' ) return;// The percentage to payout $percent = 10;// Load myCRED $mycred = mycred();// Make sure user only gets points once per order if ( $mycred->has_entry( 'reward', $order_id, $order->user_id ) ) return;// Reward example 25% in points. $reward = $cost * ( $percent / 100 );// Add reward $mycred->add_creds( 'reward', $order->user_id, $reward, 'per gli acquisti fatti.', $order_id, array( 'ref_type' => 'post' ) );} add_action( 'woocommerce_order_status_completed', 'mycred_pro_reward_order_percentage' );// Faccio vedere quanto costano gli oggetti in punti function custom_variation_price_addition( $data, $product, $variation ) { $price = wc_get_price_to_display( $variation ); $exchange_rate = 10;$mycred = mycred(); $suffix .= '

oppure ' . $mycred->format_creds( $price * $exchange_rate ) . ' punti

';$data['price_html'] .= ' ' . $suffix . '';return $data; } add_filter( 'woocommerce_available_variation', 'custom_variation_price_addition', 10, 3 );function mycred_pro_append_point_price( $rendered_price, $product ) {if ( $product->is_type( 'simple' ) ) {$price = $product->get_price();// How many points does it take to get 1 store currency? $exchange_rate = 10;$mycred = mycred();$rendered_price .= '

oppure ' . $mycred->format_creds( $price * $exchange_rate ) . ' punti

';}return $rendered_price;} add_filter( 'woocommerce_get_price_html', 'mycred_pro_append_point_price', 10, 2 );//aggiungo gatway define( 'SHOW_MYCRED_IN_WOOCOMMERCE', true );// Aggiungo nome e cognome al modulo di registrazione // 1. ADD FIELDS add_action( 'woocommerce_register_form_start', 'bbloomer_add_name_woo_account_registration' ); function bbloomer_add_name_woo_account_registration() { ?>