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

#   Product Quantity and Product Display

##

- **[domhan](/forum/user/28162-domhan "View domhan's Profile")**
- [![domhan's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/splatter_hand.png)](/forum/user/28162-domhan "View domhan's Profile") Topic Author
- [ Offline](/forum/user/28162-domhan)

Less More

- Posts: 15
- Thank you received: 2
-
-
-

12 years 11 months ago [\#130306](#130306) by [domhan](/forum/user/28162-domhan "View domhan's Profile")  *[Product Quantity and Product Display](/forum/26-product-category-display/863249-product-quantity-and-product-display#130306 "Hi, I have managed to add the product quantity field to the Category Display of all products by using the code:  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  This puts in a nice quantity box except it is way too big for the listing and just makes it over sized? Is there a way to make this smaller?  Also, is there a way of disabling the link to a single product page because I just want people to look at the category view and see all the products in that category and then from here they can choose quantities and add them to their cart.  Thanks, Dom.")* was created by *[domhan](/forum/user/28162-domhan "View domhan's Profile")*

Hi, I have managed to add the product quantity field to the Category Display of all products by using the code:

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

This puts in a nice quantity box except it is way too big for the listing and just makes it over sized? Is there a way to make this smaller?

Also, is there a way of disabling the link to a single product page because I just want people to look at the category view and see all the products in that category and then from here they can choose quantities and add them to their cart.

Thanks, Dom.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 11 months ago [\#130358](#130358) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Product Quantity and Product Display](/forum/26-product-category-display/863249-product-quantity-and-product-display#130358 "Hi, I have managed to add the product quantity field to the Category Display of all products by using the code:  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  This puts in a nice quantity box except it is way too big for the listing and just makes it over sized? Is there a way to make this smaller?  Also, is there a way of disabling the link to a single product page because I just want people to look at the category view and see all the products in that category and then from here they can choose quantities and add them to their cart.  Thanks, Dom.")*

Hi,
1. Sure you'll be able to re-size your quantity box by using some [ CSS](http://www.hikashop.com/support/84-css-styling.html) code.
2. You'll just have to just have to edit the content menu/module of your product listing through "*Hikashop-&gt;Display-&gt;Content modules/menus*", and set the **Link to the product page** option to **NO**.

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

- **[domhan](/forum/user/28162-domhan "View domhan's Profile")**
- [![domhan's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/splatter_hand.png)](/forum/user/28162-domhan "View domhan's Profile") Topic Author
- [ Offline](/forum/user/28162-domhan)

Less More

- Posts: 15
- Thank you received: 2
-
-
-

12 years 11 months ago [\#130363](#130363) by [domhan](/forum/user/28162-domhan "View domhan's Profile")  Replied by *[domhan](/forum/user/28162-domhan "View domhan's Profile")* on topic *[Product Quantity and Product Display](/forum/26-product-category-display/863249-product-quantity-and-product-display#130363 "Hi, I have managed to add the product quantity field to the Category Display of all products by using the code:  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  This puts in a nice quantity box except it is way too big for the listing and just makes it over sized? Is there a way to make this smaller?  Also, is there a way of disabling the link to a single product page because I just want people to look at the category view and see all the products in that category and then from here they can choose quantities and add them to their cart.  Thanks, Dom.")*

Thanks for your reply. Is there any chance you could give me the CSS tags for the quantity box on the product page? I have already looked through the CSS code and changed the quantity box width to 10px but this did nothing.

[ www.dhdesign.org.uk/taste/index.php/wine/champagne](http://www.dhdesign.org.uk/taste/index.php/wine/champagne) this is the page I am wanting it on. I have disabled the function at the minute because it looked silly!

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 11 months ago -  12 years 11 months ago [\#130388](#130388) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Product Quantity and Product Display](/forum/26-product-category-display/863249-product-quantity-and-product-display#130388 "Hi, I have managed to add the product quantity field to the Category Display of all products by using the code:  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  This puts in a nice quantity box except it is way too big for the listing and just makes it over sized? Is there a way to make this smaller?  Also, is there a way of disabling the link to a single product page because I just want people to look at the category view and see all the products in that category and then from here they can choose quantities and add them to their cart.  Thanks, Dom.")*

I can't really help you if you disable the modifications that you've made, can you put them back so I can see what [ CSS ](http://www.hikashop.com/support/84-css-styling.html)code you'll need to apply ?

Last edit: 12 years 11 months ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

- **[domhan](/forum/user/28162-domhan "View domhan's Profile")**
- [![domhan's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/splatter_hand.png)](/forum/user/28162-domhan "View domhan's Profile") Topic Author
- [ Offline](/forum/user/28162-domhan)

Less More

- Posts: 15
- Thank you received: 2
-
-
-

12 years 11 months ago [\#130536](#130536) by [domhan](/forum/user/28162-domhan "View domhan's Profile")  Replied by *[domhan](/forum/user/28162-domhan "View domhan's Profile")* on topic *[Product Quantity and Product Display](/forum/26-product-category-display/863249-product-quantity-and-product-display#130536 "Hi, I have managed to add the product quantity field to the Category Display of all products by using the code:  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  This puts in a nice quantity box except it is way too big for the listing and just makes it over sized? Is there a way to make this smaller?  Also, is there a way of disabling the link to a single product page because I just want people to look at the category view and see all the products in that category and then from here they can choose quantities and add them to their cart.  Thanks, Dom.")*

Sorry, I have put them back now. If you could help me this would be very kind of you.

Thanks.

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

12 years 11 months ago [\#130561](#130561) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Quantity and Product Display](/forum/26-product-category-display/863249-product-quantity-and-product-display#130561 "Hi, I have managed to add the product quantity field to the Category Display of all products by using the code:  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  This puts in a nice quantity box except it is way too big for the listing and just makes it over sized? Is there a way to make this smaller?  Also, is there a way of disabling the link to a single product page because I just want people to look at the category view and see all the products in that category and then from here they can choose quantities and add them to their cart.  Thanks, Dom.")*

This issue comes from your template CSS: Code:

textarea, input, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"] { color: #6e6e6e; background-color: #ffffff; border: 1px solid #d5d5d5; border-radius: 4px; padding: 4px 8px; margin: 0; vertical-align: middle; width: auto; }

in [ www.dhdesign.org.uk/taste/templates/rt\_a...fe9776dc07b12281.css](http://www.dhdesign.org.uk/taste/templates/rt_acacia/css-compiled/master-d18fd05bd8ad761bfe9776dc07b12281.css)
Please ask your template provider how to properly remove that code and it will display with a normal width.

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

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

Less More

- Posts: 53
- Thank you received: 0
-
-

12 years 11 months ago [\#131102](#131102) by [teleactive](/forum/user/5632-teleactive "View teleactive's Profile")  Replied by *[teleactive](/forum/user/5632-teleactive "View teleactive's Profile")* on topic *[Product Quantity and Product Display](/forum/26-product-category-display/863249-product-quantity-and-product-display#131102 "Hi, I have managed to add the product quantity field to the Category Display of all products by using the code:  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  This puts in a nice quantity box except it is way too big for the listing and just makes it over sized? Is there a way to make this smaller?  Also, is there a way of disabling the link to a single product page because I just want people to look at the category view and see all the products in that category and then from here they can choose quantities and add them to their cart.  Thanks, Dom.")*

> domhan wrote: Hi, I have managed to add the product quantity field to the Category Display of all products by using the code:
>
> $this-&gt;params-&gt;set('show\_quantity\_field', 1);
>
> This puts in a nice quantity box except it is way too big for the listing and just makes it over sized? Is there a way to make this smaller?
>
> Also, is there a way of disabling the link to a single product page because I just want people to look at the category view and see all the products in that category and then from here they can choose quantities and add them to their cart.
>
> Thanks, Dom.

What file did you add the code to?

I need to do the same thing.

Thanks,

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

- **[domhan](/forum/user/28162-domhan "View domhan's Profile")**
- [![domhan's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/splatter_hand.png)](/forum/user/28162-domhan "View domhan's Profile") Topic Author
- [ Offline](/forum/user/28162-domhan)

Less More

- Posts: 15
- Thank you received: 2
-
-
-

12 years 11 months ago [\#131111](#131111) by [domhan](/forum/user/28162-domhan "View domhan's Profile")  Replied by *[domhan](/forum/user/28162-domhan "View domhan's Profile")* on topic *[Product Quantity and Product Display](/forum/26-product-category-display/863249-product-quantity-and-product-display#131111 "Hi, I have managed to add the product quantity field to the Category Display of all products by using the code:  $this-&gt;params-&gt;set('show&#95;quantity&#95;field', 1);  This puts in a nice quantity box except it is way too big for the listing and just makes it over sized? Is there a way to make this smaller?  Also, is there a way of disabling the link to a single product page because I just want people to look at the category view and see all the products in that category and then from here they can choose quantities and add them to their cart.  Thanks, Dom.")*

Hi there,

You go to the Hikashop component. Then on the top tabs, Display &gt; Views.

Then at the top right there are some drop down menu's, Select "Product" and then in the middle one select your template. This will bring up a list of different views. Find the one called "listing_img_title" Open it.

Then scroll down until you see: Code:

&lt;!-- ADD TO CART BUTTON AREA --&gt; &lt;?php if($this-&gt;params-&gt;get('add_to_cart') &#124;&#124; $this-&gt;params-&gt;get('add_to_wishlist')){ $this-&gt;setLayout('add_to_cart_listing'); echo $this-&gt;loadTemplate(); }?&gt; &lt;!-- EO ADD TO CART BUTTON AREA --&gt;

I just added that line of code so mine looks like this.
Code:

&lt;!-- ADD TO CART BUTTON AREA --&gt; &lt;?php if($this-&gt;params-&gt;get('add_to_cart') &#124;&#124; $this-&gt;params-&gt;get('add_to_wishlist')){ $this-&gt;params-&gt;set('show_quantity_field', 1); $this-&gt;setLayout('add_to_cart_listing'); echo $this-&gt;loadTemplate(); }?&gt; &lt;!-- EO ADD TO CART BUTTON AREA --&gt;

Thanks, Dom.

The following user(s) said Thank You: [Xavier](/forum/user/4105-xavier "View Xavier's Profile"), [teleactive](/forum/user/5632-teleactive "View teleactive's Profile")

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

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

[](#top)
