Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
msquared
msquared
I have four sites, three on one server, one site on another, two sites working on my server, one isn't and the other site hosted elsewhere also not working.
 
Problem, change quantity in Basket page or remove item from basket you should receive pop-up message advising of changes?
 
What I have found, I believe is the problem but cannot fix it?
I used a compare program to find the problem or identify the the differences between a working and none working site.
 
NONE WORKING SITE
Go to messages, search "Alter" brings up "ALTER_CART_QTY_JS"
Contents is:
You are about to alter the quantity of \n'{product_name}' from '{old_quantity}' to '{new_quantity}'\nContinue?
 
Working Site:
Go to messages, search "Alter" brings up "ALTER_CART_QTY_JS"
Contents is:
You are about to alter the quantity of \\n'{product_name}' from '{old_quantity}' to '{new_quantity}'\\nContinue?
 
You Will Notice the lack of a "\" which I cannot add, it reverts back to a single "\" not "\\" when I save, this is the same for the "CART_QTY_ZERO_JS".
 
The only thing I have done is changed all references from "Cart" to "Basket" and was very careful in doing so.
 
Any advise please, this dilemma has been going on forever and I have only just found the cause, Viart recommended changing the JS files some weeks ago so I upgraded all sites all to no avail.
 
Thank you in advance.
Msquared
 
msquared
msquared
I have since tested further on a working site, the moment I change cart to basket and save the message it removes the second \
 
After:
You are about to change the quantity from '{old_quantity}' to '0'.\nThis will remove '{product_name}' from your basket.\nContinue?
 
Before:
You are about to change the quantity from '{old_quantity}' to '0'.\\nThis will remove '{product_name}' from your cart.\\nContinue?
 
I have searched the database via phpadmin and I cant find it to edit it directly so can anyone tell me how find or amend so that I can save it with the two \\ and then I am hoping this will fix the problem.
 
Thanks
 
msquared
msquared
Nice of everyone to respond?
 
Well for those who have not discovered this problem, I found and fixed it by editing the cart_messages.php and adding back the missing "\".
Saved the file to the server and my word, "Yes" it works and I can not believe how many days and hours I have spent looking and asking about this problem.
 
So, anyone suffering the same fate, I hope you find this post to save you the stress I had to endure.
 
Regards
Msquared
 
SajMalik
SajMalik
Hi msquared - I do sympathise. I could not provide an answer otherwise I would have been delighted to help.
But I do wonder why you did not just open a support ticket and save the anguish?
 
msquared
msquared
Hi christopherO,
Thank you for your comments, I did have a support ticket running, not once but twice all too no avail?
 
That is why I was kind hoping in circulation on the forum I might get someone else's take on it who might have had the problem?
 
Frustrating problem, but once fixed incredibly relieved, especially this one that dragged on forever.
 
I hope my efforts can save someone else the frustrations and time I had to spend in resolving it.
 
DickS
DickS
Excellent ovservation.
 
In addition, ever tried editing the java messages via the built in Viart editor?
 
If you do that, the "\" are removed and they no longer work!
 
Cheers!
 
DickS
 
msquared
msquared
Thank You Dicks,
I will keep this in mind for future reference, I am becoming very knowledgeable with the Viart system as a result of the problems, but I am under pressure to deliver so I need to get the sites up before I explore and learn.
 
Regards
Msquared