You can use the custom scripts integration to modify your widget(s) using javascript and jQuery before they are shown to your customers. In this example we will show you how you can set a max quantity on your widgets so customers can only purchase a max of 5 on each plan:

Code to load on every page of a widget in custom scripts app:

      var max_qty = 5;
      var plan_position = 0;

            if($(this).val() > max_qty){

Example of code in Custom Scripts App:

Please let us know if you have any questions. 

The PayWhirl Team

Did this answer your question?