You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hi,
I have just noticed that the product options textbox doesn't allow me to enter a percent symbol "%" so if a customer types in "100% excellent" or some such thing it will just crash out..
What is the best way to correct this behaviour?
Cheers,
Bruce.
Offline
I misunderstood your issue. I read it as if it was giving you trouble when adding a new option (assumed select option with the % in a selection item name), although that shouldn't have mattered. I'll look into this for you.
Offline
What you could do is to find where the program stores the customer's input after they submit it and scan it for a match of the % symbol.
If that's found, replace it with "percent".
Of course I don't know how easy it would be...
Offline
Hi Graham,
It doesn't get that far, they get a screen 405 error if there is a percent symbol in any product text box (although that error has been modded to just serve a blank page). So we get a phone call saying they can't place an order...
Cheers,
Bruce.
Offline
I cannot replicate this. Here is a V8 product set up with text input:
https://kryptronic.com/demo/Item/Custom … Guitar-Rig
Here is a V9 product offer set up with text input (temporarily, dev updates pretty randomly):
https://kryptronic.com/DEV/public/Item/ … tar-Tuning
I can enter anything (including % signs) in those boxes and have no issues.
Offline
I think you may need to remove the function swapImage() and see if you still have the issue.
That function is causing a javascript error
Offline
Hi zanart,
Nope that didn't help....mmm...
OK it might be the character set has been changed to latin1_swedish_ci can I change this to latin1_bin or utf8_bin without breaking it?
Or.. What is the correct way to change the Character set? and what is the worst case scenario?
Cheers,
Bruce.
Offline
Assuming encoding changed on the server (Apache). The way to update this is to set the encoding in Apache config. I believe this can be done on the site level. Not sure if this can be done via .htaccess. If I had a choice, I'd go with UTF-8 or ISO-8859-1.
Offline
Your site hasn't been loading for the last few days so I can't check again, however when I last looked, you had a missing variable in the swapImage function that was causing all js to error.
Offline
@zanart: Hope you were referring to west4's site as ours is up 24/7. I think there had to be a problem with some JS mods there or something as stock I can't trip it up.
Offline
Yes I was referring to West4's site. However it is very strange. West4's site will not load when accessed via my Sky Broadband, but will load via 4G or BT broadband even on the same computers. Router has been rebooted so don't know why it has been locked out.
Offline
Hi,
So I have deleted the banner code with the swapimage function in and it still happens. OH I just noticed it happens in the back end as well, if I put the % symbol in a text box for a product description....
As for not showing on Sky Broadband I will have to look into this as the site has been up for months without a server reboot.
Cheers,
Bruce.
Offline
West4 - Your site blocks my IP if I try to edit your HTML using firefox developer tools
I would get rid of this code to see if anything changes as you have an img tag in the head section
<script type="text/javascript" src="http://www.saas-eue-1.com/js/55695.js" ></script> <noscript><img src="http://www.saas-eue-1.com/55695.png" style="display:none;" /></noscript>
You also have a syntax error in the inline style for the price display. This will be causing an error.
Offline
You still have this error
<td class="ecom_pricedisp" style="color:red"; "font-weight:bold">
which should be
<td class="ecom_pricedisp" style="color:red;font-weight:bold">
Offline
Every time you add a % symbol in the text box you get this error:
"NetworkError: 406 Not Acceptable - http://www.westfield4schools.co.uk/index.php"
Offline
Thanks Zanart, I had spotted and fixed that error...
So It might be character set then???
will try UTF-8 and see if that makes a difference.
Cheers,
Bruce.
Offline
"NetworkError: 406 Not Acceptable - http://www.westfield4schools.co.uk/index.php"
Check with the host on this. They are failing the request based on thinking it's malicious.
Offline