Value Definition


  • Default avatar
    shelize    
     12 years ago
    0

    I am attempting to setup my first coupon using this software yet I cannot seem to get the Value Definition submit button to work. I have searched the forum and found some information saying I should paste the following code into a administrator/components/com_awocoupon/assets/js/coupon_cumulative_value.js

    if (typeof Object.keys != 'function') {
    Object.keys = function(obj) {
    if (typeof obj != "object" && typeof obj != "function" || obj == null) {
    throw TypeError("Object.keys called on non-object");
    }
    var keys = [];
    for (var p in obj) obj.hasOwnProperty(p) &&keys.push(p);
    return keys;
    }
    }

    I have done this but alas I it does not work. I am still getting a button that will not work. Any help would be great.
  • Your avatar
    seyi    
     12 years ago
    0

    Welcome to the forum.

    What browser are you using? And are you using the latest version of AwoCoupon?
  • Default avatar
    shelize    
     12 years ago
    0

    I am using both Explorer 9 (with and without compt) and Firefox. AWO Installed Version:

    1.4.1
  • Your avatar
    seyi    
     12 years ago
    0

    Yes, I was able to reproduce this also. But after adding the lines at the end of coupon_cumulative_value.js that you referred to, the submit button worked. Have you tried clearing cache to make sure it is not still loading the old js file?