Title: Weird calculation and alignment etc
Last modified: January 24, 2020

---

# Weird calculation and alignment etc

 *  Resolved [marcuscarleson](https://wordpress.org/support/users/marcuscarleson/)
 * (@marcuscarleson)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/)
 * Hi,
 * Thanks for a great looking plugin. However, I´m having trouble getting it to 
   work properly. So, here is a list of issues/problems I´m facing:
    1. For some
   reason the total (product + shipping) does not equal the subtotal + shipping.
   What is going on here? 2. The amount on the row “total” appears to fall below
   the intended line, why is that? 3. The size of my sites name in the top left 
   corner changes when I click into the quick checkout. Why is that?
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fweird-calculation-and-alignment-etc%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Rupinder Kaur](https://wordpress.org/support/users/coolcoders/)
 * (@coolcoders)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12364046)
 * Hi [@marcuscarleson](https://wordpress.org/support/users/marcuscarleson/),
    can
   you re-download the plugin and test for the mentioned errors? I have updated 
   them in the plugin code. Do let me know if you face any issues. Thanks
 *  Thread Starter [marcuscarleson](https://wordpress.org/support/users/marcuscarleson/)
 * (@marcuscarleson)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12364066)
 * Hi,
    Thank you for your quick reply! I just uninstalled and reinstalled it, however
   the errors seems to be the same. Any other ideas?
 * Thank you!
    Marcus
 *  Plugin Author [Rupinder Kaur](https://wordpress.org/support/users/coolcoders/)
 * (@coolcoders)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12364100)
 * Hi
 * They seem just cache issue . just hard refresh or open in private window.
    It
   seems fine at my end.
 * [http://tinyurl.com/wndvceh](http://tinyurl.com/wndvceh)
 * Thanks
 *  Thread Starter [marcuscarleson](https://wordpress.org/support/users/marcuscarleson/)
 * (@marcuscarleson)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12364141)
 * You were right, that fixed the alignment issue!
    However, the shipping issue 
   seems to persist. In the screen dump you sent you can see under “SHIPPING METHOD”
   that it says 49kr, but in the total table it says 39kr. Why do you think that
   is?
 * May I also toss in a translation issue. I have seen in other threads that you
   are planning on including a feature to change headings etc. I also noticed in
   the description of the latest release that you have added support for Loco translate.
   So I have tried everything in Loco translate to change all the headings that 
   are in english to Swedish. Everything else on the chekout translates just fine
   to Swedish. However, I just can´t locate the headings in Loco translate to change
   the wording. Any ideas here?
 * Thank you so much in advance!
 * Marcus
 *  Plugin Author [Rupinder Kaur](https://wordpress.org/support/users/coolcoders/)
 * (@coolcoders)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12364203)
 * Hi Marcus,
    I cannot say anything about the shipping section right now . This
   issue is new to me. I am not familiar with it on my local system. So if you don’t
   mind can you send me a backup of your site using “[https://wordpress.org/plugins/all-in-one-wp-migration/&#8221](https://wordpress.org/plugins/all-in-one-wp-migration/&#8221);?
   I will explore both the issues in detail and let you know what’s happening. Send
   it on “rupinder.php@gmail.com”
 * Thanks
 *  Thread Starter [marcuscarleson](https://wordpress.org/support/users/marcuscarleson/)
 * (@marcuscarleson)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12368010)
 * Hi,
    I don´t know if you´ve seen it yet, but I´ve sent you an e-mail. Looking
   forward to hearing from you!
 * Kind regards
    Marcus
 *  Plugin Author [Rupinder Kaur](https://wordpress.org/support/users/coolcoders/)
 * (@coolcoders)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12373439)
 * Hi [@marcuscarleson](https://wordpress.org/support/users/marcuscarleson/),
 * For loco translate what I can see you just downloaded the plugin but not configured
   it yet. After installing the plugin you need to go it’s setting panel from dashboard
   locotranslate->plugins->woocommece one-page checkout(Domain cclw)->create template
 * After that, a new page will be opened asking you to create a new language
    1)
   Click “New language” 2)choose a new language “Swedish” in your case 3)click “
   start translating”
 * After this, a page will open to you showing you all the string that is translateable.
   click on any string and add its translation for Swedish.
    Then you can see the
   content in the checkout page. You can follow their related video too
 * b) For the shipping issue you were facing, I have sent you the email updated 
   code.
    Thanks
 *  Thread Starter [marcuscarleson](https://wordpress.org/support/users/marcuscarleson/)
 * (@marcuscarleson)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12376537)
 * Thank you very much Rupinder, it worked!!!
    One final question about the text:
   is there a reason for having the “additional information” heading in a bigger
   font size than the other headings?
 * Kinds regards
    Marcus
 *  Plugin Author [Rupinder Kaur](https://wordpress.org/support/users/coolcoders/)
 * (@coolcoders)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12376691)
 * Hi [@marcus](https://wordpress.org/support/users/marcus/),
 * Yes, actually the class is missing for this section.
    Go to plugin custom-checkout-
   layouts-for-woocommerce\WooCommerce\checkout\layouts\two-column-layout.php On
   line 19 there is a line “<h3><?php esc_html_e( ‘Additional information’, ‘cclw’);?
   ></h3>” just replace this with “<h3 class=”border_html”><?php esc_html_e( ‘Additional
   information’, ‘cclw’ ); ?></h3>”
 * All Done.
    Thanks
 *  Thread Starter [marcuscarleson](https://wordpress.org/support/users/marcuscarleson/)
 * (@marcuscarleson)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12380517)
 * Thank you, I´ll give it a shot!
 * Cheers
    Marcus
    -  This reply was modified 6 years, 4 months ago by [marcuscarleson](https://wordpress.org/support/users/marcuscarleson/).

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Weird calculation and alignment etc’ is closed to new replies.

 * ![](https://ps.w.org/custom-checkout-layouts-for-woocommerce/assets/icon-256x256.
   jpg?rev=2079391)
 * [One page checkout and layouts for woocommerce](https://wordpress.org/plugins/custom-checkout-layouts-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-checkout-layouts-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-checkout-layouts-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-checkout-layouts-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-checkout-layouts-for-woocommerce/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [marcuscarleson](https://wordpress.org/support/users/marcuscarleson/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/weird-calculation-and-alignment-etc/#post-12380517)
 * Status: resolved