Jump to content

I have a question regarding an "if"


fubarur

Recommended Posts

Hey all,

Trying to set this up to grab the subtotal and if it's larger than $50 to display "Free Shipping"
[code]
    php:
    <?php
                   
                    if (Environment::number_format(CartSession::subtotal_cost()) >= '$50')
                    echo "Free Shipping";
    ?>

[/code]

This code works fine from $0-$99
so for $0-$49.00 nothing is diplayed
for $50-$99.99 "Free Shipping" is diplayed
but $100.00 on up it will not display "Free Shipping"

Any ideas?
Link to comment
https://forums.phpfreaks.com/topic/28664-i-have-a-question-regarding-an-if/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.