Thread: minimum amount

Page 6 of 6 FirstFirst ... 456
Results 51 to 59 of 59
  1. #51
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: minimum amount

    When you change your code to be:
    Code:
    <?php echo 'ORDER TOTAL: ' . $order->info['total'] .  ($order->info['total'] < 100 ? 'YES' : ' NO') . '<br>';?>
     <?php if ($order->info['total'] < 100.00) { ?>
    
                                        <div  class="alertInstalmentsShadowedOut"><?php echo  zen_image(DIR_WS_TEMPLATE . 'images/instalments_shadowed_out.gif');  ?></div>
    
                                            <?php } ?>
    [/CODE]

    You should see on the screen an echo of:
    ORDER TOTAL: YES (when order total is < 100)
    -- or --
    ORDER TOTAL: NO (when order total is >= 100)

    What do you see using the code above?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #52
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    Quote Originally Posted by Ajeh View Post
    When you change your code to be:
    Code:
    <?php echo 'ORDER TOTAL: ' . $order->info['total'] .  ($order->info['total'] < 100 ? 'YES' : ' NO') . '<br>';?>
     <?php if ($order->info['total'] < 100.00) { ?>
    
                                        <div  class="alertInstalmentsShadowedOut"><?php echo  zen_image(DIR_WS_TEMPLATE . 'images/instalments_shadowed_out.gif');  ?></div>
    
                                            <?php } ?>
    [/CODE]

    You should see on the screen an echo of:
    ORDER TOTAL: YES (when order total is < 100)
    -- or --
    ORDER TOTAL: NO (when order total is >= 100)

    What do you see using the code above?

    When I change to the above code I do not see any message if the cart contents are <100. I do see the instalments_shadowed_out.gif image but nothing else.

    When cart contents are >100 then it shows the instalments payment option as a radio button (as it should) but then it also now shows ORDER TOTAL: 189.98 NO

  3. #53
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    Just noticed that the shadowed out image also shows when the cart contents are >100 (it shouldn't)

  4. #54
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: minimum amount

    Let's back up a step or two ...

    What file is this code in?

    If you do a search in the Tools ... Developers Tool Kit ... for the image:
    instalments_shadowed_out.gif

    and select Catalog and click search ...

    What comes up for that?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #55
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    /includes/templates/MYCUSTOM/templates/tpl_checkout_split.php

    This is the only file with that image. It's only referred to once and it's the code I've been pasting in the PHP above.

  6. #56
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: minimum amount

    Could you post that file so we can see the whole thing?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #57
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    I've just noticed something that changes my suspicions of the culprit here. The original code is working just fine! I can't pinpoint the exact problem. I'll post the file contents below but I don't think it's this file at all now. It's really weird, let me illustrate.

    I had been testing with these four products in the cart: 5524, 3616, 3617 and 5527. Cart total just a little under £100.00. The reason I used those products was t customer emailed asking about the pay by instalments. She should have seen the shadowed out image and not needed to email but when she emailed I thought I'd see why. When these four products are in the cart, then the image does not show. I've only just now noticed that when I remove 5527 then it shows the image again!

    OK, so you'd think it's got to be the 5527 product listing that's causing it somehow, right? Problem is, when 5527 is in the cart on it's own the image actaully shows.

    Really weird! Test it yourself and you'll see. I don't think it's this file any more, but just in case:

    http://www.silkblooms.co.uk/tpl_checkout_split.rar

  8. #58
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: minimum amount

    Is this from some add on that you are using? It has been a long day already and I am running out soon and got myself a tad lost ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  9. #59
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    Quote Originally Posted by Ajeh View Post
    Is this from some add on that you are using? It has been a long day already and I am running out soon and got myself a tad lost ...
    tpl_checkout_split.php is from the Fast and Easy Checkout module, yes sorry. Really don't think that's the problem now though.

    OK, enjoy your night Ajeh. Hope you're off somewhere nice :)

 

 
Page 6 of 6 FirstFirst ... 456

Similar Threads

  1. Minimum sale amount
    By alohacomputer in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 22 Jun 2011, 08:02 PM
  2. Minimum Purchase Amount?
    By wicks in forum Managing Customers and Orders
    Replies: 3
    Last Post: 3 Apr 2009, 06:44 PM
  3. minimum order amount
    By paolacauter in forum General Questions
    Replies: 1
    Last Post: 27 Nov 2007, 05:23 PM
  4. Minimum Order Amount
    By msdave in forum Managing Customers and Orders
    Replies: 2
    Last Post: 6 Oct 2007, 12:00 AM
  5. Minimum Order Amount V2.0
    By johnny43 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 16 Jul 2006, 06:09 PM

Posting Permissions

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