Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bingking

Members
  • Content count

    1
  • Joined

  • Last visited

  1. bingking

    ### POINTS AND REWARDS MODULE V1.00 ###

    Okay perfect mod for me, but... when i want to do step 4: CATALOG STEP = 4. open catalog/checkout_payment.php This will add the java script alart checking the box for invalid character. as well as allow points to use as payment method. Find this.... (aprox. line no.89 the) var selected; ..and add this above it....... /* Points/Rewards Module V1.50 bof*/ function clearText(thefield){ if (thefield.defaultValue==thefield.value) thefield.value = "" } function validate(field) { var valid = "0123456789.," var ok = "yes"; var temp; for (var i=0; i<field.value.length; i++) { temp = "" + field.value.substring(i, i+1); if (valid.indexOf(temp) == "-1") ok = "no"; } if (ok == "no") { alert("<?php echo REDEEM_SYSTEM_JS_ERROR; ?>"); field.focus(); field.select(); } } var submitter = null; function submitFunction() { submitter = 1; } /* Points/Rewards Module V1.50 eof*/ in the file catalog/checkout_payment.php i cant find the var selected; alsow (maybe it has to do with it) when i place a test order i cant pay with my points.. (i do have points) has it anything to do that i have installed the template mod?? or is there a fix? can anybody help me?
×