Partially Advanced Scripting is a powerful feature that allows you to dynamically change whether or not Partially is available to your customers or to change the terms offered to your customers based on the contents of their shopping cart. Scripts are written with the lua programming language, allowing for a great deal of flexibility.

The Advanced Scripting feature is available with our integrations for WooCommerce, Ecwid, PrestaShop, Opencart, and CSCart and is available for $10 per month. When you start your subscription, you'll get a 30 day free trial to test it out.

Once you attempt to create a payment plan from your website, the advance scripting option will become available under Partial.ly Settings.


From there, click the enable advanced scripting button to sign up for your subscription.

After you've set up your subscription, you'll be able to enter the script to be executed whenever a customer starts a checkout from your ecommerce store. To test out your script before publishing it, you can click the test script button and provide a sample JSON context for the script (sample contexts for different ecommerce platforms are available by clicking the view sample context button).

Your script can take one of three actions: 1) disable Partially for the given cart 2) use a different offer for the given cart or 3) continue with the default offer configured in your ecommerce platform.

For option 1) to disable Partially, you can either return false, which will display a generic error message to the customer, or {error="Your error message"} to return a custom error message.

For option 2) to use a custom offer, return {offer_id="your offer id"}, being sure to replace your offer id with the actual id of the offer you wish to use. To get the offer id, go to the offers section and click the integration tool button next to the offer you wish to use.

For option 3) to continue with the default offer for checkout, return true.

After your script is live, you can see the result of your most recent script executions to debug issues or confirm everything is working correctly.

If you need help writing your script, please reach out to our support team at support@partial.ly.

Check back soon for commonly used examples for different ecommerce platforms.