Thread: minimum amount

Page 3 of 6 FirstFirst 12345 ... LastLast
Results 21 to 30 of 59
  1. #21
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    You're a bit of a magician with PHP, Ajeh. I wonder if you could recommend a good book that will start off at foundation level and then work up a structure so that even a complete novice like myself could learn PHP?

    If I knew PHP like you then I'd have loads and loads of features on my site. Features that I'd never even think of tackling at the moment. For example, this fix here. If I knew PHP like you then I'd take it a step further and have this option shadowed out with a little (only available for orders over £100) in brackets like this:



    Until their cart's at £100.00 of course and then it'd react as it's now doing:


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

    Default Re: minimum amount

    Sorry, off hand I do not have a trick for that one ...

    It would probably be easier to just customize the template for that page to give a message about it based on the amount of the order to show after the payment modules are displayed ...
    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!

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

    Default Re: minimum amount

    I'm thinking of installing it as a new payment menthod and changing the name to 'shadow'. There are only three files in the entire mod (two of which are just language files) So, I'd just change all instances of "instalment" to "shadow" and install it again.

    Then I'm thinking of using the code in #9 in reverse, so it appears on orders of under £100.00.

    There should be a simple way of customising the language files to show a shadowed out .gif file instead of text.

    The only difficulty I forsee is how to get rid of the radio button it would generate as it would effectively be a butchered payment module.

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

    Default Re: minimum amount

    That is why I suggested to add some text below the display of the Payment modules on the template to only show when it should and then there is no radio button to deal with ...
    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. #25
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    "to only show when it should"

    That's the key though. It's easy enough to add text to the checkout confirmation page, but how do you make that text only appear when the cart contents are <£100.00?

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

    Default Re: minimum amount

    You add in the IF statement like we did in the module but you need to add it to the template using your templates and overrides ...

    Look at the code in the tpl_checkout_payment_default.php and you can add:
    Code:
    <?php if ($order->info['total'] < 100.00) { ?>
    <div class="alert"><?php echo 'WHERE AM I < 100.00 ' . $order->info['total']; ?></div>
    <?php } else { ?>
    <div class="alert"><?php echo 'WHERE AM I >= 100.00 ' . $order->info['total']; ?></div>
    <?php } ?>
    <br class="clearBoth" />
    
    </fieldset>
    <?php // ** BEGIN PAYPAL EXPRESS CHECKOUT **
    the red code above the black code and fool with 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!

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

    Default Re: minimum amount

    I'll give this a try when I get back in from the school run. However, if you see this response between now and then, could you let me know how I'd replace the output text "WHERE AM I" with an image, so that it displays an image instead of the text?

    Would I replace WHERE AM I

    with:

    '<img src="https://www.silkblooms.co.uk/includes/images/shadow.gif" class="ShadowOut"> (only available on orders over £100.00)'


    I'm not sure abut the apostrophes. That's always what messes me up! Little syntaxes.

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

    Default Re: minimum amount

    You should be able to add in something like:
    zen_image(DIR_WS_IMAGES . 'shadow.gif', '', '100%', '100%', 'class="ShadowOut"') . ' (only available on orders over £100.00)'
    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. #29
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    Getting something, here's the code I inserted in the tpl_checkout_split.php file, just about the PAYPAL fieldset:

    PHP Code:
    <?php if ($order->info['total'] < 100.00) { ?>
    <div class="alertInstalmentsShadowedOut"><?php echo zen_image(DIR_WS_TEMPLATE.'images/instalments_shadowed_out.gif'); ?></div>
    <?php ?>
    <br class="clearBoth" />
    Definitely working, I just need to style it in CSS now, so it appears in the correct position.

    Thank you Ajeh!! I knoew you'd have the right tricks up your sleeve for this one. You underestimate yourself :)

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

    Default Re: minimum amount

    Thanks for the update that you are starting to get things on track with this ...
    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!

 

 
Page 3 of 6 FirstFirst 12345 ... LastLast

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