Post by drest341 » Sun Feb 25, 2024 4:49 pm

Hi everybody.
I m trying to display the error warning message on the bottom of the checkout page in my OC2.3 , above the continue button.
I copied the bellow code above "button_continue" but no luck.

<?php if ($shipping_method['error']) { ?>
<div class="alert alert-danger warning"><?php echo $shipping_method['error']; ?></div>
<?php } ?>

Is anybody has a suggestion to complete this idea?
Thanks

Any fool can write code that a computer can understand. Good programmers write code that humans can understand ~ Martin Fowler.


User avatar
New member

Posts

Joined
Fri Feb 21, 2014 10:47 pm
Location - Athens

Post by ADD Creative » Sun Feb 25, 2024 8:05 pm

Have your refreshed modifications and checked the change in in storage modifications? Where from and to are you copying that code from?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by drest341 » Sun Feb 25, 2024 8:36 pm

ADD Creative wrote:
Sun Feb 25, 2024 8:05 pm
Have your refreshed modifications and checked the change in in storage modifications? Where from and to are you copying that code from?
Yes is refreshed . This piece of code was taken from shipping_method.tpl

Any fool can write code that a computer can understand. Good programmers write code that humans can understand ~ Martin Fowler.


User avatar
New member

Posts

Joined
Fri Feb 21, 2014 10:47 pm
Location - Athens

Post by ADD Creative » Sun Feb 25, 2024 9:59 pm

As long as you are moving it in the same template file it should work.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 8 guests