Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Option text and Character Calculations


Guest

Recommended Posts

I know this is a possibility, coz I have done something relatively similar in PHP, but I am wondering if anyone has ever set up an attribute for entering text that calculates the number of characters entered, and charges for #characters > X.

 

Say you do hockey jerseys and offer up to 5 letters free on the back for personalization, and extra characters are +$2.

 

So how would you build off of say an if (strlen($text) > 5? And where would you build it?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...