Forum Replies Created
-
AuthorPosts
-
sorroMember
AFAIK, WP Fastest Cache doesn’t have an option to reject/exclude cookies.
April 3, 2014 at 2:47 pm in reply to: Custom Price Feature – Please specify a minimum amount of XX #62048sorroMemberThanks a lot, that is a huge help.
Now that I know where this is coming from, I have a slightly different idea re. changing the eStore_custom_price_validated function. Would it be possible to rewrite line 145 of “lib/eStore_read_form.js” to integrate/take into account price variations with custom price?
Something like:
if(isset(price_variation)) {
if (price_variation < min_amt) {
alert(JS_WP_ESTORE_MINIMUM_PRICE_YOU_CAN_ENTER + min_amt);
return false;
}
else {
return true;
}
elseif (isNaN(custom_price) || custom_price < min_amt) {
alert(JS_WP_ESTORE_MINIMUM_PRICE_YOU_CAN_ENTER + min_amt);
return false;
}
else {
return true;
}
}
Does object1 passed to this function contain any information about the *price_variation* selected? (Something like object1.selected_price_variation)
Thanks a lot again for all your help.
April 3, 2014 at 11:08 am in reply to: Custom Price Feature – Please specify a minimum amount of XX #62046sorroMemberThanks for your reply. Yes, I have tried that and when they enter an amount in the custom price is works.
However, entering something it an annoying restriction for my customers. If they choose a variation (which already has a price associated), they should NOT have to enter anything as custom price! In other words, I want them to either be able to choose a variation (without a custom price) OR enter a custom price and then the variation should be ignored.
It is basically for making a donation, where customers can choose between fixed donation amounts OR specify their own amount.
How can this be achieved?
Btw, if this involves PHP coding, that’s fine. I’d just need to know where exactly to edit. For my project, I am perfectly happy with turning off the error message (minimum amount) completely. Where would I go to turn it off?
Thanks.
-
AuthorPosts