Jump to content
Sign in to follow this  
lalelunet

ShowNewPrice

Recommended Posts

This is a great contrib. Is there anyway, perhaps in the javascript file, to make the "Total" box read-only. Because right now you can delete that number, write whatever number you want in there, etc.

Share this post


Link to post
Share on other sites

Also, are you able to, now that some time has passed, update the contrib to support negative (-) values? That would be fantastic...

Share this post


Link to post
Share on other sites
This is a great contrib. Is there anyway, perhaps in the javascript file, to make the "Total" box read-only. Because right now you can delete that number, write whatever number you want in there, etc.

 

You can do this by set the textbox to readonly. At the end of the hilfe.php you find the output from the text-field (see below)

 

echo '<p align=center>TOTAL: '.$currencies->currencies[$currency]['symbol_left'].'<input class=Feld type="text" name="OrderTotal" size="10">'.$currencies->currencies[$currency]['symbol_right'].'</p><br>';

 

Just add the readonly attribute (readonly="readonly") and the box is "protected"...

 

echo '<p align=center>TOTAL: '.$currencies->currencies[$currency]['symbol_left'].'<input class=Feld type="text" name="OrderTotal" size="10" readonly="readonly">'.$currencies->currencies[$currency]['symbol_right'].'</p><br>';

 

I will include this in the next version.


Greetings Thomas

Share this post


Link to post
Share on other sites

Hi

 

This contribution is exactly what we were looking for thank you.

 

I have the problem though that if a product is valued at over ?1000 then the total box displays 'NaN.Na' I have used version 1.5 and have checked that my code does include the line:

 

$products_price = preg_replace("/,/","",$products_price); // for prices greater than 999.999

 

Any help would be greatly appreciated.

 

Thanks

Share this post


Link to post
Share on other sites

Can anyone tell me if this script still only works with positive option values only?

Thanks!


Kendall

Brooklyn, New York USA

Share this post


Link to post
Share on other sites
Can anyone tell me if this script still only works with positive option values only?

Thanks!

 

Still only positive values. There is currently no free time available to developing at this script. Sorry.

:(

Greetings Thomas


Greetings Thomas

Share this post


Link to post
Share on other sites
Still only positive values. There is currently no free time available to developing at this script. Sorry.

:(

Greetings Thomas

 

 

So if you choose a value lets say adds 3 bucks to the price, if you switch back to the original option set, it wont take the 3 bucks back off?

Share this post


Link to post
Share on other sites

and in line 30

in product_info.php

is

 

<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" onload="Total();">

Share this post


Link to post
Share on other sites

Hi there

 

I just installed the latest version of this contribution and i get the following JS errors....

Line: 318
Char: 9
Error: Sytax error
Code: 0
URL: http://mystore.com/product_info.php?cPath=2_18&products_id=27

 

any ideas wot i am doing wrong? :thumbsup:

 

ta

 

Lin

Share this post


Link to post
Share on other sites

Ok...excuse my stupidity...have solved that problem...(managed to miss an entire block of code :rolleyes: ) but i now have the NaN.Na error and the product is only ?75. i have checked the code as above and it seems to be ok. any ideas?

Share this post


Link to post
Share on other sites

Hi,

 

the contrib works fine but it

changes the order in some (not all) the option pulldown.

 

We have option yes and no.

 

- "No" is 0 Eur

- " yes" is xx.xx Eur

 

In some cases now the yes option is default.

 

Do someone know why this happens ?

 

Bet Regards from Germany

 

Michael

Share this post


Link to post
Share on other sites

ive installed this and everything works ok except for the fact that i cannot add anything to my cart, it just takes me there but doesnt add the product, any ideas or alternatives to this contrib, ive seen another one but it only works with euro or usd not gbp.

 

cheers

 

chris

Share this post


Link to post
Share on other sites
ive installed this and everything works ok except for the fact that i cannot add anything to my cart, it just takes me there but doesnt add the product, any ideas or alternatives to this contrib, ive seen another one but it only works with euro or usd not gbp.

 

cheers

 

chris

 

I have same problem. somebody know solution

 

thanks

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×