New Landing How can we help? Atelier Mini Cart ?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Posted in: Atelier
  • #260446
    dej888
    Member
    Post count: 181

    Hello!

    I switched the Text in the cart from Unit Price to Price, but had to do this in the theme/atlier/woocommerce/cart.php
    It did change for the cart page, however did not change the text for the mini cart.

    How can you change the mini cart text to say Price too?

    In addition, this had to be done in the root folder and the child-theme did not accept the file and make the change. How can we make this writable for future updates so it will not be lost?

    #260477
    dej888
    Member
    Post count: 181

    In addition, in the mini-cart, how do you change the text undefined when nothing is in the cart?

    #260722
    David Martin – Support
    Moderator
    Post count: 20834

    undefined should not show, that is not default to the theme.

    The cart drop down function is located within the file sf-header.php, it’s a function called: sf_get_cart() here: atelier/swift-framework/core/sf-header.php.

    Thanks.

    #260986
    dej888
    Member
    Post count: 181

    can I copy the file to my child-theme to save it for future updates?

    #261198
    David Martin – Support
    Moderator
    Post count: 20834

    No, you will need to copy the php function sf_get_cart() into your child theme file functions.php.

    Thanks.

    #261306
    dej888
    Member
    Post count: 181

    I am not certain on how to do this? Can you confirm.

    #261311
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Look in the file: atelier/swift-framework/core/sf-header.php

    You will see this PHP function called: sf_get_cart().

    You need to copy the entire function, which would look like this: https://gist.github.com/webadelic/e76746b38471daee721da4513ed9ad8a into the child theme file called functions.php.

    Thanks.

    #262191
    dej888
    Member
    Post count: 181

    Thank you again 🙂

    #262204
    David Martin – Support
    Moderator
    Post count: 20834

    No problem – happy to help you.

    Thanks.

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