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