Digital experiences for all disciplines
New Landing › How can we help? › Atelier › basket icon is using the wrong language and the wrong link and tax question
New Landing › How can we help? › Atelier › basket icon is using the wrong language and the wrong link and tax question
- This topic has 10 replies, 2 voices, and was last updated 9 years by David Martin – Support.
-
Posted in: Atelier
-
August 18, 2015 at 9:31 pm #205130
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 onis 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.August 19, 2015 at 8:45 am #205237have 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.August 20, 2015 at 4:32 pm #205885Hi,
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.
August 20, 2015 at 5:01 pm #205889Hey 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
August 21, 2015 at 10:54 am #206106Hi,
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.August 21, 2015 at 12:44 pm #206156Hey 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.August 24, 2015 at 9:51 am #206626Hi,
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,
DavidAugust 24, 2015 at 10:01 am #206632Hey 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.
August 25, 2015 at 10:12 am #207075Hi,
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 functionsf_get_cart()
Thanks,
David.September 12, 2015 at 12:36 pm #212466Hey 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
September 14, 2015 at 5:51 pm #212880Hey,
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. -
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.