SHARE
TWEET

ez Form Calculator - Discount Example

a guest Jan 23rd, 2015 613 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {"form":{"id":"16","name":"Discount Example"},"elements":[{"id":"124","f_id":"16","e_id":"7","data":"{\"e_id\":\"7\",\"name\":\"Numbers\",\"label\":\"Numbers\",\"required\":\"0\",\"calculate_enabled\":\"1\",\"factor\":\"\",\"value\":\"\",\"value_external\":\"\",\"min\":\"0\",\"max\":\"100\",\"slider\":\"1\",\"steps_slider\":\"10\",\"spinner\":\"0\",\"steps_spinner\":\"1\",\"calculate\":[{\"operator\":\"0\",\"target\":\"0\",\"value\":\"\"}],\"overwrite_price\":\"0\",\"calculate_before\":\"0\",\"conditional\":[{\"action\":\"show\",\"target\":\"3\",\"operator\":\"between\",\"value\":\"20:30\"},{\"action\":\"show\",\"target\":\"2\",\"operator\":\"between\",\"value\":\"31:40\"},{\"action\":\"show\",\"target\":\"1\",\"operator\":\"gre\",\"value\":\"41\"}],\"discount\":[{\"range_min\":\"20\",\"range_max\":\"30\",\"operator\":\"percent_sub\",\"discount_value\":\"10\"},{\"range_min\":\"31\",\"range_max\":\"40\",\"operator\":\"percent_sub\",\"discount_value\":\"20\"},{\"range_min\":\"41\",\"range_max\":\"\",\"operator\":\"percent_sub\",\"discount_value\":\"30\"}],\"placeholder\":\"\",\"class\":\"\",\"hidden\":\"0\",\"columns\":\"4\"}","position":"4"},{"id":"125","f_id":"16","e_id":"12","data":"{\"e_id\":\"12\",\"name\":\"10% Discount\",\"html\":\"10% Discount\",\"hidden\":\"0\",\"columns\":\"6\"}","position":"3"},{"id":"126","f_id":"16","e_id":"12","data":"{\"e_id\":\"12\",\"name\":\"20% Discount\",\"html\":\"20% Discount\",\"hidden\":\"0\",\"columns\":\"6\"}","position":"2"},{"id":"127","f_id":"16","e_id":"12","data":"{\"e_id\":\"12\",\"name\":\"30% Discount\",\"html\":\"30% Discount\",\"hidden\":\"0\",\"columns\":\"6\"}","position":"1"}],"options":[{"f_id":"16","o_id":"1","value":"","name":"email_recipient","type":""},{"f_id":"16","o_id":"2","value":"Thank you for your submission!","name":"success_text","type":""},{"f_id":"16","o_id":"3","value":"60","name":"spam_time","type":""},{"f_id":"16","o_id":"4","value":"1","name":"show_required_char","type":"yesno"},{"f_id":"16","o_id":"5","value":"$","name":"currency","type":""},{"f_id":"16","o_id":"6","value":"Price","name":"price_label","type":""},{"f_id":"16","o_id":"7","value":"0","name":"show_element_price","type":"yesno"},{"f_id":"16","o_id":"8","value":"1","name":"submission_enabled","type":"yesno"},{"f_id":"16","o_id":"9","value":"1","name":"show_price_position","type":"select,Hidden|Below|Above|Below and above|Fixed left|Fixed right"},{"f_id":"16","o_id":"10","value":"","name":"email_admin_sender","type":""},{"f_id":"16","o_id":"11","value":"Your submission","name":"email_subject","type":""},{"f_id":"16","o_id":"12","value":"Thank you for your submission, we will contact you soon!\r\n\r\n{{result}}","name":"email_text","type":"editor"},{"f_id":"16","o_id":"13","value":"New submission","name":"email_admin_subject","type":""},{"f_id":"16","o_id":"14","value":"You have received a new submission:\r\n\r\n{{result}}","name":"email_admin_text","type":"editor"},{"f_id":"16","o_id":"15","value":"Submit","name":"submit_text","type":""},{"f_id":"16","o_id":"16","value":"Add to cart","name":"submit_text_woo","type":""},{"f_id":"16","o_id":"17","value":"","name":"submit_button_class","type":""},{"f_id":"16","o_id":"18","value":"1","name":"email_show_total_price","type":"yesno"},{"f_id":"16","o_id":"19","value":"1","name":"theme","type":"themes"},{"f_id":"16","o_id":"20","value":"0","name":"currency_position","type":"select,Before|After"},{"f_id":"16","o_id":"21","value":"mm/dd/yy","name":"datepicker_format","type":""},{"f_id":"16","o_id":"22","value":"0","name":"pp_enabled","type":"yesno"},{"f_id":"16","o_id":"23","value":"Check out with PayPal","name":"pp_submittext","type":""},{"f_id":"16","o_id":"24","value":"Your submission","name":"email_subject_pp","type":""},{"f_id":"16","o_id":"25","value":"Thank you for your submission,\r\n\r\nwe have received your payment via PayPal.","name":"email_text_pp","type":"editor"},{"f_id":"16","o_id":"26","value":"We have received your payment, thank you!","name":"pp_paid_text","type":""},{"f_id":"16","o_id":"27","value":"","name":"redirect_url","type":""},{"f_id":"16","o_id":"28","value":"1","name":"submit_value_zero","type":"yesno"},{"f_id":"16","o_id":"29","value":"Your total value is 0. Please choose a product.","name":"submit_value_zero_text","type":""},{"f_id":"16","o_id":"30","value":"0","name":"mailchimp_add","type":"yesno"},{"f_id":"16","o_id":"31","value":"","name":"mailchimp_list","type":"mailchimp_list"},{"f_id":"16","o_id":"32","value":"0","name":"hide_all_forms","type":"yesno"},{"f_id":"16","o_id":"33","value":"H:i","name":"timepicker_format","type":""}]}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top