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

#   price

##

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 7 months ago [\#95610](#95610) by [krhin07](/forum/user/12968-krhin07 "View krhin07's Profile")  *[price](/forum/4-how-to/79520-price#95610 "Hi  I need to know in which file I can find this .js function  function hikashopModifyQuantity(id,obj,add,form,type,moduleid){ var d = document, cart&#95;type=&quot;cart&quot;, addStr=&quot;&quot;, qty=1, e = null; if(type) cart&#95;type = type;...  It is shown in  html tag of my product page.It is probably connected with ajax input field for quantity.")* was created by *[krhin07](/forum/user/12968-krhin07 "View krhin07's Profile")*

Hi

I need to know in which file I can find this .js function

function hikashopModifyQuantity(id,obj,add,form,type,moduleid){
var d = document, cart_type="cart", addStr="", qty=1, e = null;
if(type) cart_type = type;...

It is shown in &lt;head&gt; html tag of my product page.It is probably connected with ajax input field for quantity.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5NTIwLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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)
-

13 years 7 months ago [\#95641](#95641) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[price](/forum/4-how-to/79520-price#95641 "Hi  I need to know in which file I can find this .js function  function hikashopModifyQuantity(id,obj,add,form,type,moduleid){ var d = document, cart&#95;type=&quot;cart&quot;, addStr=&quot;&quot;, qty=1, e = null; if(type) cart&#95;type = type;...  It is shown in  html tag of my product page.It is probably connected with ajax input field for quantity.")*

Hi,

This function is in the helper cart.
'administrator/components/com_hikashop/helpers/cart.php'

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5NTIwLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 7 months ago [\#95675](#95675) by [krhin07](/forum/user/12968-krhin07 "View krhin07's Profile")  Replied by *[krhin07](/forum/user/12968-krhin07 "View krhin07's Profile")* on topic *[price](/forum/4-how-to/79520-price#95675 "Hi  I need to know in which file I can find this .js function  function hikashopModifyQuantity(id,obj,add,form,type,moduleid){ var d = document, cart&#95;type=&quot;cart&quot;, addStr=&quot;&quot;, qty=1, e = null; if(type) cart&#95;type = type;...  It is shown in  html tag of my product page.It is probably connected with ajax input field for quantity.")*

Hi again

Thanks for reply, but I still need a little help on this one.

Just need simple addition to productpage, but since I am not so in coding, cant do it on my own.

I have done product set-up with options and characteristics and prices differ also based on quantity, so my product has p.e. 5 variants of wich everyone has 5 different prices for quantities.
Since Prices are very small (even to 5 decimals) I dont want them shown on product page. So I've hiden them in Hikashop configuration.
In listing view, products have no prices - prices are not shown, I show prices only on product page.
Since I have prices per quantity for every variant, I don't want to display all of them, just final one that will go in the cart.

Now I need a simple javascript function that will grab price defined with characteristics of a product, and multiply it with the quantity entered by user in quantity field, then display it in div added p.e. in product_show_default view. Is it posible to achieve it that way or I am misleaded?

It seems to me that all vars are gathered once when user press 'add to cart' button, but I need final price to be shown real time.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5NTIwLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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)
-

13 years 7 months ago [\#95744](#95744) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[price](/forum/4-how-to/79520-price#95744 "Hi  I need to know in which file I can find this .js function  function hikashopModifyQuantity(id,obj,add,form,type,moduleid){ var d = document, cart&#95;type=&quot;cart&quot;, addStr=&quot;&quot;, qty=1, e = null; if(type) cart&#95;type = type;...  It is shown in  html tag of my product page.It is probably connected with ajax input field for quantity.")*

Hi,

It can be possible, all the prices are stocked in the object "$this-&gt;element-&gt;prices", so when the user enter the quantity in the quantity field, you call a js function.
Depending on the quantity, you can use one or another one price present in the previously given object.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5NTIwLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 20
- Thank you received: 0
-
-

13 years 7 months ago [\#95756](#95756) by [krhin07](/forum/user/12968-krhin07 "View krhin07's Profile")  Replied by *[krhin07](/forum/user/12968-krhin07 "View krhin07's Profile")* on topic *[price](/forum/4-how-to/79520-price#95756 "Hi  I need to know in which file I can find this .js function  function hikashopModifyQuantity(id,obj,add,form,type,moduleid){ var d = document, cart&#95;type=&quot;cart&quot;, addStr=&quot;&quot;, qty=1, e = null; if(type) cart&#95;type = type;...  It is shown in  html tag of my product page.It is probably connected with ajax input field for quantity.")*

hi
How can I call right price in Java script in this case:

var price= '&lt;php $this-&gt;product-&gt;price ?&gt;';

Sorry, first time working with javascript with php

thanks a lot

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5NTIwLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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)
-

13 years 7 months ago [\#95758](#95758) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[price](/forum/4-how-to/79520-price#95758 "Hi  I need to know in which file I can find this .js function  function hikashopModifyQuantity(id,obj,add,form,type,moduleid){ var d = document, cart&#95;type=&quot;cart&quot;, addStr=&quot;&quot;, qty=1, e = null; if(type) cart&#95;type = type;...  It is shown in  html tag of my product page.It is probably connected with ajax input field for quantity.")*

Sorry but it's a support forum, we are here to help for configuration, or correct in case of bugs.
For the customizations, we can give you a direction but no more.

If you don't have the knowledge of these languages, thanks to ask to a third developer, or post a request on the commercial jobs section of this forum.

Hope you understand.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc5NTIwLXByaWNlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.071 seconds

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