SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot BuyAnswersLinks's Avatar
    Join Date
    Aug 2008
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    assigning shipping method based on price

    Hello,

    I guess I am not doing the below code correctly, can you see what I am doing wrong? Thanks

    The shipping method is in the $_POST, and if its above51$ it adds the signature confirmation.

    PHP Code:
    if(($main_total =< '51') AND ($_POST['shipping'] == 'free_shipping_FCM')) {

    $shipping_method_pre 'free_shipping_FCMS';

    }elseif((
    $main_total '50') AND ($_POST['shipping'] == 'free_shipping_FCM')) {

    $shipping_method_pre 'free_shipping_FCM';

    }else{

    $shipping_method_pre htmlentities(mysql_escape_string(trim($_POST['shipping'])));



  2. #2
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,401
    Mentioned
    147 Post(s)
    Tagged
    4 Thread(s)
    Maybe because you disabled all lines except one?

  3. #3
    SitePoint Zealot BuyAnswersLinks's Avatar
    Join Date
    Aug 2008
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by guido2004 View Post
    Maybe because you disabled all lines except one?
    Hehe yeah I know, I that piece of of the code because it was the only part not working, I trouble shot the problem till I found the source of it. I forgot to take out the // before I posted it. Thanks for the fast reply

  4. #4
    From Italy with love silver trophybronze trophy
    guido2004's Avatar
    Join Date
    Sep 2004
    Posts
    9,401
    Mentioned
    147 Post(s)
    Tagged
    4 Thread(s)
    So it doesn't do what you want it to do. What does it do instead?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •