New Landing How can we help? Themeforest Theme Support Neighborhood Add to Shopping Bag Button style different on Single/Variation products?

Viewing 14 posts - 16 through 29 (of 29 total)
  • #156103
    seaofghosts
    Member
    Post count: 143

    Hi,

    Css doesn’t seem to work.

    Does the functions code need to be wrapped in anything? I’m getting an error when I just paste it into the functions.php file. Current content is:

    <?php
    // Use WC 2.0 variable price format
    add_filter( 'woocommerce_variable_sale_price_html', 'wc_wc20_variation_price_format', 10, 2 );
    add_filter( 'woocommerce_variable_price_html', 'wc_wc20_variation_price_format', 10, 2 );
    function wc_wc20_variation_price_format( $price, $product ) {
    $min_price = $product->get_variation_price( 'min', true );
    $max_price = $product->get_variation_price( 'max', true );
    if ($min_price != $max_price){
    $price = sprintf( __( 'From: %1$s', 'woocommerce' ), wc_price( $min_price ) );
    return $price;
    } else {
    $price = sprintf( __( '%1$s', 'woocommerce' ), wc_price( $min_price ) );
    return $price;
    }
    }
    ?>
    
    

    I appreciate all of your help Mohammad!

    #156135
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me FTP login detail to resolve the issue.
    Thanks
    Mohammad

    #156220
    seaofghosts
    Member
    Post count: 143
    This reply has been marked as private.
    #156240
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    1- Button looking perfect now.

    2- Have you changed Add to Shopping Bag to Order Now through any plugin? Please deactivate all plugin except woocommerce.

    Thanks
    Mohammad

    #156330
    seaofghosts
    Member
    Post count: 143

    Hi Mohammad,

    Thanks for all of your ongoing assistance.
    I did not have a wording plugin, but as requested I have deactivated all plugins except “WooCommerce” and “Under Construction” because I needed to put my site into maintenance mode with all of the other plugins deactivated so no customers would have an issue on the live site.

    If you log into the WP backend with the credentials provided earlier you can view the site as it would be “live”.

    #156513
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    My colleague will assist you shortly.
    Thanks
    Mohammad

    #157386
    seaofghosts
    Member
    Post count: 143

    Hi any update with this? I have turned all my plugins off waiting for further help… so my store is down… potentially losing sales here 🙁

    #158176
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Apologize for the delay but didn’t realised that the topic was assigned to me.

    Since this topic has a lot of replies and interventions, can you resume what is missing at the moment?

    Thanks

    -Rui

    #158415
    seaofghosts
    Member
    Post count: 143

    Hi Rui,

    Final problem is that on a single product style it says “+ ADD TO SHOPPING BAG” and on a variable product style it says “Add to cart”

    I want them to both say the same thing.

    Mohammad got me to deactivate all plugins to see if a plugin was causing the button language to change, which I did, and nothing has happened since.

    Please advise.

    #158431
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue. I inserted this code at functions.php pf child theme.

    add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' ); // 2.1 +
    function woo_custom_cart_button_text() {
    return __( 'ADD TO SHOPPING BAG', 'woocommerce' );
    } 

    Thanks
    Mohammad

    #158437
    seaofghosts
    Member
    Post count: 143

    Thanks Mohammad.
    The text is still different through, like maybe the size or kearning?
    And one still as a “+” in it.

    Compare the buttons of:
    http://www.aliciahannahnaomi.com/product/awl-ring/
    http://www.aliciahannahnaomi.com/product/augen-pendant/

    I don’t care which is which outcome I just want them the same…

    #158447
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am not able to access any page in admin and FTP.
    Thanks
    Mohammad

    #158451
    seaofghosts
    Member
    Post count: 143

    The details have not changed… what error are you getting?

    #158461
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check it now.
    Thanks
    Mohammad

Viewing 14 posts - 16 through 29 (of 29 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register