New Landing How can we help? Themeforest Theme Support Dante Shopping Bag / Cart Page

Viewing 15 posts - 1 through 15 (of 34 total)
  • Posted in: Dante
  • #134355
    BillK
    Member
    Post count: 66

    Hello Team Swift,

    on Shopping Bag / Cart page >

    1, How can I change the Cart Text to read “Totals” rather than “Cart Totals”
    1a, How can I change the Cart Text to read “Subtotal” rather than “Cart Subtotal”
    1b, How can I change the Cart Text to read “Shipping” rather than “Shipping and Handling”

    As you can understand it is a little confusing to have “Shopping Bag” shown to the customer throughout the site and then on the Cart / Shopping Bag page the right sidebar is reading Cart Totals, and Cart Subtotals.

    Is there a way to just omit the word CART without having to translate the theme?

    What piece of code should be added in functions.php in order to override this?

    Thank you very much for your help in advance,

    Best,

    Bill

    #134463
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php pf child theme.

    function sf_text_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case 'Totals' :
    $translated_text = __( 'Cart Totals', 'woocommerce' );
    break;
    case 'Subtotal' :
    $translated_text = __( 'Cart Subtotal', 'woocommerce' );
    break;
    
    case 'Shipping' :
    $translated_text = __( 'Shipping and Handling', 'woocommerce' );
    break;
    
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    Thanks
    Mohammad

    #134552
    BillK
    Member
    Post count: 66

    Hello Mohammad and thank you for your prompt reply,

    I have added this into child theme functions.php

    but there is no change in the cart page.

    Please see screenshots attached.

    Have not translated theme. Am I missing something?

    Thank you very much for your help so far, really appreciated.

    Best,

    Bill

    Attachments:
    You must be logged in to view attached files.
    #134748
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me website url and wordpress admin login detail so i can check and resolve the issue.
    Thanks
    Mohammad

    #135085
    BillK
    Member
    Post count: 66
    This reply has been marked as private.
    #135090
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    We dont have any issue with latest woocommerce with latest dante theme.
    Thanks
    Mohammad

    #135093
    BillK
    Member
    Post count: 66
    This reply has been marked as private.
    #135096
    BillK
    Member
    Post count: 66
    This reply has been marked as private.
    #135099
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I will sent it soon.
    Thanks
    Mohammad

    #135101
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have sent Dante 2.65 to you.
    Thanks
    Mohammad

    #135121
    BillK
    Member
    Post count: 66
    This reply has been marked as private.
    #135785
    BillK
    Member
    Post count: 66
    This reply has been marked as private.
    #135897
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    My colleauge, Laranz will assist you shortly. He is expert in string translation.
    Thanks
    Mohammad

    #136537
    BillK
    Member
    Post count: 66

    Hello Mohammad,

    hope you are well.

    I have not heard from Laranz yet on the above issues.

    Any help on these will be highly appreciated.

    Thank you a lot,

    Best,

    Bill

    #136853
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Your strings seems to fixed at cart page.
    Thanks
    Mohammad

Viewing 15 posts - 1 through 15 (of 34 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