How to label attribute pictures with the radiobutton?

24.08.2011 10:02
#1
tokate
Joomshopping forum user no avatar
Name: tokate
22.07.2011
Сообщения: 11
Quote
How to label attribute pictures with the radiobutton?

Hey there.

I added some attributes (size and color) to the products. For the attribute "color" i also uploaded some pictures as you can see in the picture below.

For a better usability i would like to connect the pictures with the radio button (for example via labels).
But where can i find the according php-file which generates the attributes as radio or select list? I cant find it anywhere :(
How to label attribute pictures with the radiobutton?


Joomla: 1.5
JoomShopping: 2.9.2
 
30.08.2011 09:38
#2
tokate
Joomshopping forum user no avatar
Name: tokate
22.07.2011
Сообщения: 11
Quote
Aw: How to label attribute pictures with the radiobutton?

No one has an idea? :S

 
30.08.2011 19:35
#3
Dr.Rivera
Joomshopping forum user no avatar
Name: Jürgen
13.09.2010
Сообщения: 2276
Quote
Aw: How to label attribute pictures with the radiobutton?

Hello Moderator,

it is possible to help this person?
I saw his question also in joomlaportal, but no one can give him an answer.

Thank you and greetings


Nicht ganz aktuell, aber vielleicht doch noch für einige hilfreich, das E-Book Joomshopping.
Bei Amazon (kindl) und xinxii (ePub):

http://www.amazon.de/JoomShopping-Joomla-Shop-Online-Shop-ebook/dp/B005L9D8MC

http://www.xinxii.com/joomshopping-der-joomla-shop-p-339561.html
 
30.08.2011 21:35
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25938
Quote
Aw: How to label attribute pictures with the radiobutton?

Change file

components\com_jshopping\lib\functions.php

function sprintRadioList($list, $name, $params, $key, $val, $actived = null){
$html = "";
$id = str_replace("[","",$name);
$id = str_replace("]","",$id);
foreach($list as $obj){
$id_text = $id.$obj->$key;
if ($obj->$key == $actived) $sel = ' checked="true"'; else $sel = '';
$html.='<input type="radio" name="'.$name.'" id="'.$id_text.'" value="'.$obj->$key.'"'.$sel.' '.$params.'> <label for="'.$id_text.'">'.$obj->$val."</label>";
}
return $html;
}



components\com_jshopping\js\functions.js


function reloadAttrValue(){
for(var id in attr_value){
if (jQuery("input[name=jshop_attr_id\\["+id+"\\]]").attr("type")=="radio"){
attr_value[id] = jQuery("input[name=jshop_attr_id\\["+id+"\\]]:checked").val();
}else{
attr_value[id] = jQuery("#jshop_attr_id"+id).val();
}
}
}


 
31.08.2011 09:59
#5
tokate
Joomshopping forum user no avatar
Name: tokate
22.07.2011
Сообщения: 11
Quote
Aw: How to label attribute pictures with the radiobutton?

Damn Great!!!
Wouldnt never find it by myself.
Incredible support!! Definitely a reason for a donation.

(Just one more question if i may ask:
As id for the radios i would like to have the (attribut-)text written in the label span
is it possible anyway?)

 


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.