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

#   Separate inputs Quantity-fi and Add to cart-button

##

- **[Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")**
- [![Micke&#95;skane's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile") Topic Author
- [ Offline](/forum/user/7228-micke-skane)

Less More

- Posts: 56
- Thank you received: 0
-
-

14 years 6 months ago -  14 years 6 months ago [\#48242](#48242) by [Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")  *[Separate inputs Quantity-fi and Add to cart-button](/forum/2-general-talk-about-hikashop/48242-separate-inputs-quantity-fi-and-add-to-cart-button#48242 "Hi,  I´m trying to make some changes for the way quantity-field and Add to cart-button displays on the frontend-page but can´t see where I shall make the changes in the quantity.php. See the code under where I think I shall make the changes:  I want the button displays right under the quantity-field, see attached image!  Edit: It´seems that I get a way to display it the way I wanted with some css-style on the inputs-element...  /Micke")* was created by *[Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")*

Hi,

I´m trying to make some changes for the way quantity-field and Add to cart-button displays on the frontend-page but can´t see where I shall make the changes in the quantity.php.
See the code under where I think I shall make the changes: Code:

&lt;h5&gt;Antal:&lt;/h5&gt; &lt;div class="hikashop_product_stock"&gt; &lt;?php echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$this-&gt;row-&gt;product_max_per_order,$this-&gt;row-&gt;product_min_per_order); }elseif($this-&gt;row-&gt;product_quantity&gt;0){ ?&gt; &lt;div class="hikashop_product_stock"&gt; &lt;?php echo '&lt;span class="hikashop_product_stock_count"&gt;'.JText::sprintf('X_ITEMS_IN_STOCK',$this-&gt;row-&gt;product_quantity).'&lt;/span&gt;&lt;br/&gt;'; $config =&amp; hikashop_config(); if($config-&gt;get('button_style','normal')=='css'){ echo '&lt;br /&gt;'; } echo $this-&gt;cart-&gt;displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$this-&gt;row-&gt;product_max_per_order,$this-&gt;row-&gt;product_min_per_order); }else{ ?&gt;

I want the button displays right under the quantity-field, see attached image!

Edit:
It´seems that I get a way to display it the way I wanted with some css-style on the inputs-element...

/Micke

- [ ![hikashop&#95;quantity&#95;fiield&#95;add&#95;cart&#95;button.jpg](/forum/attachment/3660) ](/forum/attachment/3660 "...art&#95;button.jpg") [ ](/forum/attachment/3660?download=1 "...art&#95;button.jpg")

Last edit: 14 years 6 months ago by [Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ4MjQyLXNlcGFyYXRlLWlucHV0cy1xdWFudGl0eS1maS1hbmQtYWRkLXRvLWNhcnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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: 86323
- Thank you received: 14283
-
-

14 years 6 months ago [\#48306](#48306) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Separate inputs Quantity-fi and Add to cart-button](/forum/2-general-talk-about-hikashop/48242-separate-inputs-quantity-fi-and-add-to-cart-button#48306 "Hi,  I´m trying to make some changes for the way quantity-field and Add to cart-button displays on the frontend-page but can´t see where I shall make the changes in the quantity.php. See the code under where I think I shall make the changes:  I want the button displays right under the quantity-field, see attached image!  Edit: It´seems that I get a way to display it the way I wanted with some css-style on the inputs-element...  /Micke")*

So problem solved ?

The HTML of these elements is done in the file administrator/components/com_hikashop/helpers/cart.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ4MjQyLXNlcGFyYXRlLWlucHV0cy1xdWFudGl0eS1maS1hbmQtYWRkLXRvLWNhcnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")**
- [![Micke&#95;skane's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile") Topic Author
- [ Offline](/forum/user/7228-micke-skane)

Less More

- Posts: 56
- Thank you received: 0
-
-

14 years 6 months ago [\#48410](#48410) by [Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")  Replied by *[Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")* on topic *[Re: Separate inputs Quantity-fi and Add to cart-button](/forum/2-general-talk-about-hikashop/48242-separate-inputs-quantity-fi-and-add-to-cart-button#48410 "Hi,  I´m trying to make some changes for the way quantity-field and Add to cart-button displays on the frontend-page but can´t see where I shall make the changes in the quantity.php. See the code under where I think I shall make the changes:  I want the button displays right under the quantity-field, see attached image!  Edit: It´seems that I get a way to display it the way I wanted with some css-style on the inputs-element...  /Micke")*

Ok, thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ4MjQyLXNlcGFyYXRlLWlucHV0cy1xdWFudGl0eS1maS1hbmQtYWRkLXRvLWNhcnQtYnV0dG9uP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.072 seconds

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