Page 1 of 1

Shop Module

Posted: Thu 21. Oct 2010, 15:39
by blackraven
Hallo,
nachdem ich das Shopmodul für meine Homepage erst einmal ausprobieren wollte, habe ich im Backend unter "Shop / Einstellungen" folgende Errormeldung erhalten:

Warning: number_format() expects parameter 1 to be double,
string given in /kunden/147667_80637/webseiten/cms1/include/inc_module/mod_shop/inc/edit.preferences.inc.php on line 128

Meine phpwcms Version ist 1.45. Möglicherweise liegt hier ein einfaches Konfigurationsproblem vor - habe aber noch keine Lösung gefunden.

Danke

Re: Shop Module

Posted: Tue 9. Nov 2010, 22:13
by Oliver Georgi
Welche PHP Version ist im Einsatz?

Re: Shop Module

Posted: Wed 10. Nov 2010, 17:58
by markus s
erstze zeile 123 bis 136 in der edit.preferences.inc.php mit:

Code: Select all

<?php
for( $x = 0; $x <= 4; $x++ ) {
  
  $plugin['data']['shop_pref_shipping'][$x]['weight'] = doubleval($plugin['data']['shop_pref_shipping'][$x]['weight']);
 echo '
   <tr>
    <td class="tdtop3"><input name="pref_shipping_weight['.$x.']" type="text" class="v12 width100" value="' . html_specialchars( @number_format($plugin['data']['shop_pref_shipping'][$x]['weight'], 3, $BLM['dec_point'], $BLM['thousands_sep'] ) ) . '" size="10" maxlength="10" onchange="enableSubmit();" />&nbsp;</td>
    <td class="tdtop3"><input name="pref_shipping_net['.$x.']" type="text" class="v12 width100" value="' . html_specialchars( @number_format($plugin['data']['shop_pref_shipping'][$x]['net'], 3, $BLM['dec_point'], $BLM['thousands_sep'] ) ) . '" size="10" maxlength="10" onchange="enableSubmit();" />&nbsp;</td>
    <td class="tdtop3"><input name="pref_shipping_vat['.$x.']" type="text" class="v12 width100" value="' . html_specialchars( @number_format($plugin['data']['shop_pref_shipping'][$x]['vat'], 2, $BLM['dec_point'], $BLM['thousands_sep'] ) ) . '" size="10" maxlength="10" onchange="enableSubmit();" /></td>
   </tr>
   ';

	}
	?>