Open Source Services

Development Services and Products for Open Source e-Commerce Sites

 
Welcome, Guest
Please Login or Register.    Lost Password?

easyCommentz v0.1.1 - erroes
(1 viewing) (1) Guest
Support forum for the free easyCommentz comments and feedback system for osCommerce available from the osCommerce contributions site.
Go to bottomPage: 12
TOPIC: easyCommentz v0.1.1 - erroes
#546
Re:easyCommentz v0.1.1 - erroes 2 Years, 1 Month ago  
Hello,

I had the same problem, but solved it by changing a product name that had a quote in it. For example: digital camera "Nikon"

So you get something like this in youre javascript code: product_names[1]= "digital camera "Nikon"";
abdel
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#547
Re:easyCommentz v0.1.1 - erroes 2 Years, 1 Month ago  
Hi Guys

First of all, thank you to abdel for identifying what was causing the problem. I have made a fix for it so you can now include double quotes in your product names if necessary.

So for both of you, here's the fix:

Open the file catalog/admin/comment8r.php

Look at (around) line 122, and you should find this line:

Code:

echo 'product_names['.$i.']= "'. $arr_model_info[$i] .'";';


REPLACE the line above with this line:

Code:

echo 'product_names['.$i.']= "'. str_replace('"', '\"',$arr_model_info[$i]) .'";';


save the file and test.

thanks again.

Nick
hanuman
Moderator
Posts: 369
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12