[Skip to main content](#vessel-content)

#   Currency sign left aligned &amp; amount right aligned

##

- **[miracle](/forum/user/17825-miracle "View miracle's Profile")**
- [![miracle's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17825-miracle "View miracle's Profile") Topic Author
- [ Offline](/forum/user/17825-miracle)

Less More

- Posts: 91
- Thank you received: 3
-
-

12 years 9 months ago [\#143453](#143453) by [miracle](/forum/user/17825-miracle "View miracle's Profile")  *[Currency sign left aligned &amp; amount right aligned](/forum/27-checkout/865763-currency-sign-left-aligned-amount-right-aligned#143453 "I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all...")* was created by *[miracle](/forum/user/17825-miracle "View miracle's Profile")*

I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all the amounts right aligned. That way all the € or $ are under each other and all the amouts have the ,00 (or so) under each other. Is this possible?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NTc2My1jdXJyZW5jeS1zaWduLWxlZnQtYWxpZ25lZC1hbW91bnQtcmlnaHQtYWxpZ25lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 9 months ago [\#143469](#143469) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Currency sign left aligned &amp; amount right aligned](/forum/27-checkout/865763-currency-sign-left-aligned-amount-right-aligned#143469 "I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all...")*

Hi there,

It is possible but you'll have to play a bit with the css and the html layout.
First, have a look at our documentation:
[ www.hikashop.com/support/documentation/i.../84-css-styling.html](http://www.hikashop.com/support/documentation/integrated-documentation/19-hikashop/installation-configuration/84-css-styling.html)
[ www.hikashop.com/support/documentation/i...op-view-listing.html](http://www.hikashop.com/support/documentation/integrated-documentation/10-hikashop/43-hikashop-view-listing.html)

You'll find the view you fand to edit in Display&gt;Views searching for checkout/cart

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NTc2My1jdXJyZW5jeS1zaWduLWxlZnQtYWxpZ25lZC1hbW91bnQtcmlnaHQtYWxpZ25lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[miracle](/forum/user/17825-miracle "View miracle's Profile")**
- [![miracle's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17825-miracle "View miracle's Profile") Topic Author
- [ Offline](/forum/user/17825-miracle)

Less More

- Posts: 91
- Thank you received: 3
-
-

12 years 9 months ago [\#143481](#143481) by [miracle](/forum/user/17825-miracle "View miracle's Profile")  Replied by *[miracle](/forum/user/17825-miracle "View miracle's Profile")* on topic *[Currency sign left aligned &amp; amount right aligned](/forum/27-checkout/865763-currency-sign-left-aligned-amount-right-aligned#143481 "I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all...")*

I looked already there and found (for the shipping costs) this part of code. But to me it looks like the currency sign and amount are created and printed (echo) as one. So I don't know how to split them? Any idea to get me a little bit further?

Code:

&lt;tr&gt; &lt;?php echo $td; ?&gt; &lt;td id="hikashop_checkout_cart_shipping_title" class="hikashop_cart_shipping_title hikashop_cart_title"&gt; &lt;?php echo JText::_('HIKASHOP_SHIPPING'); ?&gt; &lt;/td&gt; &lt;td class="hikashop_cart_shipping_value" &gt; &lt;span class="hikashop_checkout_cart_shipping"&gt; &lt;?php if(isset($this-&gt;value)) { echo $this-&gt;value; } else { $shipping_price = null; foreach($this-&gt;shipping as $shipping) { if(!isset($shipping-&gt;shipping_price) &amp;&amp; isset($shipping-&gt;shipping_price_with_tax) ) { $shipping-&gt;shipping_price = $shipping-&gt;shipping_price_with_tax; } if(isset($shipping-&gt;shipping_price)) { if($shipping_price === null) $shipping_price = 0.0; if(bccomp($taxes,0,5)==0 &#124;&#124; !$this-&gt;params-&gt;get('price_with_tax') &#124;&#124; !isset($shipping-&gt;shipping_price_with_tax)) { $shipping_price += $shipping-&gt;shipping_price; } else { $shipping_price += $shipping-&gt;shipping_price_with_tax; } } } if($shipping_price !== null) { echo $this-&gt;currencyHelper-&gt;format($shipping_price, hikashop_getCurrency()); } } ?&gt; &lt;/span&gt; &lt;/td&gt; &lt;/tr&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NTc2My1jdXJyZW5jeS1zaWduLWxlZnQtYWxpZ25lZC1hbW91bnQtcmlnaHQtYWxpZ25lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

12 years 9 months ago [\#143499](#143499) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Currency sign left aligned &amp; amount right aligned](/forum/27-checkout/865763-currency-sign-left-aligned-amount-right-aligned#143499 "I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all...")*

In that variable you have the price: $shipping_price and in this one you have the currency id: hikashop_getCurrency() from which you can get the symbol like that:
$currency = $this-&gt;currencyHelper-&gt;get(hikashop_getCurrency());
echo $currency-&gt;currency_symbol;

so instead of the call to the format function, you could have something like that:
echo '&lt;div style="float:left;"&gt;'.round($shipping_price,2).'&lt;/div&gt;';
$currency = $this-&gt;currencyHelper-&gt;get(hikashop_getCurrency());
echo '&lt;div style="float:right;"&gt;'.$currency-&gt;currency_symbol.'&lt;/div&gt;';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NTc2My1jdXJyZW5jeS1zaWduLWxlZnQtYWxpZ25lZC1hbW91bnQtcmlnaHQtYWxpZ25lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[miracle](/forum/user/17825-miracle "View miracle's Profile")**
- [![miracle's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17825-miracle "View miracle's Profile") Topic Author
- [ Offline](/forum/user/17825-miracle)

Less More

- Posts: 91
- Thank you received: 3
-
-

12 years 9 months ago [\#144048](#144048) by [miracle](/forum/user/17825-miracle "View miracle's Profile")  Replied by *[miracle](/forum/user/17825-miracle "View miracle's Profile")* on topic *[Currency sign left aligned &amp; amount right aligned](/forum/27-checkout/865763-currency-sign-left-aligned-amount-right-aligned#144048 "I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all...")*

Thanks for your explanation. I got it almost working.

I replaced
Code:

echo $this-&gt;currencyHelper-&gt;format($shipping_price, hikashop_getCurrency());

with
Code:

$currency = $this-&gt;currencyHelper-&gt;get(hikashop_getCurrency()); echo '&lt;div style="float:left;"&gt;'.$currency-&gt;currency_symbol.'&lt;/div&gt;'; echo '&lt;div style="float:right;"&gt;'.$shipping_price.'&lt;/div&gt;';

Alignment is OK now, only thing missing is ,00: Shipping costs should be 15,00 but it only puts 15 on the screen.
Any idea how to solve this? I tried some things, but it became clear I'm not a PHP developer ![:P](/media/kunena/emoticons/14.png ":P")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NTc2My1jdXJyZW5jeS1zaWduLWxlZnQtYWxpZ25lZC1hbW91bnQtcmlnaHQtYWxpZ25lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 9 months ago [\#144076](#144076) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Currency sign left aligned &amp; amount right aligned](/forum/27-checkout/865763-currency-sign-left-aligned-amount-right-aligned#144076 "I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all...")*

Hi,
the solution will probably be to add this line : Code:

$shipping_price = $this-&gt;currencyHelper-&gt;format($shipping_price, hikashop_getCurrency());

Before : Code:

echo '&lt;div style="float:right;"&gt;'.$shipping_price.'&lt;/div&gt;';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NTc2My1jdXJyZW5jeS1zaWduLWxlZnQtYWxpZ25lZC1hbW91bnQtcmlnaHQtYWxpZ25lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[miracle](/forum/user/17825-miracle "View miracle's Profile")**
- [![miracle's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17825-miracle "View miracle's Profile") Topic Author
- [ Offline](/forum/user/17825-miracle)

Less More

- Posts: 91
- Thank you received: 3
-
-

12 years 9 months ago [\#144079](#144079) by [miracle](/forum/user/17825-miracle "View miracle's Profile")  Replied by *[miracle](/forum/user/17825-miracle "View miracle's Profile")* on topic *[Currency sign left aligned &amp; amount right aligned](/forum/27-checkout/865763-currency-sign-left-aligned-amount-right-aligned#144079 "I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all...")*

Almost ![;)](/media/kunena/emoticons/24.png ";)")

Now I get € at the left and € 15,00 at the right. So the amount is right formatted, except the € sign isn't needed there....

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NTc2My1jdXJyZW5jeS1zaWduLWxlZnQtYWxpZ25lZC1hbW91bnQtcmlnaHQtYWxpZ25lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 9 months ago [\#144092](#144092) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Currency sign left aligned &amp; amount right aligned](/forum/27-checkout/865763-currency-sign-left-aligned-amount-right-aligned#144092 "I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all...")*

The solution will probably be to just remove that line : Code:

echo '&lt;div style="float:left;"&gt;'.$currency-&gt;currency_symbol.'&lt;/div&gt;';

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NTc2My1jdXJyZW5jeS1zaWduLWxlZnQtYWxpZ25lZC1hbW91bnQtcmlnaHQtYWxpZ25lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[miracle](/forum/user/17825-miracle "View miracle's Profile")**
- [![miracle's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/17825-miracle "View miracle's Profile") Topic Author
- [ Offline](/forum/user/17825-miracle)

Less More

- Posts: 91
- Thank you received: 3
-
-

12 years 9 months ago [\#144093](#144093) by [miracle](/forum/user/17825-miracle "View miracle's Profile")  Replied by *[miracle](/forum/user/17825-miracle "View miracle's Profile")* on topic *[Currency sign left aligned &amp; amount right aligned](/forum/27-checkout/865763-currency-sign-left-aligned-amount-right-aligned#144093 "I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all...")*

Nice try, but now I'm back where I started. The line you wanted me to remove was the line made sure the € was aligned left. The amount is aligned right, but it also shows € at the right. So the right € has to go, the left € has to stay ![:cheer:](/media/kunena/emoticons/2.png ":cheer:")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NTc2My1jdXJyZW5jeS1zaWduLWxlZnQtYWxpZ25lZC1hbW91bnQtcmlnaHQtYWxpZ25lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

12 years 9 months ago [\#144637](#144637) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[Currency sign left aligned &amp; amount right aligned](/forum/27-checkout/865763-currency-sign-left-aligned-amount-right-aligned#144637 "I would really like to make some layout changes in the checkout. In the list wit all the amounts (sutotal, VAT, discount, et cetera) I would like it to have all the currency signs left aligned and all...")*

It's a bit hard to visualize at this points.
Could you make a screenshot of what you got and what you want (preferably with the inspector open so we can see the code around these lines)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2NTc2My1jdXJyZW5jeS1zaWduLWxlZnQtYWxpZ25lZC1hbW91bnQtcmlnaHQtYWxpZ25lZD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.065 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
