Visual Bug

07.02.2017 15:30
#1
le5
Joomshopping forum user no avatar
Name: le5 GmbH
17.03.2012
Posts: 74
Quote
Visual Bug

I'm just overworking the design of the checkout.

In all templates I use
<?php print $this->checkout_navigator ?>
which reference is the "menu.php"

If I change in the Backend the Settings for step order from "payment / shipping" to "shipping / payment"
the ordering in it's not changing in both vars
- $this->array_navigation_steps
- $this->steps

Is this a bug or do I do something wrong? Must I check configuration settings my own in the code of menu.php?

thanks for any advise
pawel
Visual Bug


Joomla: 3.6.5
JoomShopping: 4.15.1
 
07.02.2017 21:35
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25856
Quote
Aw: Visual Bug

Work for my test shop
http://demo.joomshopping.com/example5/

try use default joomshopping template

 
08.02.2017 12:00
#3
le5
Joomshopping forum user no avatar
Name: le5 GmbH
17.03.2012
Posts: 74
Quote
Aw: Visual Bug

Hello Support

Thanks for your advice.
I notice 2 problems on my side. I use J!Dump for dumping vars. and J!Dump sorts the Dump of arrays.
With
echo '<pre>';
var_dump($this->steps);
echo '</pre>';
I got the original sort order.

How ever, since I made a 2nd failure, to use an
$totalSteps = count($this->steps);
for($i=0; $i<$totalSteps; $i++) {
...
}
loop, I of course allways got indexed element order of the array and not the true order in the array.
was blindfolded.

now it works.
Thanks for looking in.

 
08.02.2017 12:27
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25856
Quote
Aw: Visual Bug

original code

<?php foreach($this->steps as $k=>$step){?>
<td class = "jshop_order_step <?php print $this->cssclass[$k]?>">
<?php print $step;?>
</td>
<?php }?>

 


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.