Salient v13.0 Major Release (3/25/2021) is now available.

If you're on a version prior to 10.5 and are considering updating, it's important to read through our update guide before updating to ensure a smooth transition.

Click here to view the update guide

Okay
  Public Ticket #2690990
Changing 'Cart button' and 'basket' to 'Quote'
Closed

Comments

  • ATKHoldings started the conversation

    Hello,

    I am trying to utilise WooCommerce as quote feature. Using PHP & CSS I have managed to change modify the checkout pages and cart pages to look how I want (no pricing). 

    I just need to do three final things:

    Firstly, when a product is added to the cart/quote a popup comes up which allows the user to either view cart or continue shopping. We are using the Woocommerce added to cart AJAX plugin. On this page I want to: 

    1. Change 'Product successfully added to your cart' to 'Product successfully added to your Quote'
    2. Change the 'view cart' button to state 'view quote'
    3. Remove the 'total' in the bottom right

    Secondly, on the mini cart icon in the top right corner I want the button to state 'view quote' instead of 'view basket'. 

    Thirdly, change the shopping cart icon in the top right corner to simply state 'my quote'

    Thanks for the help, 

    Best,

    Alex

    Current Custom CSS: 

    /* Cart widget */
    .woocommerce-mini-cart__total {
    display: none;
    }

    /* Cart */
    .product-price, .product-subtotal {
    display: none !important;
    }

    /* Checkout */
    .product-total *, th.product-total {
    display: none;
    }


    Current PHP.

    //Change the 'Billing details' checkout label to 'Contact Information'
    function wc_billing_field_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case 'Billing details' :
    $translated_text = __( 'Contact Information', 'woocommerce' );
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'wc_billing_field_strings', 20, 3 );

    // On cart page
    add_action( 'woocommerce_cart_collaterals', 'remove_cart_totals', 9 );
    function remove_cart_totals(){
        // Remove cart totals block
        remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cart_totals', 10 );

        // Add back "Proceed to checkout" button (and hooks)
        echo '<div class="cart_totals">';
        do_action( 'woocommerce_before_cart_totals' );

        echo '<div class="wc-proceed-to-checkout">';
        do_action( 'woocommerce_proceed_to_checkout' );
        echo '</div>';

        do_action( 'woocommerce_after_cart_totals' );
        echo '</div><br clear="all">';
    }

  •  1,652
    Andrew replied

    Hi Alex,

    Thanks for keeping in touch and for your patience,

    We understand the request however this is feature is not currently in salient neither does the custom code needed for it within the scope of our support.

    You may consider hiring a private developer to do the customization,

    Thanks.