11/3/2022 0 Comments Script it user manualOnce this is done, we'll start synchronizing this information with your Shopify. To enable this, please contact to get it turned on for your account and tell us which metafields you'd like us to sync. Our Loyalty Tier (customer tag) falls under our metafields integration. Script it user manual how to#How to make sure your Loyalty Tier (customer tag) is enabled? ✅ You have the Loyalty Tier (customer tag) enabled ( click here to read more about our metafields) In order to use LoyaltyLion with Shopify Scripts, make sure you tick all the boxes below: Set automatic discounts online items in the cart for your customers in specific tiersĮxperiences instead of points - using LoyaltyLion and Scripts can help you create a "point-free" loyalty program experience for your customers Script it user manual code#Script Type: "After Save" if doc.Personalization - use Scripts based on the customer information to deliver a personalized experienceĬreate automatic discounts online items for your customers without the need to use vouchers - as Shopify only allows one discount voucher code per checkout, you can use Scripts to create automatically applied discounts online items your customers have in their cart (for Black Friday or Seasonal Sales), without the need for your customers to copy and paste a seasonal voucher Script Type: "Before Save" if "validate" in doc.description: Script Type: Before Save if "test" in doc.description: Examples 3.1 Change the value of a property before change Script it user manual pdf#Only the safe methods, listed below are available in server scripts json # json moduleįrappe.format # frappe.format_value(value, dict(fieldtype='Currency'))įrappe.format_value # frappe.format_value(value, dict(fieldtype='Currency'))įrappe.format_date # returns date as "1st September 2019"įrappe.form_dict # form / request parametersį_token # CSRF token of the current sessionįrappe.get_fullname # fullname of the current userįrappe.get_gravatar # _gravatar_urlįrappe.full_name = # fullname of the current userįrappe.render_template # frappe.render_template,įndmail # send email via server scriptįrappe.attach_print # attach PDF to an emailģ. 2.5 Securityįrappe Framework uses the RestrictedPython library to restrict access to methods available for server scripts. The resulting select query will look something like this: select * from `tabToDo` where owner = or assigned_by = the list view of ToDo will show restricted records. The following script: conditions = 'owner = '.format(user=frappe.db.escape(user)) If they assigned the record or it was assigned to them. This type of script allows you to add custom conditions in where clause for a DocType list query.įor example, let's say you want to show the list of ToDo records to a user only The response can be set via frappe.response object 2.4 Permission Query If you want the guest user to access the API, you must check on "Allow Guest" You can create a new API that can be accessed via api/method/ by the script type "API" Server script must be enabled via site_config.json bench -site site1.local set-config server_script_enabled trueįor scripts that are to be called via document events, you must set the Reference Document Type and Event Name to define the trigger
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |