07.06.2012 00:01
|
|
trex
Name: Todor
07.04.2012
Сообщения: 4
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 25916
|
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
|
|
trex
Name: Todor
07.04.2012
Сообщения: 4
|
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?
Последнее изменение: 07.06.2012 14:02
|
|
08.06.2012 07:30
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 25916
|
Aw: How to increase the max length for characteristics field?
CSS
|
|
12.07.2012 16:48
|
|
cooperation
Name: Mcp
28.06.2012
Сообщения: 19
|
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
|
|
cooperation
Name: Mcp
28.06.2012
Сообщения: 19
|
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
|
|
cooperation
Name: Mcp
28.06.2012
Сообщения: 19
|
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
|
|
admin
(Support Team)
Name: Admin
05.08.2010
Сообщения: 25916
|
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' />";
|
|