Change view of Product Characteristics Type "List" on frontend

11.03.2022 11:22
#1
emiraizh
Joomshopping forum user no avatar
Name: Emir
26.11.2019
Posts: 8
Quote
Change view of Product Characteristics Type "List" on frontend

Hello! Can you help me with this issue?
I have Product Characteristic with type "List", and on frontend a values of this field are displayed separately with "comma". But i want to change this view for displaying every value of this list at a new row with "semicolon".

For example:

We have:
Title Option1, Option2, Option3

I need:
Title:
Option1;
Option2;
Option3;


Joomla: 3.10.5
JoomShopping: 4.18.7
PHP: 7.4.12
MySQL: 5.6.51
Website Url: localhost

Last change: 11.03.2022 11:35
 
11.03.2022 13:44
#2
emiraizh
Joomshopping forum user no avatar
Name: Emir
26.11.2019
Posts: 8
Quote
Aw: Change view of Product Characteristics Type "List" on frontend

I changed ../com_joomshopping/tables/product.php on line 803


foreach($listid as $extrafiledvalueid){
$tmp[] = $fieldvalues[$extrafiledvalueid];
$extra_field_value = implode($jshopConfig->multi_charactiristic_separator, $tmp);
}


to this:


foreach($listid as $extrafiledvalueid){
$tmp[] = $fieldvalues[$extrafiledvalueid]"<br />";
$extra_field_value = implode("; ", $tmp);
}


 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
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.