Submission based pricing

  • Profile Image
    Asked on December 16, 2013 at 02:37 PM

    I want to create a form to allow artists to submit artworks for juried shows.  The artists should be able to submit (for example) 5 pieces with uploaded images and descriptions of each piece.  That's simple enough, however, there is a cost associated with such a submission typically based on the number of entries.  Is there anyway to calculate this cost based on the number of pieces submitted (rather than having the artist indicate the number of pieces in the pricing field?)




  • Profile Image
    Answered on December 16, 2013 at 04:38 PM

    Thanks for your quick response.  Do you have any examples of such a script?

  • Profile Image
    Answered on December 17, 2013 at 06:27 AM

    Great! That certainly appears to do the trick - many thanks.

    A few questions:

    1. As my form allows the user to enter a description with the uploaded piece I have merely duplicated the "upload" and "description" sections for how ever many submissions are allowed (and merely unhide each section as the previous is completed).  Is it possible to adjust your script to count more than just one upload field?

    2. How would I apply discounts (either if the submitter is a gallery member or, for example, a discounted rate on the 4th and 5th items)?

    3. How do I implement what you have done.




  • Profile Image
    Answered on December 17, 2013 at 01:43 PM
    I am truly amazed at how responsive you are - many thanks!
    As to your request for a sample form: I have actually created 3 test forms
    (trying to work around not being able to calculate a price based on the
    number of submissions - before you created your innovative solution):
    - (This
    is pretty much the original form that only shows the space for subsequent
    artworks once the previous image has been uploaded)
    - (This
    asks the submitter to specify how many pieces he/she will be submitting and
    displays the appropriate number of artwork "slots")
    - (This
    does the same but is based on a pricing calculation)
    In regards to your detailed instructions (once again, thanks):
    1. 1. I presume uploadSubPrice.js is the script you created to
    calculate the price?
    1. 2. To what does Product refer in:
    Find and disable the quantity textbox of the Product by adding
    *disabled='true'*. This should prevent the users to edit the quantity.
    1. 3. To what does Quantity refer in:
    *input_5_quantity_1001_0* = ID of Quantity textbox
  • Profile Image
    Answered on December 17, 2013 at 05:10 PM
    Thanks for your usual fast and detailed response.
    In answer to your questions:
    1. The entry cost is determined solely by the number of artworks submitted
    (possibly discounted if the artist is a member and also with possible
    discounts for more than, say, 3 artworks).
    2. Currently (and for the foreseeable future) the only submissions will be
    artworks (each consisting of one or more images and associated descriptions
    as per my examples). I guess each artwork could be considered a separate
    product or a "quantity" of the same product and one only need count one of
    the artwork "entities" (e.g. the first uploaded image for each artwork or
    the title) to determine the number of artworks submitted.
    Thank you for the "Inspect Element(Q)" tip!
  • Profile Image
    Answered on December 17, 2013 at 07:11 PM

    Hi Pierre,

    My colleague will get back to you with this as soon as he can. He is not around as of the moment. I am trying to understand the main request, but it's hard for me to catch up , might due to possible additional request so I'll pass this to Ardy, the one who provided you this excellent workaround.


  • Profile Image
    Answered on December 20, 2013 at 02:04 PM
    Hi Ardy,
    Thanks for continuing to work on this but I'm afraid I feel your latest
    will be far too confusing especially for people who do not have a technical
    I see 3 alternatives for consideration and I list them in order of
    1. Use my first example ( and
    modify the uploadSubPrice.js script such that it counts the 5 (or however
    many) separate "main" uploads and uses this count to determine the price.
    2. As in my second example ( ), allow
    the user to enter the number of artworks being submitted and then use this
    number to display the appropriate number of fields and calculate the price
    at the end.
    3. As in my third example (, allow
    the user to select the quantity of artwork products in a pricing field and,
    as above, use this to calculate the price (at the top) and display the
    appropriate number of fields. I think this actually works with the existing
    functionality but would prefer either of the 2 preceding solutions.