Variation value determined by customer input in personalization field
-
My client offers custom engraving on their products. Up to 20 characters are included in the product price, but then they offer additional characters at $1 each.
Is there a way to count the characters in the personalization field, and then apply the incremental cost (if any) to the cart?
i.e. –
Item with 17-character personalization = standard cost.
Item with 22-character personalization = standard cost + $2.
Item with 39-character personalization = standard cost + $19.I’m looking to see if there’s a plugin that offers this, or a snippet of code that I could add.
Right now I am using javascript to count and display the number of characters in the field, then have the customer select that number from the variations drop-down. That works OK most of the time but sometimes people don’t pick the right number from the drop-down.
What I’d like to do is take the character count value from the javascript output and use it to select the corresponding Variation. Is this possible?
- The topic ‘Variation value determined by customer input in personalization field’ is closed to new replies.