Attribute price calculation per letter

Phoca Cart - complex e-commerce extension
itn-ms
Phoca Member
Phoca Member
Posts: 21
Joined: 04 Apr 2025, 11:58

Attribute price calculation per letter

Post by itn-ms »

Hi all,

I want to do the following:
Some products have text customization. Right now I have done this with text attributes, where I can set a price, which is added to the product if the input field is filled out.
I would like to have the price which is added based on the length of the user input - like 5€ per letter. So if a user wants "Test" as customization, it should add 20€ to the product, and if a user wants "Test1234" as customization it should add 40€ to the product price.
Is there a way to achieve this with the options?

Kind regards,
Marco
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48799
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Attribute price calculation per letter

Post by Jan »

Hi, unfortunately the same answer like for your first question, there is no such option, so this needs to be customized :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply