Invalid argument supplied for foreach

04.02.2016 07:22
#1
mirage0105
Joomshopping forum user no avatar
Name: Сергей
22.01.2016
Posts: 11
Quote
Invalid argument supplied for foreach

Good day. Here such phrases arise when ordering in the shopping cart. The basket works, the goods are paid, but there are these proposals. Tell me how to fix it?


Warning: Invalid argument supplied for foreach() in /home/newbalan/public_html/templates/vina_veneno/html/com_jshopping/checkout/adress.php on line 22



Warning: Invalid argument supplied for foreach() in /home/newbalan/public_html/templates/vina_veneno/html/com_jshopping/checkout/payments.php on line 17


Warning: Invalid argument supplied for foreach() in /home/newbalan/public_html/templates/vina_veneno/html/com_jshopping/checkout/shippings.php on line 17


Joomla: 3.4.8
JoomShopping: last
 
04.02.2016 07:47
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: Invalid argument supplied for foreach

/templates/vina_veneno/html/com_jshopping/checkout/adress.php on line 22

code?

 
04.02.2016 07:58
#3
mirage0105
Joomshopping forum user no avatar
Name: Сергей
22.01.2016
Posts: 11
Quote
Aw: Invalid argument supplied for foreach

<?php print $this->checkout_navigator?>
</div>
<div class="span9">

<?php $i==0; ?>
<?php foreach($this->steps as $k=>$step){ $i++?>
<div class = "step-title <?php print $this->cssclass[$k]?>">
<span class="number"><?php echo $i; ?></span>
<h2><?php print $step;?></h2>
</div>
<?php }?>
<?php

 
04.02.2016 08:01
#4
mirage0105
Joomshopping forum user no avatar
Name: Сергей
22.01.2016
Posts: 11
Quote
Aw: Invalid argument supplied for foreach

invalid payment


<script type="text/javascript">
var payment_type_check = {};
<?php foreach($this->payment_methods as $payment){?>
payment_type_check['<?php print $payment->payment_class;?>'] = '<?php print $payment->existentcheckform;?>';
<?php }?>
</script>


shipping

<?php $i==0; ?>
<?php foreach($this->steps as $k=>$step){ $i++?>
<div class = "step-title <?php print $this->cssclass[$k]?>">
<span class="number"><?php echo $i; ?></span>
<h2><?php print $step;?></h2>

 
04.02.2016 21:42
#5
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25919
Quote
Aw: Invalid argument supplied for foreach

error in your code.

see joomshopping default template

 
05.02.2016 06:52
#6
mirage0105
Joomshopping forum user no avatar
Name: Сергей
22.01.2016
Posts: 11
Quote
Aw: Invalid argument supplied for foreach

You mean to put from the joomshopping standard php files - shipping, payment, etc.? But it is also possible to modify the code?

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.