Error after instal:l Calculate for price/postal code

05.03.2012 09:18
#1
Robidoe2
Joomshopping forum user no avatar
Name: Robert Doedee
25.08.2011
Posts: 27
Quote
Error after instal:l Calculate for price/postal code

Error message:

PHP Warning: require_once(E:\riddersmaevents.com\wwwroot/components/com_jshopping/shippings/sm_depend_zip_price/lang/nl-NL.php): failed to open stream: No such file or directory in E:\riddersmaevents.com\wwwroot\components\com_jshopping\shippings\sm_depend_zip_price\sm_depend_zip_price.php on line 14
PHP Fatal error: require_once(): Failed opening required 'E:\riddersmaevents.com\wwwroot/components/com_jshopping/shippings/sm_depend_zip_price/lang/nl-NL.php' (include_path='.;C:\php5\pear') in E:\riddersmaevents.com\wwwroot\components\com_jshopping\shippings\sm_depend_zip_price\sm_depend_zip_price.php on line 14


Joomla: 1.7.1
JoomShopping: 3.4.2
PHP: 5.3.1
Website Url: riddersmaevents.com
 
05.03.2012 09:26
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16506
Quote
Aw: Error after instal:l Calculate for price/postal code

copy file
components/com_jshopping/shippings/sm_depend_zip_price/lang/en-GB.php
to
components/com_jshopping/shippings/sm_depend_zip_price/lang/nl-NL.php

 
05.03.2012 09:59
#3
Robidoe2
Joomshopping forum user no avatar
Name: Robert Doedee
25.08.2011
Posts: 27
Quote
Aw: Error after instal:l Calculate for price/postal code

Thanx for your reaction, if helpfull I did translate for NL:
define('_JSHOP_MINIMAL_ORDER_PRICE','Prijs vanaf');
define('_JSHOP_MAXIMAL_ORDER_PRICE','Prijs tot');
define('_JSHOP_PRICE_DEPENCED_ZIP_PRICE','Afhankelijk van product-prijs en bezorgadres-postcode');
define('_JSHOP_ZIP_FROM','Postcode van');
define('_JSHOP_ZIP_TO','Postcode tot');

But now on save I get this error code:
PHP Warning: Invalid argument supplied for foreach() in E:\riddersmaevents.com\wwwroot\administrator\components\com_jshopping\models\shippings.php on line 77
PHP Warning: Invalid argument supplied for foreach() in E:\riddersmaevents.com\wwwroot\administrator\components\com_jshopping\models\shippings.php on line 62

 
05.03.2012 18:49
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16506
Quote
Aw: Error after instal:l Calculate for price/postal code

Yes. Bug in joomshopping
PHP Warning: Invalid argument supplied for foreach() in E:\riddersmaevents.com\wwwroot\administrator\components\com_jshopping\models\shippings.php on line 77

change row 77
foreach($array_post['shipping_price'] as $key => $value){

to
if (is_array($array_post['shipping_price']))
foreach($array_post['shipping_price'] as $key => $value){



Not See bug
PHP Warning: Invalid argument supplied for foreach() in E:\riddersmaevents.com\wwwroot\administrator\components\com_jshopping\models\shippings.php on line 62

Send me admin login
support@webdesigner-profi.de


Letzte Ă„nderung: 05.03.2012 18:52
 
06.03.2012 09:34
#5
Robidoe2
Joomshopping forum user no avatar
Name: Robert Doedee
25.08.2011
Posts: 27
Quote
Aw: Error after instal:l Calculate for price/postal code

Email send.

Line 77 is working.

 
06.03.2012 09:42
#6
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16506
Quote
Aw: Error after instal:l Calculate for price/postal code

Not See problem.

 
06.03.2012 10:18
#7
Robidoe2
Joomshopping forum user no avatar
Name: Robert Doedee
25.08.2011
Posts: 27
Quote
Aw: Error after instal:l Calculate for price/postal code

It seems to work fine now indeed.

Thanx for your attention.

 
07.03.2012 08:14
#8
Robidoe2
Joomshopping forum user no avatar
Name: Robert Doedee
25.08.2011
Posts: 27
Quote
Aw: Error after instal:l Calculate for price/postal code

I found that the line62 error occurres when no country is selected on save new item. The item does get saved, but with error message.

 
07.03.2012 09:16
#9
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16506
Quote
Aw: Error after instal:l Calculate for price/postal code

Country is a required field.

 
Copyrights MAXXmarketing GmbH. All Rights Reserved