News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Textareainput custom field and price calculation problem

Started by fotonio, November 20, 2015, 00:28:05 AM

Previous topic - Next topic

fotonio

Hi people, i am running joomla 3.4.4 and VM 3.0.10.
I have installed the free Textareainput plugin from daycounts.com to use it as a price per letter attribute field in some products.
The problem i have is when typing text and i change line the character counter of the plugin counts it as one character but the price is increasing as if it was 10 characters.
I would like to charge the new line as one or two character, but not ten.
I tried to filter some variables  for \r\n, \n, <br>.. etc. with php chop() or str_replace() functions, but no success. I think it has something to do with javascript and not php.
Please check the attachments for the files of the plugin that do the work.
Thanks in advance.

jenkinhill

If it is a problem with the Daycounts plugin then you should ask him for support.  https://www.daycounts.com/support/new-ticket

Your J/VM versions should be updated. http://forum.virtuemart.net/index.php?topic=118683.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

fotonio

I have already opened a ticket at daycounts 5 days before asking here but i have no reply yet, so i decided to ask here because the code is very similar with the default customer text input of VM. Also Daycounts offers this plugin free for the VM community so why not asking here too?