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
Shop Module
- Oliver Georgi
- Site Admin
- Posts: 9918
- Joined: Fri 3. Oct 2003, 22:22
- Contact:
Re: Shop Module
Welche PHP Version ist im Einsatz?
Re: Shop Module
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();" /> </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();" /> </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>
';
}
?>