- Posts: 20
- Thank you received: 0
price
13 years 7 months ago #95610
by krhin07
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 <head> html tag of my product page.It is probably connected with ajax input field for quantity.
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 <head> html tag of my product page.It is probably connected with ajax input field for quantity.
Please Log in or Create an account to join the conversation.
13 years 7 months ago #95675
by krhin07
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.
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 or Create an account to join the conversation.
13 years 7 months ago #95744
by Xavier
Hi,
It can be possible, all the prices are stocked in the object "$this->element->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.
It can be possible, all the prices are stocked in the object "$this->element->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 or Create an account to join the conversation.
13 years 7 months ago #95756
by krhin07
hi
How can I call right price in Java script in this case:
var price= '<php $this->product->price ?>';
Sorry, first time working with javascript with php
thanks a lot
How can I call right price in Java script in this case:
var price= '<php $this->product->price ?>';
Sorry, first time working with javascript with php
thanks a lot
Please Log in or Create an account to join the conversation.
13 years 7 months ago #95758
by Xavier
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.
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 or Create an account to join the conversation.
Time to create page: 0.128 seconds