Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Gift Voucher 4.1 Problems...


Guest

Recommended Posts

Posted

I updated from 4.0 to 4.1 today and I am experiencing the following problems:

 

1. If I have free shipping enabled, when I try to 'buy' something else from my store, it brings up the free shipping module along with item (which is what I wanted to use for the other items in my store when it goes live)

 

2. When I attempt to purchase another item, I get the gift voucher box with a checkbox and instructions to tick if I want to use my credits, but when I do so and click continue, I get a message to select a payment method

 

Can anyone help me, please? Thanks! :)

Posted

Are you sure you have updated all of the shipping modules to those included in the contribution. Same goes for the payment method problem.

 

I've tested all of this on a clean install of the Credit Class code and have no problems/

Trust me, I'm an Accountant.

Posted

Well, I just re-uploaded all of the payment and shipping files from the contribution folders just to make sure and I am now getting this error on the catalog side:

Fatal error: Call to undefined function: javascript_validation() in /usr/local/psa/home/vhosts/gifts-bargains-more.com/httpdocs/catalog/includes/classes/payment.php on line 82

this is what's around and including line 82:

// class methods

   function javascript_validation() {

     $js = '';

     if (is_array($this->modules)) {

       $js = '<script language="javascript"><!-- ' . "n" .

             'function check_form() {' . "n" .

             '  var error = 0;' . "n" .

             '  var error_message = "' . JS_ERROR . '";' . "n" .

             '  var payment_value = null;' . "n" .

             '  if (document.checkout_payment.payment.length) {' . "n" .

             '    for (var i=0; i<document.checkout_payment.payment.length; i++) {' . "n" .

             '      if (document.checkout_payment.payment[i].checked) {' . "n" .

             '        payment_value = document.checkout_payment.payment[i].value;' . "n" .

             '      }' . "n" .

             '    }' . "n" .

             '  } else if (document.checkout_payment.payment.checked) {' . "n" .

             '    payment_value = document.checkout_payment.payment.value;' . "n" .

             '  } else if (document.checkout_payment.payment.value) {' . "n" .

             '    payment_value = document.checkout_payment.payment.value;' . "n" .

             '  }' . "nn";



       reset($this->modules);

       while (list(, $value) = each($this->modules)) {

         $class = substr($value, 0, strrpos($value, '.'));

         if ($GLOBALS[$class]->enabled) {

           $js .= $GLOBALS[$class]->javascript_validation();//this the actual line 82

         }

       }

and these on the admin:

 

Warning: Unable to access /usr/local/psa/home/vhosts/gifts-bargains-more.com/httpdocs/catalog/includes/languages/english/modules/payment/sample.php in /usr/local/psa/home/vhosts/gifts-bargains-more.com/httpdocs/admin/modules.php on line 120

 

Warning: Failed opening '/usr/local/psa/home/vhosts/gifts-bargains-more.com/httpdocs/catalog/includes/languages/english/modules/payment/sample.php' for inclusion (include_path='.:/usr/local/psa/apache/lib/php') in /usr/local/psa/home/vhosts/gifts-bargains-more.com/httpdocs/admin/modules.php on line 120

Posted

You probably have an old saple module hanhing around your payment directory.

 

Try deleting

 

catalog/includes/modules/payment/sample.php

Trust me, I'm an Accountant.

Posted

Ok, i deleted the sample.php file and that took care of the problem on the admin side. However, I am still getting the error on the catalog side.

 

It's been a lonng day :shock:

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...