|
|||
|
hi,
m?chte gerne in der produkt_listing.php f?r die mengenauswahl nicht die werte selber eingeben, sonder die st?ckzahl mit einem selectfeld vorgeben. z.b 10,20,30 usw. diesen code habe ich schon bearbeitet, es kommt auch ein feld wo ich den wert noch wie vorher eingeben kann. $cart_button = xtc_draw_selection_field('products_qty', '1','') . ' ' . xtc_draw_hidden_field('products_id', $listing['products_id']) . xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); wie m?sste ich das ab?ndern, damit das so funktioniert? lg |
|
||||
|
mal so ins blaue.
Code:
$qty_array=array('id'=>0,'text'=>1 blablabla array f?llen)
xtc_draw_pull_down_menu('products_qty', $qty_array, '0')
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
|
|||
|
mal so ins blaue war schon echt gut :-)
vielleicht kannst du mir auch noch etwas nachhilfe in sachen php geben :-) $qty_array=array('id'=>0,'text'=>'10', '20', '30'); $cart_button = xtc_draw_pull_down_menu('products_qty', $qty_array, '0') . ' ' . xtc_draw_hidden_field('products_id', $listing['products_id']) . xtc_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); bekomme bei den produkten ein dropdownmen? angezeigt doch leider steht da nur 2 und 3 zur auswahl... |
|
||||
|
Code:
for ($i=0;$i<10;$i++) {
$qty_array[]=array('id'=>$i,'text'=>$i+1);
}
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
|
||||
|
ja mei dann halt
Code:
$count='';
for ($i=0;$i<5;$i++) {
$count+=30;
$qty_array[]=array('id'=>$count,'text'=>$count);
}
__________________
xt:Commerce Helpdesk xt:Commerce Blog xt:Commerce Warenwirtschaft ### ![]() Offene Stellen bei xt:Commerce! xt:Commerce stellt ein ### |
![]() |
| Lesezeichen |
| Stichworte |
| selctionbox |
| Themen-Optionen | |
| Ansicht | |
|
|