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

#   Quantity Box on Front page

##

- **[Khalid Al Hassan](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile")**
- [![Khalid Al Hassan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile") Topic Author
- [ Offline](/forum/user/14321-khalid-al-hassan)

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 1 month ago [\#122022](#122022) by [Khalid Al Hassan](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile")  *[Quantity Box on Front page](/forum/4-how-to/861702-quantity-box-on-front-page#122022 "Is it possible to add a quantity box to main view as well as the detailed view of products. Currently I have the quantity function set up on the detailed view using the following code.  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  Is there a way to activate this function for the list view of products?  Here is my website   www.theflavorvapor.com  -- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message")* was created by *[Khalid Al Hassan](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile")*

Is it possible to add a quantity box to main view as well as the detailed view of products. Currently I have the quantity function set up on the detailed view using the following code.

$this-&gt;params-&gt;set('show_quantity_field', 1);

Is there a way to activate this function for the list view of products?

Here is my website [ www.theflavorvapor.com](http://www.theflavorvapor.com)

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : x.x.x
-- Joomla version -- : x.x
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

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

Less More

- Posts: 86321
- Thank you received: 14279
-
-

13 years 1 month ago [\#122027](#122027) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Quantity Box on Front page](/forum/4-how-to/861702-quantity-box-on-front-page#122027 "Is it possible to add a quantity box to main view as well as the detailed view of products. Currently I have the quantity function set up on the detailed view using the following code.  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  Is there a way to activate this function for the list view of products?  Here is my website   www.theflavorvapor.com  -- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message")*

You can use the same code in the listing file of the product view via the menu Display&gt;views.

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

- **[Khalid Al Hassan](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile")**
- [![Khalid Al Hassan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile") Topic Author
- [ Offline](/forum/user/14321-khalid-al-hassan)

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 1 month ago [\#122039](#122039) by [Khalid Al Hassan](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile")  Replied by *[Khalid Al Hassan](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile")* on topic *[Quantity Box on Front page](/forum/4-how-to/861702-quantity-box-on-front-page#122039 "Is it possible to add a quantity box to main view as well as the detailed view of products. Currently I have the quantity function set up on the detailed view using the following code.  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  Is there a way to activate this function for the list view of products?  Here is my website   www.theflavorvapor.com  -- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message")*

Thanks for your help, I have gotten the quantity box to appear but it isn't centered, Do I need to edit the code in the listing file to center the add to cart button?

Photo below and link
[ theflavorvapor.com/index.php/site-map/advanced-vapors](http://theflavorvapor.com/index.php/site-map/advanced-vapors)

- [ ![hbd837a4.png](/forum/attachment/12118) ](/forum/attachment/12118 "hbd837a4.png") [ ](/forum/attachment/12118?download=1 "hbd837a4.png")

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

Less More

- Posts: 86321
- Thank you received: 14279
-
-

13 years 1 month ago [\#122043](#122043) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Quantity Box on Front page](/forum/4-how-to/861702-quantity-box-on-front-page#122043 "Is it possible to add a quantity box to main view as well as the detailed view of products. Currently I have the quantity function set up on the detailed view using the following code.  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  Is there a way to activate this function for the list view of products?  Here is my website   www.theflavorvapor.com  -- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message")*

You can add such CSS for that on your website:
.hikashop_products .hikashop_product_stock table{ margin-left:40%; }

The following user(s) said Thank You: [Khalid Al Hassan](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile")

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

- **[Khalid Al Hassan](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile")**
- [![Khalid Al Hassan's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile") Topic Author
- [ Offline](/forum/user/14321-khalid-al-hassan)

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 1 month ago [\#122047](#122047) by [Khalid Al Hassan](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile")  Replied by *[Khalid Al Hassan](/forum/user/14321-khalid-al-hassan "View Khalid Al Hassan's Profile")* on topic *[Quantity Box on Front page](/forum/4-how-to/861702-quantity-box-on-front-page#122047 "Is it possible to add a quantity box to main view as well as the detailed view of products. Currently I have the quantity function set up on the detailed view using the following code.  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  Is there a way to activate this function for the list view of products?  Here is my website   www.theflavorvapor.com  -- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : x.x.x -- Joomla version -- : x.x -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message")*

Thank you for that CSS code, everything works great now!

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

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

[](#top)
