How to increase the max length for characteristics field?

07.06.2012 00:01
#1
trex
Joomshopping forum user no avatar
Name: Todor
07.04.2012
Posts: 4
Quote
How to increase the max length for characteristics field?

Is it possible to change the limit for product characteristics fields from 30 to 256 symbols?

Example:

Wanted text to fit in characteristics field:
SRS Premium Sound; Integrated stereo speakers; Integrated microphone (dual-microphone array when equipped with optional webcam); Function keys for volume mute, volume up, volume down; play, rewind, and fast-forward of video and audio files;

Current limitation:
SRS Premium Sound; Integrated st


Joomla: 2.5.4
JoomShopping: 3.6.1
 
07.06.2012 07:52
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19068
Quote
Aw: How to increase the max length for characteristics field?

Need change table

jos_jshopping_products

chnage field type as varchar(255)

extra_field_1,extra_field_2,...

 
07.06.2012 13:38
#3
trex
Joomshopping forum user no avatar
Name: Todor
07.04.2012
Posts: 4
Quote
Aw: How to increase the max length for characteristics field?

It worked, Thank you for the support.
Actually I have one more question - how to increase the length of the characteristic values fields in the back-end now?


Letzte Änderung: 07.06.2012 14:02
 
08.06.2012 07:30
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19068
Quote
Aw: How to increase the max length for characteristics field?

CSS

 
12.07.2012 16:48
#5
cooperation
Joomshopping forum user no avatar
Name: Mcp
28.06.2012
Posts: 19
Quote
Aw: How to increase the max length for characteristics field?

Hi there,

this cannot be done only by CSS.
You have to change some code.

Go to file: "administrator/components/com_jshopping/controllers/products.php"
Go to line: 1203 -> 1205

You should see this code:

}else{
$obj->values = "<input class='xxx' type='text' name='".$name."' value='".$product->$name."' />";
}


And change it to this code:

}else{
//$obj->values = "<input type='text' name='".$name."' value='".$product->$name."' />";
$obj->values = "<textarea name='".$name."' cols='50' rows='5'>".$product->$name."</textarea>";
}


This creates a textarea instead of a input field.

No we just have to figure out how to parse html code in this filed ...

 
17.07.2012 15:13
#6
cooperation
Joomshopping forum user no avatar
Name: Mcp
28.06.2012
Posts: 19
Quote
Aw: How to increase the max length for characteristics field?

Can anyone help to figure out how to save HTML code in this field?

Thanks again!

 
20.07.2012 02:20
#7
cooperation
Joomshopping forum user no avatar
Name: Mcp
28.06.2012
Posts: 19
Quote
Aw: How to increase the max length for characteristics field?

Hello,

I tried to figure out how to save html code in this field.
But I need some help from you guys. It should not be so dificult to achieve that.

Thanks in advance!

 
20.07.2012 07:44
#8
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 19068
Quote
Aw: How to increase the max length for characteristics field?

$obj->values = "<input class='xxx' type='text' name='".$name."' value='".$product->$name."' style='width:300px' />";

 


Copyrights MAXXmarketing GmbH. All Rights Reserved
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.