Home Forums Themes Support Claue Claue general questions

Topic Resolution: Resolved

This topic contains 47 replies, has 2 voices, and was last updated by  Mag8891 2 months ago.

Viewing 15 posts - 31 through 45 (of 48 total)
  • Author
    Posts
  • #22503
    This reply has been marked as private.
    #22517
    This reply has been marked as private.
    #22544

    I can also suggest you to add in custom javascript in sample data the code below, it will move email (create and account) section on top of billing which I think make more sense) I applied it on my checkout.
    jQuery(‘.woocommerce-account-fields’).insertBefore(‘.woocommerce-billing-fields’);
    jQuery(‘.woocommerce-checkout .validate-email’).prependTo(‘.woocommerce-account-fields’);

    13. Also I found answer to my question 13, so will try to edit styles myself where I can with yellow pencil plugin, I think you can recommend it with your theme as will be much less questions about how to style everything that is related to colours and text!

    14 on this template   with linked products product/men-clothing-combo/

    how can I move Earn 6 Points when purchase this product. Worth £0.06!  notice below the cart button as everywhere else?

    15 I found also how to remove variable price range below, but it also removes it fron loop, the author said I need to put code inside if ( is_product() ) { } but when I do that it stops hiding from product page, could you please let me know which code I should put it into to work only on product page not on loop?

    if ( is_product() ) {
    //Remove Price Range
    add_filter( ‘woocommerce_variable_sale_price_html’, ‘detect_variation_price_format’, 10, 2 );
    add_filter( ‘woocommerce_variable_price_html’, ‘detect_variation_price_format’, 10, 2 );
    }

    #22552

    Hi,

    Sorry i’m wrong. I think you should define what you want for your site and make it stable before change. You should complete task one by one before go to next task, you’re customize so much so i confuse and can’t control when you change one element it will affect to other element while other task not complete. You should hire a freelancer and work in pair with you to do one by one.

    8c. Please add below code to claue-child > functions.php

    add_action( 'wp_head', 'remove_social_share' );
    function remove_social_share(){
    	remove_action( 'woocommerce_single_product_summary', 'jas_claue_wc_single_social_share', 50 );
    }

    and add below code to where you want to show social share on layout-x.php

    jas_claue_social_share();

    11. Yes. the code of quickview is in claue > core > libraries > vendors > woocommerce > template >content-quickview-product.php

    Please add below code

    .jas-sticky-atc .woocommerce-product-details__short-description {display: none;}

    12. I see you add below code, please remove this

    body .woocommerce-product-rating .woocommerce-review-link:nth-child(2) {
        display: none;
    }

    13. I only use inspect tool to check http://take.ms/K3863

    13.b Yes, but not all everyone want to do like this

    14. Please add below code

    .yith-par-message {
        display: inline-block;
        width: 100%;
    }

    15. I try some ways but can’t success

    Please use below code to show “From:” it better for user

    add_filter( 'woocommerce_variable_price_html', 'bbloomer_variation_price_format_310', 10, 2 );
     
    function bbloomer_variation_price_format_310( $price, $product ) {
     
    // 1. Find the minimum regular and sale prices
     
    $min_var_reg_price = $product->get_variation_regular_price( 'min', true );
    $min_var_sale_price = $product->get_variation_sale_price( 'min', true );
     
    // 2. New $price
     
    if ( $min_var_sale_price < $min_var_reg_price ) {
    $price = sprintf( __( 'From: <del>%1$s</del><ins>%2$s</ins>', 'woocommerce' ), wc_price( $min_var_reg_price ), wc_price( $min_var_sale_price ) );
    } else {
    $price = sprintf( __( 'From: %1$s', 'woocommerce' ), wc_price( $min_var_reg_price ) );
    }
     
    // 3. Return edited $price
     
    return $price;
    }

    Best regards

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

    #22607
    This reply has been marked as private.
    #22612

    Yes, i have to read all your message and check but i think you should create new topic for new issue don’t merge all issue in one topic. It hard to track when issues mixed.

    I check old issue and fix but not complete and see new issue it mixed with old issue and solution mixed.

    Could you arrange all issue exist now to separate topic.

    Thanks

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

    #22627

    OK I will create separate topic for every question.

    I have found the solution for question 15 if you want to use it in Claue

    It shows range price on category and shows single prices for variable products without range price even if all variations are the same price. Also moves variations price above variations to keep same template for all products which allow to use hooks below the price.

    //Move Variations price above variations to have the same template even if variations prices are the same
    remove_action( ‘woocommerce_single_variation’, ‘woocommerce_single_variation’, 10 );
    add_action( ‘woocommerce_before_variations_form’, ‘woocommerce_single_variation’, 10 );

    //Remove Price Range
    add_filter( ‘woocommerce_variable_sale_price_html’, ‘detect_variation_price_format’, 10, 2 );
    add_filter( ‘woocommerce_variable_price_html’, ‘detect_variation_price_format’, 10, 2 );

    function detect_variation_price_format( $price, $product ) {

    // Main Price

    $prices = array( $product->get_variation_price( ‘min’, true ), $product->get_variation_price( ‘max’, true ) );
    if ($prices[0] !== $prices[1] && is_product()) {
    $price = $prices[0] !== $prices[1] ? sprintf( __( ”, ‘woocommerce’ ), wc_price( $prices[0] ) ) : wc_price( $prices[0] );
    }
    return $price;
    }

    #22632

    Above code works best with this plugin to always show price on variable product page

    WooCommerce Force Default Variant

    #22675

    Hi Harry,

    I have one additional question to the code above to remove the price range, which works as I have been recommended to add this part of code && is_product())  to show it only on product page but not on loop, but I noticed that  the price range still appears on quick view, is it possible to hide it from quick view too?

    or is quick view same page as product page?

    What I mean is can i add rule to this condition on line 14 if  && is_product()) and not quick view somehow

    Thank you

    #22680

    Hi Mag,

    Sorry for late reply.

    Glad to hear you can solve this issue. Thank you for share your solution.

    Please add below CSS code to hide range-price on quickview

    .price-review p.price {display: none;}

    Best regards

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

    #22686

    thank you!

    by the way I tested more WooCommerce Force Default Variant plugin and it is not good as it doesn’t actually make variant chosen of the first page loading, so I think it is better to set up default variation to all products or if you have time maybe you can have a look at the code below but at the moment I tested and it didn’t work. https://gist.github.com/deepzak/35f579d6f9545e262d36

    #22784

    Hi Harry,

    I noticed that this code remove price from quick view completely from some products but some show

    .price-review p.price {display: none;}

    maybe it is hides completely from products without variations test-layout-1-right/, Calvin Klein Logo Sweatpants Layout 2 and Cuffed Beanie, Herschel Retreat Backpack  other show OK

    is it possible to apply this code only to variable product page then?

     

    Thank you

    #22801

    Hi Mag,

    I checked it work well for variable product too. Could you please try clear cache and check again.

    Best regards

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

    #22808

    Hi Harry,

    yes I think it works for variable but not working for single products. I pressed Empty cache and hard reload in chrome developer mode and also checked in firefox but don’t see it, if you remove the code I see it, but also see the price range on variable product quick view.

     

    Thank you

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

    Hi,

    Sorry because miss understood.

    Please change code to

    .product-type-variable .price-review p.price {display: none;}

    Best regards

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

Viewing 15 posts - 31 through 45 (of 48 total)

You must be logged in to reply to this topic.