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

#   Loading price of a product to a different module

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 1 month ago [\#248859](#248859) by [Strmy](/forum/user/43987-strmy "View Strmy's Profile")  *[Loading price of a product to a different module](/forum/31-development/886223-loading-price-of-a-product-to-a-different-module#248859 "Hi, iam developing just small module for our hikashop and Iam littlebit lost with a way how to load a price of viewed product into the module thats all i need.  The purpose of this module is just to open loan calculator with predefined price form our site.  Iam no PhP guru, and iam sorry for my english its not my native language.  Thank you for your response")* was created by *[Strmy](/forum/user/43987-strmy "View Strmy's Profile")*

Hi, iam developing just small module for our hikashop and Iam littlebit lost with a way how to load a price of viewed product into the module thats all i need.

The purpose of this module is just to open loan calculator with predefined price form our site.

Iam no PhP guru, and iam sorry for my english its not my native language.

Thank you for your response

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

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 1 month ago [\#248889](#248889) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Loading price of a product to a different module](/forum/31-development/886223-loading-price-of-a-product-to-a-different-module#248889 "Hi, iam developing just small module for our hikashop and Iam littlebit lost with a way how to load a price of viewed product into the module thats all i need.  The purpose of this module is just to open loan calculator with predefined price form our site.  Iam no PhP guru, and iam sorry for my english its not my native language.  Thank you for your response")*

Hi,

So in which file exactly do you want to load the price ?

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 1 month ago [\#248911](#248911) by [Strmy](/forum/user/43987-strmy "View Strmy's Profile")  Replied by *[Strmy](/forum/user/43987-strmy "View Strmy's Profile")* on topic *[Loading price of a product to a different module](/forum/31-development/886223-loading-price-of-a-product-to-a-different-module#248911 "Hi, iam developing just small module for our hikashop and Iam littlebit lost with a way how to load a price of viewed product into the module thats all i need.  The purpose of this module is just to open loan calculator with predefined price form our site.  Iam no PhP guru, and iam sorry for my english its not my native language.  Thank you for your response")*

The file is new mod. mod_essox.php

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

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 1 month ago [\#248918](#248918) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Loading price of a product to a different module](/forum/31-development/886223-loading-price-of-a-product-to-a-different-module#248918 "Hi, iam developing just small module for our hikashop and Iam littlebit lost with a way how to load a price of viewed product into the module thats all i need.  The purpose of this module is just to open loan calculator with predefined price form our site.  Iam no PhP guru, and iam sorry for my english its not my native language.  Thank you for your response")*

Hi,

So in that case, you need to do something like that: Code:

//load HikaShop if not already loaded if(!defined('DS')) define('DS',DIRECTORY_SEPARATOR); if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true; //get product id $product_id = (int)hikashop_getCID('product_id'); if(empty($product_id )) return true; // load product $productClass = hikashop_get('class.product'); $product = $productClass-&gt;get($product_id); if(empty($product )) return true; //load prices $currencyClass = hikashop_get('class.currency'); $config = hikashop_config(); $ids = array($product_id); $currencyClass-&gt;getPrices($product,$ids,hikashop_getCurrency(),(int)$config-&gt;get('main_currency',1), hikashop_getZone(null),(int)$config-&gt;get('discount_before_tax',0)); // display the first price of the product echo $product-&gt;prices[0]-&gt;price_value;

The following user(s) said Thank You: [Strmy](/forum/user/43987-strmy "View Strmy's Profile")

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

10 years 1 month ago [\#248962](#248962) by [Strmy](/forum/user/43987-strmy "View Strmy's Profile")  Replied by *[Strmy](/forum/user/43987-strmy "View Strmy's Profile")* on topic *[Loading price of a product to a different module](/forum/31-development/886223-loading-price-of-a-product-to-a-different-module#248962 "Hi, iam developing just small module for our hikashop and Iam littlebit lost with a way how to load a price of viewed product into the module thats all i need.  The purpose of this module is just to open loan calculator with predefined price form our site.  Iam no PhP guru, and iam sorry for my english its not my native language.  Thank you for your response")*

Thank you so much. thats all what i needed. Problem solved

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

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

[](#top)
