Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

about CCGV v5.20a


ys4uno

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by BryceJr
Link to comment
Share on other sites

  • 3 weeks later...
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='';

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...