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

#   How to put product price and add to cart in a line

##

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

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 7 months ago [\#196069](#196069) by [soxa77](/forum/user/36366-soxa77 "View soxa77's Profile")  *[How to put product price and add to cart in a line](/forum/26-product-category-display/875925-how-to-put-product-price-and-add-to-cart-in-a-line#196069 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Google Chrome 41.0.2272.101 m  Hi  I am struggling few days how to make them in one line. 1. First picture is what I have now  2. Second picture is what I made in Firebug after deleting   But I can't find where to change that in Hikashop CSS. I found that is hikashop&#95;product&#95;right&#95;part Also I can't find how to remove &quot;each&quot;  3. Third picture is what I want to make - in one line with litlte bit space between price and add to cart. I made it in photo software, not with CSS. I knot how to put out &quot;Weight&quot;  Thanks for any help")* was created by *[soxa77](/forum/user/36366-soxa77 "View soxa77's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.4
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Google Chrome 41.0.2272.101 m

Hi

I am struggling few days how to make them in one line.
1. First picture is what I have now

2. Second picture is what I made in Firebug after deleting
&lt;br&gt;
&lt;br&gt;
But I can't find where to change that in Hikashop CSS.
I found that is hikashop_product_right_part
Also I can't find how to remove "each"

3. Third picture is what I want to make - in one line with litlte bit space between price and add to cart. I made it in photo software, not with CSS.
I knot how to put out "Weight"

Thanks for any help

- [ ![product&#95;listing&#95;question.jpg](/forum/attachment/23313) ](/forum/attachment/23313 "...g&#95;question.jpg") [ ](/forum/attachment/23313?download=1 "...g&#95;question.jpg")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#196099](#196099) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to put product price and add to cart in a line](/forum/26-product-category-display/875925-how-to-put-product-price-and-add-to-cart-in-a-line#196099 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Google Chrome 41.0.2272.101 m  Hi  I am struggling few days how to make them in one line. 1. First picture is what I have now  2. Second picture is what I made in Firebug after deleting   But I can't find where to change that in Hikashop CSS. I found that is hikashop&#95;product&#95;right&#95;part Also I can't find how to remove &quot;each&quot;  3. Third picture is what I want to make - in one line with litlte bit space between price and add to cart. I made it in photo software, not with CSS. I knot how to put out &quot;Weight&quot;  Thanks for any help")*

Hi,

To remove the &lt;br&gt; tags, you have to edit the view "product / show_default".
[ www.hikashop.com/support/support/documen...ize-the-display.html](http://www.hikashop.com/support/support/documentation/153-customize-the-display.html)

To remove "each" you have to do a translation override on the key "PER_UNIT"
[ www.hikashop.com/support/faq.html#tran](http://www.hikashop.com/support/faq.html#tran)

Then to have everything on the same line, you can potentially use css properties like "display: inline-block;", which will display elements inline, or in block if not enough space inline.
If that don't do the job, still in the view "product / show_default" you can move the elements from a div to another one to have the desired layout.

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 7 months ago [\#196183](#196183) by [soxa77](/forum/user/36366-soxa77 "View soxa77's Profile")  Replied by *[soxa77](/forum/user/36366-soxa77 "View soxa77's Profile")* on topic *[How to put product price and add to cart in a line](/forum/26-product-category-display/875925-how-to-put-product-price-and-add-to-cart-in-a-line#196183 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Google Chrome 41.0.2272.101 m  Hi  I am struggling few days how to make them in one line. 1. First picture is what I have now  2. Second picture is what I made in Firebug after deleting   But I can't find where to change that in Hikashop CSS. I found that is hikashop&#95;product&#95;right&#95;part Also I can't find how to remove &quot;each&quot;  3. Third picture is what I want to make - in one line with litlte bit space between price and add to cart. I made it in photo software, not with CSS. I knot how to put out &quot;Weight&quot;  Thanks for any help")*

1. After changing listing_price.php I removed succesfuly "each",
[ herbalbeautysf.com/index.php/hikashop-me...s-golden-moisturizer](http://herbalbeautysf.com/index.php/hikashop-menu-for-products-listing/product/17-propolis-golden-moisturizer)

BUT if I make new product I get again "each" and one more new sign " Specifications"
[ herbalbeautysf.com/index.php/hikashop-me...roduct/29-test-erase](http://herbalbeautysf.com/index.php/hikashop-menu-for-products-listing/product/29-test-erase)
How to remove this?

2. "If that don't do the job, still in the view "product / show_default" you can move the elements from a div to another one to have the desired layout."

I assume that I should cut SOME DIV ??? and put after this

&lt;span id="hikashop_product_price_main" class="hikashop_product_price_main"&gt;
&lt;?php
if ($this-&gt;params-&gt;get('show_price')) {
$this-&gt;row = &amp; $this-&gt;element;
$this-&gt;setLayout('listing_price');
echo $this-&gt;loadTemplate();
}
?&gt;
&lt;/span&gt;

Can you give me some hint about this?

Thank you

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 7 months ago [\#196233](#196233) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to put product price and add to cart in a line](/forum/26-product-category-display/875925-how-to-put-product-price-and-add-to-cart-in-a-line#196233 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Google Chrome 41.0.2272.101 m  Hi  I am struggling few days how to make them in one line. 1. First picture is what I have now  2. Second picture is what I made in Firebug after deleting   But I can't find where to change that in Hikashop CSS. I found that is hikashop&#95;product&#95;right&#95;part Also I can't find how to remove &quot;each&quot;  3. Third picture is what I want to make - in one line with litlte bit space between price and add to cart. I made it in photo software, not with CSS. I knot how to put out &quot;Weight&quot;  Thanks for any help")*

Hi,

1. You have to do a translation override and not a view edition for that ![;)](/media/kunena/emoticons/11.png ";)")

2. Sure, Please delete the code: Code:

if(empty ($this-&gt;element-&gt;characteristics) &#124;&#124; $this-&gt;params-&gt;get('characteristic_display')!='list'){ ?&gt; &lt;div id="hikashop_product_quantity_main" class="hikashop_product_quantity_main"&gt; &lt;?php //LAYOUT quantity $this-&gt;row = &amp; $this-&gt;element; $this-&gt;ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . $this-&gt;row-&gt;product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }'; $this-&gt;setLayout('quantity'); echo $this-&gt;loadTemplate(); ?&gt; &lt;/div&gt; &lt;?php } ?&gt;

And add: Code:

if(empty ($this-&gt;element-&gt;characteristics) &#124;&#124; $this-&gt;params-&gt;get('characteristic_display')!='list'){ ?&gt; &lt;?php //LAYOUT quantity $this-&gt;row = &amp; $this-&gt;element; $this-&gt;ajax = 'if(hikashopCheckChangeForm(\'item\',\'hikashop_product_form\')){ return hikashopModifyQuantity(\'' . $this-&gt;row-&gt;product_id . '\',field,1' . $form . ',\'cart\'); } else { return false; }'; $this-&gt;setLayout('quantity'); echo $this-&gt;loadTemplate(); ?&gt; &lt;?php } ?&gt;

Right after: Code:

if ($this-&gt;params-&gt;get('show_price')) { $this-&gt;row = &amp; $this-&gt;element; $this-&gt;setLayout('listing_price'); echo $this-&gt;loadTemplate(); }

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 6 months ago [\#197010](#197010) by [soxa77](/forum/user/36366-soxa77 "View soxa77's Profile")  Replied by *[soxa77](/forum/user/36366-soxa77 "View soxa77's Profile")* on topic *[How to put product price and add to cart in a line](/forum/26-product-category-display/875925-how-to-put-product-price-and-add-to-cart-in-a-line#197010 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Google Chrome 41.0.2272.101 m  Hi  I am struggling few days how to make them in one line. 1. First picture is what I have now  2. Second picture is what I made in Firebug after deleting   But I can't find where to change that in Hikashop CSS. I found that is hikashop&#95;product&#95;right&#95;part Also I can't find how to remove &quot;each&quot;  3. Third picture is what I want to make - in one line with litlte bit space between price and add to cart. I made it in photo software, not with CSS. I knot how to put out &quot;Weight&quot;  Thanks for any help")*

Hi

"1. You have to do a translation override....."

After doing exactly what is write here ([ www.hikashop.com/support/faq.html#tran](http://www.hikashop.com/support/faq.html#tran))
I don't understand what should I put in in translation overide???? I found that in Languages.

And one more thing: I don't intend and interested to be expert for Hikashop,. It is little change and after that I finished my editing

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzU5MjUtaG93LXRvLXB1dC1wcm9kdWN0LXByaWNlLWFuZC1hZGQtdG8tY2FydC1pbi1hLWxpbmU/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 6 months ago [\#197049](#197049) 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 product price and add to cart in a line](/forum/26-product-category-display/875925-how-to-put-product-price-and-add-to-cart-in-a-line#197049 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.4 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Google Chrome 41.0.2272.101 m  Hi  I am struggling few days how to make them in one line. 1. First picture is what I have now  2. Second picture is what I made in Firebug after deleting   But I can't find where to change that in Hikashop CSS. I found that is hikashop&#95;product&#95;right&#95;part Also I can't find how to remove &quot;each&quot;  3. Third picture is what I want to make - in one line with litlte bit space between price and add to cart. I made it in photo software, not with CSS. I knot how to put out &quot;Weight&quot;  Thanks for any help")*

It's simple, just search for the text you want to change.
For example, in your case:
PER_UNIT=" each"
Then, copy/paste it in the override area at the bottom of the language file edition popup and change the each text to whatever you want. Nothing if you want nothing.

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

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

[](#top)
