Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Credit Class & Gift Voucher Parse Error


shanks73

Recommended Posts

Hello,

 

This one is most probably a simple one. I have been away from php for a while now due to building an extension to my house.

 

I am getting a parse error in the /catalog/includes/classes/payment.php

 

The code I have is exactly as in the text file.

 

 if (is_array($this->modules)) {
       if ($coversAll) {
         $addThis='if (document.checkout_payment.cot_gv.checked) {
           payment_value='cot_gv';
         } else ';
       } else {
         $addThis='';
       }

 

My problem is parsing the payment_value='cot_gv'; line.

 

Thanks

 

Tom

Link to comment
Share on other sites

Have you thought of changing it to

 

payment_value="cot_gv";

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

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...