Hi,
i need to improve this code with the condition of the total price of the order.
So i've just modified the code like that
<?php
$min=15;
$tot=$this->total->prices[0]->price_value_with_tax;
if($tot<$min){
if($this->step==0){
echo '<div class="alert alert-message">' . JText::_('WARNING_CHECKOUT_STEP_ZERO') . '</div>';
}} else {
echo '<div class="alert alert-message">' . JText::_('WARNING_CHECKOUT_STEP_ZERO_FREE') . '</div>';
}
?>
It works fine but only on the first step that is step 0.
I need a warning message on the step = 3 also but it does not work fine.
The issue is that after the step=0 the variable $tot, get with
$tot=$this->total->prices[0]->price_value_with_tax;
,
is empty.
Could you help me to have a total price in the variable $tot on the other steps also?
Thanks a lot for your help
My best regards