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

#   edit product page quantity block

##

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

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 3 months ago [\#114645](#114645) by [up2sky](/forum/user/23136-up2sky "View up2sky's Profile")  *[edit product page quantity block](/forum/4-how-to/85503-edit-product-page-quantity-block#114645 "original : &quot;quantity box&quot; &quot;+&quot; &quot;-&quot; &quot;Add to cart&quot; I want to move &quot;+&quot; to have: &quot;+&quot; &quot;quantity box&quot; &quot;-&quot; &quot;Add to cart&quot;  i cant find the file containing this code.")* was created by *[up2sky](/forum/user/23136-up2sky "View up2sky's Profile")*

original :
"quantity box" "+" "-" "Add to cart"
I want to move "+"
to have:
"+" "quantity box" "-" "Add to cart"

i cant find the file containing this code.

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

- **[Eliot](/forum/user/1824-eliot "View Eliot's Profile")**
- [![Eliot's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1824.png)](/forum/user/1824-eliot "View Eliot's Profile")
- [ Offline](/forum/user/1824-eliot)

Less More

- Posts: 2334
- Thank you received: 403
-
-

13 years 3 months ago [\#114660](#114660) by [Eliot](/forum/user/1824-eliot "View Eliot's Profile")  Replied by *[Eliot](/forum/user/1824-eliot "View Eliot's Profile")* on topic *[edit product page quantity block](/forum/4-how-to/85503-edit-product-page-quantity-block#114660 "original : &quot;quantity box&quot; &quot;+&quot; &quot;-&quot; &quot;Add to cart&quot; I want to move &quot;+&quot; to have: &quot;+&quot; &quot;quantity box&quot; &quot;-&quot; &quot;Add to cart&quot;  i cant find the file containing this code.")*

Hi there,

It's in the file cart.php in administrator/components/com_hikashop/helpers. The lines you are looking for are: Code:

&lt;table&gt; &lt;tr&gt; &lt;td rowspan="2"&gt; &lt;input id="hikashop_product_quantity_field_'.$i.'" type="text" value="'.JRequest::getInt('quantity',$min_quantity).'" class="hikashop_product_quantity_field" name="quantity" onchange="hikashopCheckQuantityChange(\'hikashop_product_quantity_field_'.$i.'\','.$max_quantity.','.$min_quantity.');" /&gt; &lt;/td&gt; &lt;td&gt; &lt;a id="hikashop_product_quantity_field_change_plus_'.$i.'" class="hikashop_product_quantity_field_change_plus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange(\'hikashop_product_quantity_field_'.$i.'\',1,'.$max_quantity.','.$min_quantity.');"&gt;+&lt;/a&gt; &lt;/td&gt; &lt;td rowspan="2"&gt; '.$html.' &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;a id="hikashop_product_quantity_field_change_minus_'.$i.'" class="hikashop_product_quantity_field_change_minus hikashop_product_quantity_field_change" href="#" onclick="return hikashopQuantityChange(\'hikashop_product_quantity_field_'.$i.'\',0,'.$max_quantity.','.$min_quantity.');"&gt;&amp;ndash;&lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;

I would however suggest you to try to use css to do what you want instead of editing this code since any modification would not be conserved when updating.

The following user(s) said Thank You: [up2sky](/forum/user/23136-up2sky "View up2sky's Profile")

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

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

Less More

- Posts: 12
- Thank you received: 0
-
-

13 years 3 months ago [\#114737](#114737) by [up2sky](/forum/user/23136-up2sky "View up2sky's Profile")  Replied by *[up2sky](/forum/user/23136-up2sky "View up2sky's Profile")* on topic *[edit product page quantity block](/forum/4-how-to/85503-edit-product-page-quantity-block#114737 "original : &quot;quantity box&quot; &quot;+&quot; &quot;-&quot; &quot;Add to cart&quot; I want to move &quot;+&quot; to have: &quot;+&quot; &quot;quantity box&quot; &quot;-&quot; &quot;Add to cart&quot;  i cant find the file containing this code.")*

Thank you!!
I was looking just in \components\com_hikashop\
Why everything in so different folders ? ((
I tried just CSS, but it wont fit my wishes. So i need to change some code.

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 3 months ago [\#114764](#114764) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[edit product page quantity block](/forum/4-how-to/85503-edit-product-page-quantity-block#114764 "original : &quot;quantity box&quot; &quot;+&quot; &quot;-&quot; &quot;Add to cart&quot; I want to move &quot;+&quot; to have: &quot;+&quot; &quot;quantity box&quot; &quot;-&quot; &quot;Add to cart&quot;  i cant find the file containing this code.")*

Hi,

The quantity input has to be override using the "template override" explained in the developer documentation:
[ www.hikashop.com/fr/support/documentatio...tation.html#override](http://www.hikashop.com/fr/support/documentation/62-hikashop-developer-documentation.html#override)

Most of elements are in views (and you have to use the view override interface in the HikaShop backend if you want to have the ability to update HikaShop without loosing your modification) but some core elements has been added in helper files.
Because it is not safe to edit the core files, we implemented another method to override it.
But we are working on a new system, easier, for this kind of customization.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [up2sky](/forum/user/23136-up2sky "View up2sky's Profile")

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

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