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

#   Missing quantity box on product page

##

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

Less More

- Posts: 209
- Thank you received: 18
-
-

10 years 11 months ago -  10 years 11 months ago [\#220673](#220673) by [JIK](/forum/user/362-jik "View JIK's Profile")  *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#220673 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")* was created by *[JIK](/forum/user/362-jik "View JIK's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.5

I cannot get a quantity input box to display on a product that has characteristics&amp;variants.

- The product is a t-shirt and is accessible only as a "related product" on another product. I have set up the t-shirt product as a "related" module and set that module to show at the bottom of the parent's product page. The module has *"Quantity field on 'Add to cart' button"* set to YES.
- The t-shirt product has variants - 5 sizes and 2 colors.
- All variants are the same price but have different images.
- On the product page for the t-shirt, the size and color variants show as radio buttons and there is an "Add to cart" button.
- However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.

[ ![hs-qty-box-prob.jpg](/forum/attachment/27678) ](/forum/attachment/27678 "...y-box-prob.jpg")

How do I get a quantity box to show above the Add to cart button?

My module settings

[ ![hs-related-module-settings.jpg](/forum/attachment/27679) ](/forum/attachment/27679 "...e-settings.jpg")

- [ ![hs-qty-box-prob.jpg](/forum/attachment/27678) ](/forum/attachment/27678 "...y-box-prob.jpg") [ ](/forum/attachment/27678?download=1 "...y-box-prob.jpg")
- [ ![hs-related-module-settings.jpg](/forum/attachment/27679) ](/forum/attachment/27679 "...e-settings.jpg") [ ](/forum/attachment/27679?download=1 "...e-settings.jpg")

Last edit: 10 years 11 months ago by [JIK](/forum/user/362-jik "View JIK's Profile"). Reason: added image of module setting

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

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 747
-
- [](http://www.inphase.one)
-

10 years 11 months ago [\#220674](#220674) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#220674 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Hi,

Check "Display the quantity field on the product page" ([ www.hikashop.com/support/support/documen...ig.html#main\_product](http://www.hikashop.com/support/support/documentation/54-hikashop-config.html#main_product))

Just FYI, for the input method you also have:
"Quantity input method" ([ www.hikashop.com/support/support/documen...tml#display\_products](http://www.hikashop.com/support/support/documentation/54-hikashop-config.html#display_products))
and, for individual products, "Quantity input" ([ www.hikashop.com/support/documentation/i...ct-form.html#display](http://www.hikashop.com/support/documentation/integrated-documentation/20-hikashop/tutorials/19-hikashop-product-form.html#display))

And in 2.6.0 you then have an Inherit/Yes/No button group for "Quantity input" in product &amp; category listing menu items and modules, too.

There you go. And you see, the product documentation works wonder, also for someone who's as long around as you are, lol! Entering "quantity input" in the search there would have given you the results you needed... ![;)](/media/kunena/emoticons/11.png ";)")

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

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

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

Less More

- Posts: 209
- Thank you received: 18
-
-

10 years 11 months ago [\#220757](#220757) by [JIK](/forum/user/362-jik "View JIK's Profile")  Replied by *[JIK](/forum/user/362-jik "View JIK's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#220757 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

I have the "Display the quantity field on the product page" set to "On a per product basis" in config as I have some products that I don't want to show the quantity input on. The display setting for quantity input on the product page appears to have no effect and the documentation for that setting appears incomplete.

Just FYI, I did spend quite a bit of time searching the forum/documentation and also googling same - this forum is not the only place that discusses Hikashop solutions - and I do prefer to only annoy the Hikashop guys if all else has failed and particularly when threads in the search result have been around as long as I have! ![;)](/media/kunena/emoticons/11.png ";)")

Vive le France!

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

10 years 11 months ago [\#220788](#220788) by [amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")  Replied by *[amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#220788 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Having exactly the same problem. Everything is turned on but can't display a quantity box on product page. Looking forward to a solution.

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

10 years 11 months ago -  10 years 11 months ago [\#220786](#220786) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#220786 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Hi,

This option is deprecated, we have to remove it. Thank you for this report.
Now there is the possibility to set the "Quantity input method" for each products, so this option can be used instead.

I just added an option to not have quantity input, please edit the file "administrator/components/com_hikashop/types/quantitydisplay.php" and replace: Code:

var $default = array( 'show_default', 'show_regrouped', 'show_select', 'show_simple', 'show_leftright', 'show_simplified', 'show_default_div' );

By: Code:

var $default = array( 'show_none', 'show_default', 'show_regrouped', 'show_select', 'show_simple', 'show_leftright', 'show_simplified', 'show_default_div' );

Add the following translation override:

> SHOW\_NONE="None"

And finally replace the view "product / show_quantity" by: Code:

&lt;?php $i = $this-&gt;params-&gt;get('i'); $min_quantity = $this-&gt;params-&gt;get('min_quantity'); $max_quantity = $this-&gt;params-&gt;get('max_quantity'); $html = $this-&gt;params-&gt;get('html'); $qLayout = JRequest::getVar('quantitylayout','show_default'); switch($qLayout){ case 'show_none': ?&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_regrouped"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php break; case 'show_regrouped': ?&gt; &lt;div class="input-append hikashop_product_quantity_div hikashop_product_quantity_input_div_regrouped"&gt; &lt;input id="hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;" type="text" value="&lt;?php echo JRequest::getInt('quantity',$min_quantity); ?&gt;" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);" /&gt; &lt;div class="add-on hikashop_product_quantity_div hikashop_product_quantity_change_div_regrouped"&gt; &lt;div class="hikashop_product_quantity_change_div_plus_regrouped"&gt; &lt;a id="hikashop_product_quantity_field_change_plus_&lt;?php echo $i; ?&gt;" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',1,&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);"&gt;+&lt;/a&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_change_div_plus_regrouped"&gt; &lt;a id="hikashop_product_quantity_field_change_minus_&lt;?php echo $i; ?&gt;" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',0,&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);"&gt;&amp;ndash;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_regrouped"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php break; case 'show_select': if($min_quantity == 0) $min_quantity = 1; if($max_quantity == 0) $max_quantity = (int)$min_quantity * 15; ?&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_input_div_select"&gt; &lt;select id="hikashop_product_quantity_select_&lt;?php echo $i; ?&gt;" onchange="var id = this.id.replace('select','field'); document.getElementById(id).value = this.value;"&gt; &lt;?php for($j = $min_quantity; $j &lt;= $max_quantity; $j += $min_quantity){ echo '&lt;option value="'.$j.'"&gt;'.$j.'&lt;/option&gt;'; } ?&gt; &lt;/select&gt; &lt;input id="hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;" type="hidden" value="&lt;?php echo JRequest::getInt('quantity',$min_quantity); ?&gt;" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);" /&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_select"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php break; case 'show_simple': ?&gt; &lt;input id="hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;" type="hidden" value="&lt;?php echo JRequest::getInt('quantity',$min_quantity); ?&gt;" class="hikashop_product_quantity_field" name="quantity" /&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_simple"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php break; case 'show_leftright': ?&gt; &lt;div class="input-prepend input-append hikashop_product_quantity_div hikashop_product_quantity_change_div_leftright"&gt; &lt;span class="add-on"&gt; &lt;a id="hikashop_product_quantity_field_change_plus_&lt;?php echo $i; ?&gt;" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',1,&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);"&gt;+&lt;/a&gt; &lt;/span&gt; &lt;input id="hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;" type="text" value="&lt;?php echo JRequest::getInt('quantity',$min_quantity); ?&gt;" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);" /&gt; &lt;span class="add-on"&gt; &lt;a id="hikashop_product_quantity_field_change_minus_&lt;?php echo $i; ?&gt;" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',0,&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);"&gt;&amp;ndash;&lt;/a&gt; &lt;/span&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_leftright"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php break; case 'show_simplified': ?&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_input_div_simplified"&gt; &lt;input id="hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;" type="text" value="&lt;?php echo JRequest::getInt('quantity',$min_quantity); ?&gt;" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);" /&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_simplified"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php break; case 'show_default_div': ?&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_input_div_default"&gt; &lt;input id="hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;" type="text" value="&lt;?php echo JRequest::getInt('quantity',$min_quantity); ?&gt;" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);" /&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_change_div_default"&gt; &lt;div class="hikashop_product_quantity_change_div_plus_default"&gt; &lt;a id="hikashop_product_quantity_field_change_plus_&lt;?php echo $i; ?&gt;" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',1,&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);"&gt;+&lt;/a&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_change_div_minus_default"&gt; &lt;a id="hikashop_product_quantity_field_change_minus_&lt;?php echo $i; ?&gt;" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',0,&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);"&gt;&amp;ndash;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_default"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php break; case 'show_default': ?&gt; &lt;table&gt; &lt;tr&gt; &lt;td rowspan="2"&gt; &lt;input id="hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;" type="text" value="&lt;?php echo JRequest::getInt('quantity',$min_quantity); ?&gt;" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);" /&gt; &lt;/td&gt; &lt;td&gt; &lt;a id="hikashop_product_quantity_field_change_plus_&lt;?php echo $i; ?&gt;" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',1,&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);"&gt;+&lt;/a&gt; &lt;/td&gt; &lt;td rowspan="2"&gt; &lt;?php echo $html; ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;a id="hikashop_product_quantity_field_change_minus_&lt;?php echo $i; ?&gt;" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',0,&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);"&gt;&amp;ndash;&lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;?php break; default: if(substr($qLayout,0,14) == 'show_quantity_'){ $doc = JFactory::getDocument(); $app = JFactory::getApplication(); $quantityDisplayType = hikashop_get('type.quantitydisplay'); if($quantityDisplayType-&gt;check( $qLayout, $app-&gt;getTemplate())){ $controller = new hikashopBridgeController(array('name'=&gt;'product')); $viewType = $doc-&gt;getType(); if(!HIKASHOP_PHP5) { $view = &amp; $controller-&gt;getView( '', $viewType, ''); } else { $view = $controller-&gt;getView( '', $viewType, ''); } $view-&gt;setLayout($qLayout); echo $view-&gt;loadTemplate(); break; } } ?&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_input_div_default"&gt; &lt;input id="hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;" type="text" value="&lt;?php echo JRequest::getInt('quantity',$min_quantity); ?&gt;" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);" /&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_change_div_default"&gt; &lt;div class="hikashop_product_quantity_change_div_plus_default"&gt; &lt;a id="hikashop_product_quantity_field_change_plus_&lt;?php echo $i; ?&gt;" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',1,&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);"&gt;+&lt;/a&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_change_div_minus_default"&gt; &lt;a id="hikashop_product_quantity_field_change_minus_&lt;?php echo $i; ?&gt;" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange('hikashop_product_quantity_field_&lt;?php echo $i; ?&gt;',0,&lt;?php echo $max_quantity; ?&gt;,&lt;?php echo $min_quantity; ?&gt;);"&gt;&amp;ndash;&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="hikashop_product_quantity_div hikashop_product_quantity_add_to_cart_div hikashop_product_quantity_add_to_cart_div_default"&gt; &lt;?php echo $html; ?&gt; &lt;/div&gt; &lt;?php break; }

Then you just have to select "None" in the global configuration of HikaShop and select the desired value for the products.

Last edit: 10 years 11 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

10 years 11 months ago [\#221415](#221415) by [amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")  Replied by *[amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#221415 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Hello,
Mine looks different but I still think I have everything correctly checked.

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

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

10 years 11 months ago [\#221484](#221484) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#221484 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Hi,

Did you change the code snippets as Xavier explained ?

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

10 years 11 months ago [\#221949](#221949) by [amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")  Replied by *[amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#221949 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Well it looks as though I'm using a different version and didn't want to go messing with the code. Wondering if there's anyone who can go and have a look for me as I'm positive Ive got everything on that's meant to on and I just cant get a box there. Could someone from Hikashop have a look?

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

10 years 11 months ago [\#221984](#221984) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#221984 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Hi,

Your version can support the modifications given.
So you can give it a try ![;)](/media/kunena/emoticons/11.png ";)") This will not broke anything and if it does, so you just have to remove the overrides.
[ www.hikashop.com/support/documentation/s...ize-the-display.html](http://www.hikashop.com/support/documentation/support/documentation/153-customize-the-display.html)

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

10 years 11 months ago [\#222087](#222087) by [amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")  Replied by *[amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#222087 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

OK I'm stuck on the second part.
Add the following translation override:
SHOW_NONE="None"
And after that I'll be stuck on the third part :}
Where do I add the translation override?

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

10 years 11 months ago [\#222089](#222089) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#222089 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Hi,

Here is how to translate in HikaShop: [ hikashop.com/support/faq.html#tran](https://hikashop.com/support/faq.html#tran)
But this is not mandatory.

For the third part, you have to go through HikaShop &gt; Display &gt; Views, then edit the view "product / show_quantity" and remove all the current code, then paste the given one.

This is explained in this tutorial:
[ www.hikashop.com/support/documentation/s...ize-the-display.html](http://www.hikashop.com/support/documentation/support/documentation/153-customize-the-display.html)

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

10 years 11 months ago [\#222181](#222181) by [amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")  Replied by *[amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#222181 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Got there but then came across this.

[ ![hikashop&#95;2015-11-27.png](/forum/attachment/28025) ](/forum/attachment/28025 "...2015-11-27.png")

- [ ![hikashop&#95;2015-11-27.png](/forum/attachment/28025) ](/forum/attachment/28025 "...2015-11-27.png") [ ](/forum/attachment/28025?download=1 "...2015-11-27.png")

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

10 years 11 months ago [\#222183](#222183) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#222183 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Hi,

You seems to have restrictions due to your server.
But there is another way to edit a view, by using the template override in Joomla directly or via FTP.

Joomla method: In Extensions &gt; Templates click on your template name in the "Templates" column, then "Create an overrride" tab, select com_hikashop &gt; product. Go in the "Editor" tab and click on "html/com_hikashop/product/show_quantity". Paste the modifications and save. The bad thing with this method is that it creates an override for all the product views and not only on the desired one.

FTP method: Go in the folder templates/YOUR_TEMPLATE/html/ and create a folder "com_hikashop", then a folder "product" and finally the file "show_quantity.php" and paste the code in that file.

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

10 years 11 months ago [\#222302](#222302) by [amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")  Replied by *[amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#222302 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Pretty sure I did everything as instructed.
The first image is my admin panel after going to system&gt;configuration and the second image is my product page.

- [ ![admin.png](/forum/attachment/28052) ](/forum/attachment/28052 "admin.png") [ ](/forum/attachment/28052?download=1 "admin.png")
- [ ![productpage.png](/forum/attachment/28053) ](/forum/attachment/28053 "productpage.png") [ ](/forum/attachment/28053?download=1 "productpage.png")

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

10 years 11 months ago [\#222337](#222337) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#222337 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Hi,

Can you do a screenshot of the code that you have in the quantitydisplay view file so that we can check what you did ?
You must have made a mistake there.

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

10 years 11 months ago [\#222372](#222372) by [amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")  Replied by *[amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#222372 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Can I send you login details to have a look!?

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

10 years 11 months ago [\#222423](#222423) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#222423 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

Hi,

The issue is in the file "administrator/components/com_hikashop/types/quantitydisplay.php" at the line 14 there is a missing simple quote. I guess that your current code is: Code:

var $default = array( 'show_none', show_default', 'show_regrouped', 'show_select', 'show_simple', 'show_leftright', 'show_simplified', 'show_default_div' );

Instead of: Code:

var $default = array( 'show_none', 'show_default', 'show_regrouped', 'show_select', 'show_simple', 'show_leftright', 'show_simplified', 'show_default_div' );

Please add this quote, or copy and paste all this code instead your current code: Code:

&lt;?php class hikashopQuantitydisplayType { var $default = array( 'show_none', 'show_default', 'show_regrouped', 'show_select', 'show_simple', 'show_leftright', 'show_simplified', 'show_default_div' ); function load(){ $this-&gt;values = array(); if(JRequest::getCmd('from_display',false) == false) $this-&gt;values[] = JHTML::_('select.option', '', JText::_('HIKA_INHERIT')); $this-&gt;values[] = JHTML::_('select.optgroup', '-- '.JText::_('FROM_HIKASHOP').' --'); foreach($this-&gt;default as $d) { $this-&gt;values[] = JHTML::_('select.option', $d, JText::_(strtoupper($d))); } if(version_compare(JVERSION,'1.6.0','&gt;=')){ $this-&gt;values[] = JHTML::_('select.optgroup', '-- '.JText::_('FROM_HIKASHOP').' --'); } $closeOpt = ''; $values = $this-&gt;getLayout(); foreach($values as $value) { if(substr($value,0,1) == '#') { if(version_compare(JVERSION,'1.6.0','&gt;=') &amp;&amp; !empty($closeOpt)){ $this-&gt;values[] = JHTML::_('select.optgroup', $closeOpt); } $value = substr($value,1); $closeOpt = '-- ' . JText::sprintf('FROM_TEMPLATE',basename($value)) . ' --'; $this-&gt;values[] = JHTML::_('select.optgroup', $closeOpt); } else { $this-&gt;values[] = JHTML::_('select.option', $value, $value); } } if(version_compare(JVERSION,'1.6.0','&gt;=') &amp;&amp; !empty($closeOpt)){ $this-&gt;values[] = JHTML::_('select.optgroup', $closeOpt); } } function display($map,$value) { $this-&gt;load(); return JHTML::_('select.genericlist', $this-&gt;values, $map, 'class="inputbox" size="1"', 'value', 'text', $value ); } function getLayout($template = '') { jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.file'); static $values = null; if($values !== null) return $values; $client = JApplicationHelper::getClientInfo(0); // 0: Front client $tplDir = $client-&gt;path.DS.'templates'.DS; $values = array(); if(empty($template)) { $templates = JFolder::folders($tplDir); if(empty($templates)) return null; } else { $templates = array($template); } $groupAdded = false; foreach($templates as $tpl) { $t = $tplDir.$tpl.DS.'html'.DS.HIKASHOP_COMPONENT.DS; if(!JFolder::exists($t)) continue; $folders = JFolder::folders($t); if(empty($folders)) continue; foreach($folders as $folder) { $files = JFolder::files($t.$folder.DS); if(empty($files)) continue; foreach($files as $file) { if(substr($file,-4) == '.php') $file = substr($file,0,-4); if(substr($file,0,14) == 'show_quantity_' &amp;&amp; !in_array($file,$this-&gt;default)) { if(!$groupAdded) { $values[] = '#'.$tpl; $groupAdded = true; } $values[] = $file; } } } } return $values; } function check($name,$template) { if($name == '' &#124;&#124; in_array($name, $this-&gt;default)) return true; $values = $this-&gt;getLayout($template); return in_array($name,$values); } } ?&gt;

If that still doesn't work, so yes you can send us a backend and FTP access via our contact form (with a link to that topic).
[ hikashop.com/support/contact-us.html](https://hikashop.com/support/contact-us.html)

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

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

Less More

- Posts: 8
- Thank you received: 0
-
-

10 years 11 months ago [\#222457](#222457) by [amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")  Replied by *[amoozinc](/forum/user/38076-amoozinc "View amoozinc's Profile")* on topic *[Missing quantity box on product page](/forum/26-product-category-display/880471-missing-quantity-box-on-product-page#222457 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.5  I cannot get a quantity input box to display on a product that has characteristics&amp;variants.  &#42; The product is a t-shirt and is accessible only as a &quot;related product&quot; on another product. I have set up the t-shirt product as a &quot;related&quot; module and set that module to show at the bottom of the parent's product page. The module has &quot;Quantity field on 'Add to cart' button&quot; set to YES.  &#42; The t-shirt product has variants - 5 sizes and 2 colors.  &#42; All variants are the same price but have different images.  &#42; On the product page for the t-shirt, the size and color variants show as radio buttons and there is an &quot;Add to cart&quot; button.  &#42; However there is no quantity box, therefore a customer can only buy 1 t-shirt in a particular size/color combo. In order to buy more of the same size/combo it must be done in the checkout.  How do I get a quantity box to show above the Add to cart button?  My module settings")*

So strange as I copied and pasted the first time! But obviously did something wrong. It's worked. Thank you so much for your patience ![:)](/media/kunena/emoticons/8.png ":)")

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

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

[](#top)
