ys4uno Posted October 16, 2008 Share Posted October 16, 2008 hello , i am very pretty new on oscommerce and have very basic knowledge about php, currently i try to run a oscommerce store, and tried to intall some useful addons . i find CCGV and intalled on my oscommerce. but after installation , when i click " Check Out " button, on the payment page, it shows me the following messgae: Parse error: syntax error, unexpected T_STRING in /home/aovieu/public_html/includes/classes/payment.php on line 91 any idea about how this happened ? and how to fix it ? many thanks for the help Quote Link to comment Share on other sites More sharing options...
ys4uno Posted October 17, 2008 Author Share Posted October 17, 2008 any help please Quote Link to comment Share on other sites More sharing options...
BryceJr Posted October 17, 2008 Share Posted October 17, 2008 Post line 85-97 of payment.php (includes/classes) Quote Link to comment Share on other sites More sharing options...
ys4uno Posted October 17, 2008 Author Share Posted October 17, 2008 here, i post the line between 82-97 ,in payment.php (include/class) // Start - CREDIT CLASS Gift Voucher Contribution // function javascript_validation() { function javascript_validation($coversAll) { //added the $coversAll to be able to pass whether or not the voucher will cover the whole //price or not. If it does, then let checkout proceed when just it is passed. $js = ''; if (is_array($this->modules)) { if ($coversAll) { $addThis='if (document.checkout_payment.cot_gv.checked) { line 91=> payment_value='cot_gv'; } else '; } else { $addThis=''; } // End - CREDIT CLASS Gift Voucher Contribution Quote Link to comment Share on other sites More sharing options...
ys4uno Posted October 17, 2008 Author Share Posted October 17, 2008 anyone can give some help :D :rolleyes: Quote Link to comment Share on other sites More sharing options...
ys4uno Posted October 18, 2008 Author Share Posted October 18, 2008 need some help §§§ Quote Link to comment Share on other sites More sharing options...
BryceJr Posted October 19, 2008 Share Posted October 19, 2008 I compared yours with the original. I don't see the syntax error. Quote Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2008 Share Posted October 19, 2008 I compared yours with the original. I don't see the syntax error. My older version has payment_value=cot_gv; alert (\'hey yo\'); Quote Link to comment Share on other sites More sharing options...
BryceJr Posted October 19, 2008 Share Posted October 19, 2008 (edited) CCGV5.19 bug fix2 19 Jan 2008 there is a erro in CCGV5.19 in catalogincludesclassespayment.php line 89 if ($coversAll) { $addThis='if (document.checkout_payment.cot_gv.checked) { payment_value=cot_gv; alert ('hey yo'); } else '; } else { $addThis=''; } it will case not get payment value change to if ($coversAll) { $addThis='if (document.checkout_payment.cot_gv.checked) { payment_value='cot_gv'; } else '; } else { $addThis=''; } If older versions work, maybe they will. Use whatever works. Edited October 19, 2008 by BryceJr Quote Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2008 Share Posted October 19, 2008 CCGV5.19 bug fix2 19 Jan 2008 Thanks, but mine works without the bug fix, version CCGV 5.14 and Jonyo mods. Quote Link to comment Share on other sites More sharing options...
tswern Posted November 8, 2008 Share Posted November 8, 2008 My older version has payment_value=cot_gv; alert (\'hey yo\'); Maybe we need to escape the " ' " character. Why not try this adding a "\" in front of both " ' " on line number 91? : if ($coversAll) { $addThis='if (document.checkout_payment.cot_gv.checked) { payment_value=\'cot_gv\'; } else '; } else { $addThis=''; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.