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

#   How to put a space between QTY and PRICE in emails

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 2 months ago [\#248545](#248545) by [seanm](/forum/user/44732-seanm "View seanm's Profile")  *[How to put a space between QTY and PRICE in emails](/forum/35-orders-management/886162-how-to-put-a-space-between-qty-and-price-in-emails#248545 "-- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4.45  Is there a way to put a space between the product count ordered and the cost of the product?")* was created by *[seanm](/forum/user/44732-seanm "View seanm's Profile")*

-- HikaShop version -- : HikaShop Business 2.6.3 [1605112330]
-- Joomla version -- : 3.6.2
-- PHP version -- : 5.4.45

Is there a way to put a space between the product count ordered and the cost of the product?

- [ ![how&#95;do&#95;i&#95;put&#95;a&#95;space&#95;between&#95;QTY&#95;and&#95;PRICE.png](/forum/attachment/33203) ](/forum/attachment/33203 "...&#95;and&#95;PRICE.png") [ ](/forum/attachment/33203?download=1 "...&#95;and&#95;PRICE.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 2 months ago [\#248557](#248557) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to put a space between QTY and PRICE in emails](/forum/35-orders-management/886162-how-to-put-a-space-between-qty-and-price-in-emails#248557 "-- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4.45  Is there a way to put a space between the product count ordered and the cost of the product?")*

Hi,

Regarding your screenshot, it looks like the product name is really long so it make the first column very large.
Because that first column is very large, the other columns are as thin as possible that's why there is no space between their content.
The content is just an HTML table ; by editing the email you can see to force some width but if the content in the first column is still large, it won't help much.
So I will more suggest you to modify the email to truncate the content in the first column (or add some line breaks).

[ www.hikashop.com/support/documentation/i...p-email-listing.html](https://www.hikashop.com/support/documentation/integrated-documentation/10-hikashop/26-hikashop-email-listing.html)
[ www.hikashop.com/support/documentation/i...shop-email-form.html](https://www.hikashop.com/support/documentation/integrated-documentation/10-hikashop/25-hikashop-email-form.html)
( Note that the email edition is only available in HikaShop Business )

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 2 months ago [\#248834](#248834) by [seanm](/forum/user/44732-seanm "View seanm's Profile")  Replied by *[seanm](/forum/user/44732-seanm "View seanm's Profile")* on topic *[How to put a space between QTY and PRICE in emails](/forum/35-orders-management/886162-how-to-put-a-space-between-qty-and-price-in-emails#248834 "-- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4.45  Is there a way to put a space between the product count ordered and the cost of the product?")*

Thank you for your help. It's really useful.
Where in the order creation email code would you add few &lt;/br&gt; to put a space between the QTY and PRICE ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE2Mi1ob3ctdG8tcHV0LWEtc3BhY2UtYmV0d2Vlbi1xdHktYW5kLXByaWNlLWluLWVtYWlscz90bXBsPW1hcmtkb3du) 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: 86583
- Thank you received: 14324
-
-

10 years 2 months ago [\#248837](#248837) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to put a space between QTY and PRICE in emails](/forum/35-orders-management/886162-how-to-put-a-space-between-qty-and-price-in-emails#248837 "-- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4.45  Is there a way to put a space between the product count ordered and the cost of the product?")*

Hi,

Actually, I wouldn't add any br.
I would simply add a line of CSS to the email HTML template so that the text after the : in the products name goes to the next line.
Such CSS should do the job:
.hikashop_product_variant_subname{ display: block; }

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

10 years 2 months ago -  10 years 2 months ago [\#248913](#248913) by [seanm](/forum/user/44732-seanm "View seanm's Profile")  Replied by *[seanm](/forum/user/44732-seanm "View seanm's Profile")* on topic *[How to put a space between QTY and PRICE in emails](/forum/35-orders-management/886162-how-to-put-a-space-between-qty-and-price-in-emails#248913 "-- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4.45  Is there a way to put a space between the product count ordered and the cost of the product?")*

I think this is the code you are talking about. Please show me.

**HTML VERSION BELOW**
&lt;h1 style="color:#1c8faf !important;font-size:16px;font-weight:bold;border-bottom:1px solid #ddd;padding-top:10px;padding-bottom:10px;"&gt;
{TXT:SUMMARY_OF_YOUR_ORDER}
&lt;/h1&gt;
&lt;!--{START:VENDOR_LINE}--&gt;
&lt;!--{IF:VENDOR_CONTENT}--&gt;{VAR:VENDOR_CONTENT}&lt;!--{ENDIF:VENDOR_CONTENT}--&gt;
&lt;table class="w550" border="0" cellspacing="0" cellpadding="0" width="550" style="margin-top:10px;margin-bottom:10px;font-family: Arial, Helvetica, sans-serif;font-size:12px;line-height:18px;"&gt;
&lt;tr&gt;
&lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:left;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:PRODUCT_NAME}&lt;/td&gt;
{TXT:CUSTOMFIELD_NAME}
&lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:PRODUCT_PRICE}&lt;/td&gt;
&lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:PRODUCT_QUANTITY} &lt;/td&gt;
&lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt; {TXT:PRODUCT_TOTAL}&lt;/td&gt;
&lt;/tr&gt;
&lt;!--{START:PRODUCT_LINE}--&gt;
&lt;tr&gt;
&lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;"&gt;
{LINEVAR:PRODUCT_IMG}
{LINEVAR:PRODUCT_NAME}&lt;!--{IF:ORDER_PRODUCT_CODE}--&gt; {LINEVAR:PRODUCT_CODE}&lt;!--{ENDIF:ORDER_PRODUCT_CODE}--&gt;
{LINEVAR:PRODUCT_DOWNLOAD}
{LINEVAR:PRODUCT_DETAILS}
&lt;/td&gt;
{LINEVAR:CUSTOMFIELD_VALUE}
&lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right"&gt;{LINEVAR:PRODUCT_PRICE}&lt;/td&gt;
&lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right"&gt;{LINEVAR:PRODUCT_QUANTITY}&lt;/td&gt;
&lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right"&gt;{LINEVAR:PRODUCT_TOTAL}&lt;/td&gt;
&lt;/tr&gt;
&lt;!--{END:PRODUCT_LINE}--&gt;

**TEXT VERSION BELOW**
&lt;?php echo JText::_('SUMMARY_OF_YOUR_ORDER');?&gt;

---

&lt;?php echo JText::_('CART_PRODUCT_NAME')."\t".JText::_('CART_PRODUCT_UNIT_PRICE')."\t".JText::_('CART_PRODUCT_QUANTITY')."\t".JText::_('HIKASHOP_TOTAL');?&gt;

&lt;?php
foreach($data-&gt;cart-&gt;products as $item){
$price = $item-&gt;order_product_price*$item-&gt;order_product_quantity;
echo strip_tags($item-&gt;order_product_name) . "\t" . $currencyHelper-&gt;format($item-&gt;order_product_price,$data-&gt;order_currency_id)."\t".$item-&gt;order_product_quantity."\t".$currencyHelper-&gt;format($price,$data-&gt;order_currency_id)."\n";
}

Last edit: 10 years 2 months ago by [seanm](/forum/user/44732-seanm "View seanm's Profile").

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 2 months ago -  10 years 2 months ago [\#248915](#248915) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[How to put a space between QTY and PRICE in emails](/forum/35-orders-management/886162-how-to-put-a-space-between-qty-and-price-in-emails#248915 "-- HikaShop version -- : HikaShop Business 2.6.3 &#91;1605112330&#93; -- Joomla version -- : 3.6.2 -- PHP version -- : 5.4.45  Is there a way to put a space between the product count ordered and the cost of the product?")*

Hello,

You can add on your product name this **Css property**Code:

white-space: normal

.
More precisely, in your **HTML version**, around line **90**, replace this : Code:

... &lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:left;color:#1c8faf !important;font-size:12px;font-weight:bold;"&gt;{TXT:PRODUCT_NAME}&lt;/td&gt; ...

For this : Code:

... &lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:left;color:#1c8faf !important;font-size:12px;font-weight:bold;white-space: normal"&gt;{TXT:PRODUCT_NAME}&lt;/td&gt; ...

Hope that will solve your issue, and we are are awaiting news from you.

Regards

Last edit: 10 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

The following user(s) said Thank You: [seanm](/forum/user/44732-seanm "View seanm's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE2Mi1ob3ctdG8tcHV0LWEtc3BhY2UtYmV0d2Vlbi1xdHktYW5kLXByaWNlLWluLWVtYWlscz90bXBsPW1hcmtkb3du) 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.062 seconds

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