Home Forums Themes Support Claue Problem with display

Viewing 10 reply threads
  • Author
    Posts
    • #14172

      Hi,

      I would like to display the price like the screen , see screenshot.

       

      Attachments:
      You must be logged in to view attached files.
    • #14187

      Hi,

      It display price like your screen shot when you set different price for different variation http://take.ms/KBNQ1

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

      • #14194

        Hi,

        Yes but I would like the two same price display on the screen 1 on the screen 2 : price with “crossed out price”

        the class=”woocommerce-variation-price” on the screen 1

         

        Thanks

         

         

    • #14204

      Could you send us the link of product on your site. I on our demo it still show regular price with line cross like you want http://take.ms/8HvCvw

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #14205

      Hi,

      Yes but I would like to display http://take.ms/8HvCvw on the WALL SHOP page too

      Thx

       

       

    • #14208

      Hi,

      You mean display this on product listing page?

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

      • #14210

        Hi,

        Yes , display on the listing page

    • #14221

      Sorry on product listing it doesn’t support show price like this.

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

      • #14238

        Hi,

        I found the solution and product listing support this , see screenshot. Can I purchase another 6 month support with you ? for your help with this settings code for futur enhancement ?

        Thx

         

         

        Attachments:
        You must be logged in to view attached files.
    • #14240

      Could you send us the link you saw the solution? Is the site use WooCommerce?

      Yes, you support will be expired, we happy if you purchase 6 month extend support.

      Thanks

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

      • #14243

        Hi,

        The code here :

        add_filter( ‘woocommerce_variable_sale_price_html’, ‘wc_shopy_variation_price_format’, 10, 2 );
        add_filter( ‘woocommerce_variable_price_html’, ‘wc_wc_shopy_variation_price_format’, 10, 2 );

        function wc_shopy_variation_price_format( $price, $product ) {
        $min_price = $product->get_variation_price( ‘min’, true );
        if ($product->product_type == ‘variable’) {
        $available_variations = $product->get_available_variations();
        for ($i = 0; $i < count($available_variations); ++$i) {
        $variation_id = $available_variations[$i][‘variation_id’];
        $variable_product1 = new WC_Product_Variation($variation_id);
        $regular_price = $variable_product1->regular_price;
        }
        $price = sprintf( __( ‘A partir de %1$s <ins>%2$s</ins>’, ‘woocommerce’ ), wc_price( $regular_price ) , wc_price( $min_price ) );
        }
        else{
        $price = sprintf( __( ‘A partir de %1$s’, ‘woocommerce’ ), wc_price( $min_price ) );
        }
        return $price;
        }

        So there is no filter on category so it apply for all variation price, this is a problem for variation with no SALE, could you help me for apply this on variation with a category call “promotions” ?

        Thanks

         

         

         

    • #14267

      Hi,

      Please check the right code here https://pastebin.com/B4cPhXVV

    • #14278

      Hi,

      It’s not ok,  “&& is_product_category( ‘promotions’ )” it apply for promotions but there is no price on another page

      Thanks

    • #14297

      You mean you want to display price for all category except “Promotions”?

      • #14348

        Hi,

        I would like to display sale price only in category “promotions” on the listing shop page & “promotions” page.

        Thanks

         

    • #14349

      Hi,

      Please create new page as “promotions” and use short code

      [products limit="12" columns="4" category="promotions" on_sale="true"]

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 10 reply threads

You must be logged in to reply to this topic.