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

#   Add to cart next to price

##

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

Less More

- Posts: 9
- Thank you received: 0
-
-

9 years 2 months ago [\#276956](#276956) by [RobertB](/forum/user/20207-robertb "View RobertB's Profile")  *[Add to cart next to price](/forum/26-product-category-display/891691-add-to-cart-next-to-price#276956 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5  Hi, I am trying to put the add to cart next to the price. I am looking at the layout and II guess, putting the product quantity block next to the Listing price item block would do the trick.  I have been trying for a while now and i cannot figure it out. The &quot;&quot;is confusing ass well.. result, I get syntax error  I used to following post as my guideline, but there have been changes.   www.hikashop.com/forum/product-category-...-cart-in-a-line.html  Please help")* was created by *[RobertB](/forum/user/20207-robertb "View RobertB's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.5

Hi,
I am trying to put the add to cart next to the price.
I am looking at the layout and II guess, putting the product quantity block next to the Listing price item block would do the trick.

I have been trying for a while now and i cannot figure it out.
The "&lt;php } &gt;"is confusing ass well.. result, I get syntax error

I used to following post as my guideline, but there have been changes.
[ www.hikashop.com/forum/product-category-...-cart-in-a-line.html](https://www.hikashop.com/forum/product-category-display/875925-how-to-put-product-price-and-add-to-cart-in-a-line.html)

Please help

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTE2OTEtYWRkLXRvLWNhcnQtbmV4dC10by1wcmljZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14278
-
-

9 years 2 months ago [\#276959](#276959) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add to cart next to price](/forum/26-product-category-display/891691-add-to-cart-next-to-price#276959 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5  Hi, I am trying to put the add to cart next to the price. I am looking at the layout and II guess, putting the product quantity block next to the Listing price item block would do the trick.  I have been trying for a while now and i cannot figure it out. The &quot;&quot;is confusing ass well.. result, I get syntax error  I used to following post as my guideline, but there have been changes.   www.hikashop.com/forum/product-category-...-cart-in-a-line.html  Please help")*

Hi,

First please provide a link to the page you're talking about so that we can see the situation.
Then we can provide the method to do that.

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

9 years 2 months ago -  8 years 5 months ago [\#276969](#276969) by [RobertB](/forum/user/20207-robertb "View RobertB's Profile")  Replied by *[RobertB](/forum/user/20207-robertb "View RobertB's Profile")* on topic *[Add to cart next to price](/forum/26-product-category-display/891691-add-to-cart-next-to-price#276969 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5  Hi, I am trying to put the add to cart next to the price. I am looking at the layout and II guess, putting the product quantity block next to the Listing price item block would do the trick.  I have been trying for a while now and i cannot figure it out. The &quot;&quot;is confusing ass well.. result, I get syntax error  I used to following post as my guideline, but there have been changes.   www.hikashop.com/forum/product-category-...-cart-in-a-line.html  Please help")*

Thanks for your reply
The page URL : https://www.stacii(dot)com/e-flea/product/macrame-lantern
Please note that he site is still not open for the public.. just need to fix things first.

Ultimately, I would like the price , the quantity input and the add to cart to display on 1 row

Robert

Last edit: 8 years 5 months ago by [RobertB](/forum/user/20207-robertb "View RobertB's Profile"). Reason: Crawling purposes, I need to remove direct links.So i am replacing them with (dot). Hope that is ok

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTE2OTEtYWRkLXRvLWNhcnQtbmV4dC10by1wcmljZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14278
-
-

9 years 2 months ago [\#276985](#276985) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add to cart next to price](/forum/26-product-category-display/891691-add-to-cart-next-to-price#276985 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5  Hi, I am trying to put the add to cart next to the price. I am looking at the layout and II guess, putting the product quantity block next to the Listing price item block would do the trick.  I have been trying for a while now and i cannot figure it out. The &quot;&quot;is confusing ass well.. result, I get syntax error  I used to following post as my guideline, but there have been changes.   www.hikashop.com/forum/product-category-...-cart-in-a-line.html  Please help")*

Hi,

First, the quantity input is by default next to the add to cart button.
That's not the case on your website because you've customized the CSS.
Add such CSS to counter balance that:
.hikashop_product_quantity_input_div_select{ width: auto !important; }

Regarding, the price being next to them, you would have to move the call to the "listing_price" view file in your "show_default" view file to the "quantity" view file in order to achieve that.
You can do that via the menu Display&gt;Views:
[ www.hikashop.com/support/documentation/1...-display.html#layout](https://www.hikashop.com/support/documentation/153-customize-the-display.html#layout)

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

9 years 2 months ago [\#277000](#277000) by [RobertB](/forum/user/20207-robertb "View RobertB's Profile")  Replied by *[RobertB](/forum/user/20207-robertb "View RobertB's Profile")* on topic *[Add to cart next to price](/forum/26-product-category-display/891691-add-to-cart-next-to-price#277000 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 3.7.5  Hi, I am trying to put the add to cart next to the price. I am looking at the layout and II guess, putting the product quantity block next to the Listing price item block would do the trick.  I have been trying for a while now and i cannot figure it out. The &quot;&quot;is confusing ass well.. result, I get syntax error  I used to following post as my guideline, but there have been changes.   www.hikashop.com/forum/product-category-...-cart-in-a-line.html  Please help")*

Yep, had to customize the css somewhat. ![:)](/media/kunena/emoticons/3.png ":)")

Leaned something new. I was not aware that I could move parts of one view file to a different view file.

Thank you

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

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

[](#top)
