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

#   external store quantity override

##

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

Less More

- Posts: 23
- Thank you received: 5
-
-

1 year 8 months ago [\#365872](#365872) by [mizso676](/forum/user/82243-mizso676 "View mizso676's Profile")  *[external store quantity override](/forum/27-checkout/909196-external-store-quantity-override#365872 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.2.2 -- PHP version -- : 8.1.28 -- Browser(s) name and version -- : chrome latest, firefox, etc.  Hi guys!  Again, I have a complex question: is it possible to manage external stock? It would be important to be able to order only the existing quantity (e.g. 2pcs), but to show the quantity increased by a value stored in a custom field (e.g. extstore) and the quantity selector also uses this value (e.g. extstore value=4, so the full value is 6pcs)?  This would be important because I can't put what is in external stock into the order, I can only contact the customer via email (e.g. RSForm form).  This way I could manage the order itself (original quantity) and the enquiry (extstock quantity) in one interface.  My question would be how can I override the default quantity handler in hikashop, is there any solution?  Thanks in advance!")* was created by *[mizso676](/forum/user/82243-mizso676 "View mizso676's Profile")*

-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5.2.2
-- PHP version -- : 8.1.28
-- Browser(s) name and version -- : chrome latest, firefox, etc.

Hi guys!

Again, I have a complex question: is it possible to manage external stock? It would be important to be able to order only the existing quantity (e.g. 2pcs), but to show the quantity increased by a value stored in a custom field (e.g. extstore) and the quantity selector also uses this value (e.g. extstore value=4, so the full value is 6pcs)?

This would be important because I can't put what is in external stock into the order, I can only contact the customer via email (e.g. RSForm form).

This way I could manage the order itself (original quantity) and the enquiry (extstock quantity) in one interface.

My question would be how can I override the default quantity handler in hikashop, is there any solution?

Thanks in advance!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwOTE5Ni1leHRlcm5hbC1zdG9yZS1xdWFudGl0eS1vdmVycmlkZT90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

1 year 8 months ago [\#365873](#365873) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[external store quantity override](/forum/27-checkout/909196-external-store-quantity-override#365873 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.2.2 -- PHP version -- : 8.1.28 -- Browser(s) name and version -- : chrome latest, firefox, etc.  Hi guys!  Again, I have a complex question: is it possible to manage external stock? It would be important to be able to order only the existing quantity (e.g. 2pcs), but to show the quantity increased by a value stored in a custom field (e.g. extstore) and the quantity selector also uses this value (e.g. extstore value=4, so the full value is 6pcs)?  This would be important because I can't put what is in external stock into the order, I can only contact the customer via email (e.g. RSForm form).  This way I could manage the order itself (original quantity) and the enquiry (extstock quantity) in one interface.  My question would be how can I override the default quantity handler in hikashop, is there any solution?  Thanks in advance!")*

Hi,

This plugin [ www.hikashop.com/marketplace/product/109...rder-by-obsidev.html](https://www.hikashop.com/marketplace/product/109-integration-productpreorder-by-obsidev.html) allows you to have a "pre order stock" on top of the default stock for each product.
Once the normal stock reaches 0, the product can still be purchased until the pre order stock reaches 0.
So it seems to match with what you're describing.

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

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

Less More

- Posts: 23
- Thank you received: 5
-
-

1 year 8 months ago [\#365876](#365876) by [mizso676](/forum/user/82243-mizso676 "View mizso676's Profile")  Replied by *[mizso676](/forum/user/82243-mizso676 "View mizso676's Profile")* on topic *[external store quantity override](/forum/27-checkout/909196-external-store-quantity-override#365876 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.2.2 -- PHP version -- : 8.1.28 -- Browser(s) name and version -- : chrome latest, firefox, etc.  Hi guys!  Again, I have a complex question: is it possible to manage external stock? It would be important to be able to order only the existing quantity (e.g. 2pcs), but to show the quantity increased by a value stored in a custom field (e.g. extstore) and the quantity selector also uses this value (e.g. extstore value=4, so the full value is 6pcs)?  This would be important because I can't put what is in external stock into the order, I can only contact the customer via email (e.g. RSForm form).  This way I could manage the order itself (original quantity) and the enquiry (extstock quantity) in one interface.  My question would be how can I override the default quantity handler in hikashop, is there any solution?  Thanks in advance!")*

Pre-order is not working well for me because you cannot put the maximum quantity in the cart at once. So you have to consume the default stock first, and then you can only use it afterwards.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0LzkwOTE5Ni1leHRlcm5hbC1zdG9yZS1xdWFudGl0eS1vdmVycmlkZT90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14299
-
-

1 year 8 months ago [\#365881](#365881) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[external store quantity override](/forum/27-checkout/909196-external-store-quantity-override#365881 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.2.2 -- PHP version -- : 8.1.28 -- Browser(s) name and version -- : chrome latest, firefox, etc.  Hi guys!  Again, I have a complex question: is it possible to manage external stock? It would be important to be able to order only the existing quantity (e.g. 2pcs), but to show the quantity increased by a value stored in a custom field (e.g. extstore) and the quantity selector also uses this value (e.g. extstore value=4, so the full value is 6pcs)?  This would be important because I can't put what is in external stock into the order, I can only contact the customer via email (e.g. RSForm form).  This way I could manage the order itself (original quantity) and the enquiry (extstock quantity) in one interface.  My question would be how can I override the default quantity handler in hikashop, is there any solution?  Thanks in advance!")*

Hi,

Then, you can use a custom product field, and in a plugin, you can implement the onAfterLoadProductPrice event:
[ www.hikashop.com/support/documentation/6...fterLoadProductPrice](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#onAfterLoadProductPrice)
In $element, you have either an object of a product and you can change $element-&gt;product_quantity to what you want, or you have an array of product objects and you can loop on the array to change product_quantity on all of them.

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

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

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

Less More

- Posts: 23
- Thank you received: 5
-
-

1 year 8 months ago [\#365891](#365891) by [mizso676](/forum/user/82243-mizso676 "View mizso676's Profile")  Replied by *[mizso676](/forum/user/82243-mizso676 "View mizso676's Profile")* on topic *[external store quantity override](/forum/27-checkout/909196-external-store-quantity-override#365891 "-- HikaShop version -- : 5.1.0 -- Joomla version -- : 5.2.2 -- PHP version -- : 8.1.28 -- Browser(s) name and version -- : chrome latest, firefox, etc.  Hi guys!  Again, I have a complex question: is it possible to manage external stock? It would be important to be able to order only the existing quantity (e.g. 2pcs), but to show the quantity increased by a value stored in a custom field (e.g. extstore) and the quantity selector also uses this value (e.g. extstore value=4, so the full value is 6pcs)?  This would be important because I can't put what is in external stock into the order, I can only contact the customer via email (e.g. RSForm form).  This way I could manage the order itself (original quantity) and the enquiry (extstock quantity) in one interface.  My question would be how can I override the default quantity handler in hikashop, is there any solution?  Thanks in advance!")*

Thanks for your help!

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

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