New Landing How can we help? Atelier basket icon is using the wrong language and the wrong link and tax question

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Atelier
  • #205130
    JaySchulz
    Member
    Post count: 122

    Hi there,

    I am using the latest version of your theme on a multilingual Press installation, which connects / synch different pages.

    So my German site is working perfectly but there is a bug on my english page.
    On that page the basket icon is translated with the german content and it is using the german link instead of the english.

    example:

    it should link to

    …com/en/cart

    instead of

    …com/warenkorb

    the wishlist and account is working perfectly on both pages.
    I am using the correct pages on

    is there a way to fix that?

    there is a second problem.
    the english page is not displaying the Tax in the same way like on the german page.

    as a german shop we always need to display a price including tax.

    19.99€ inkl. 19% MwSt.

    the english version should be
    19.99€ icld. 19% VAT.

    I have changed the tax name from MwSt. to VAT on the english woocommerce settings but there is no tax displayed
    in the shop.

    thanks in advance.

    J

    Attachments:
    You must be logged in to view attached files.
    #205237
    JaySchulz
    Member
    Post count: 122

    have updated the atelier theme to the newest version and refreshed the network, now it is the other way round.
    on the german page the english cart is used as link and the language on the german cart hover is english.

    #205885
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    I am not sure I follow,

    https://williamreep.com/en/ cart goes to: https://williamreep.com/en/checkout/

    https://williamreep.com/ cart goes to: https://williamreep.com/kasse/

    This is correct right? Is it just the VAT that is the wrong way round?

    – David.

    #205889
    JaySchulz
    Member
    Post count: 122

    Hey David Martin,

    It seems like the problem is fixed now. I think it was caused by one plugin.

    But yes, the issue how the VAT is displayed is still a topic.

    thanks in advance.

    J

    #206106
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Just to confirm, the VAT is not shown on UK shop page?

    Please change this in Dashboard => WooCommerce => Settings => Tax => Display Prices in the Shop.

    Please let me know if I am misunderstanding you.

    Cheers
    David.

    #206156
    JaySchulz
    Member
    Post count: 122

    Hey David,

    no it is not a missunderstanding, you mean the right thing.

    1. the hover on the cart icon in the header needs to be changed from

    “Total incl. tax”

    to

    “Total inkl 19% VAT”

    (Point one is triggered by the theme .po file but I don’t know how to change the english “source” part in the .po file.)

    2. I have done this “Dashboard => WooCommerce => Settings => Tax => Display Prices in the Shop.” already.

    so this needs to be changed as on the german page.
    See attached screenshots.

    I don’t know why the page is not displaying the tax, all the settings are exactly the same.

    Attachments:
    You must be logged in to view attached files.
    #206626
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Can you check you have translated that string in the theme files?

    It should be located here within the theme also:

    /Applications/MAMP/htdocs/swift/wp-content/themes/atelier/language/de_DE.po:
     8915  #: swift-framework/core/sf-header.php:1214
     8916  #: swift-framework/core/sf-woocommerce.php:673
     8917: msgid "Total incl. tax"
     8918  msgstr ""
     8919

    Thanks,
    David

    #206632
    JaySchulz
    Member
    Post count: 122

    Hey David,

    yes the string for the german site is translated in the German child theme language file.

    But I need to change the english wording from “Total incl. tax” to “Total incl. 19% VAT”.

    So i guess I need to change the english source string somewhere?!
    (And I do not want to install any further plugins for localization)

    thanks in advance.

    #207075
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    No you would need to change the PHP function for that as it is pulling in dynamic data.

    The file would be /atelier/swift-framework/core/sf-header.php line 1023 within the function sf_get_cart()

    Thanks,
    David.

    #212466
    JaySchulz
    Member
    Post count: 122

    Hey David,

    thanks for your reply, and sorry for my super late response.
    line 1023 on that file is the following:

    $cart_output .= '<figure><a class="bag-product-img" href="' . get_permalink( $cart_item['product_id'] ) . '">' . $_product->get_image() . '</a></figure>';
    

    this doesn’t seems right to me.
    can you double check.
    and what do I need to do if I want to fix this just in a Child theme?

    thanks in advance.

    J

    #212880
    David Martin – Support
    Moderator
    Post count: 20834

    Hey,

    Are you using the latest version? On Line 1042 you will see this:

    $cart_output .= '<span class="total-title">' . __( "Total incl. tax", "swiftframework" ) . '</span>';

    To add this to a child theme, copy the entire function into your child theme functions.php file. I have got the code for you here: http://pastie.org/private/srgtnczubnpor9kcom9ssw.

    Thanks,
    David.

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