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

#   Integration of the stock inside a page builder

##

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

Less More

- Posts: 143
- Thank you received: 9
-
-

3 years 11 months ago [\#346693](#346693) by [ButterflyPixel](/forum/user/31098-butterflypixel "View ButterflyPixel's Profile")  *[Integration of the stock inside a page builder](/forum/32-content-creation/905371-integration-of-the-stock-inside-a-page-builder#346693 "Hi, we created some pages with , we use them to describe the product we sell. We would like to show inside each page the stock available. Is there a way to integrate the stock inside a module or directly in raw code ? Thanks !")* was created by *[ButterflyPixel](/forum/user/31098-butterflypixel "View ButterflyPixel's Profile")*

Hi,
we created some pages with [ SP Page Builder](https://www.joomshaper.com/page-builder), we use them to describe the product we sell.
We would like to show inside each page the stock available.
Is there a way to integrate the stock inside a module or directly in raw code ?
Thanks !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vOTA1MzcxLWludGVncmF0aW9uLW9mLXRoZS1zdG9jay1pbnNpZGUtYS1wYWdlLWJ1aWxkZXI/dG1wbD1tYXJrZG93bg==) 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: 86358
- Thank you received: 14293
-
-

3 years 11 months ago [\#346698](#346698) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Integration of the stock inside a page builder](/forum/32-content-creation/905371-integration-of-the-stock-inside-a-page-builder#346698 "Hi, we created some pages with , we use them to describe the product we sell. We would like to show inside each page the stock available. Is there a way to integrate the stock inside a module or directly in raw code ? Thanks !")*

Hi,

If you're able to add raw PHP code in there, then you can use this: Code:

&lt;?php if(!@include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){ return false; } $productClass = hikashop_get('class.product'); $product = $productClass-&gt;get(XX); echo $product-&gt;product_quantity; ?&gt;

where XX is the id of the product.
Basically, I'm using here a code sample from there: [ www.hikashop.com/support/documentation/6...umentation.html#code](https://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#code)

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

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