Shop Module

Hier bekommst Du deutschsprachigen Support bezüglich offizieller Module für phpwcms. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
Post Reply
blackraven
Posts: 11
Joined: Thu 13. Jan 2005, 19:49

Shop Module

Post 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
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: Shop Module

Post by Oliver Georgi »

Welche PHP Version ist im Einsatz?
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

Re: Shop Module

Post 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>
   ';

	}
	?>
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
Post Reply