Thread: minimum amount

Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 59
  1. #31
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    Hi Ajeh,

    If you're still following this thread then hopefully you'll have an idea to help me with a modification I'm working on that's lead me back here. If you look at this thread:

    http://www.zen-cart.com/forum/showthread.php?p=1008763

    You'll see that I've managed to integrate this 'pay by instlaments' feature into the main_page=account and the main_page=account_history_info&order_id=XXXX areas. I've managed to make it so a customer can enter the amount they'd like to pay towards their balance and check out with a monetary value in their cart. Very, very useful as it's going to save me endless manual invoicing.

    I forsee one problem though. If you use the custom product I've set up for this:

    http://www.silkblooms.co.uk/index.ph...oducts_id=1652

    If they add it to your cart and check out, then it might be confusing for the customer when they get to the checkout confirmation page and see that 'Pay by Instalments' is an actual option! Reminds me of a blonde joke in a round room and confusing her by asking her to stand in the corner, but people can be confused easily by checkout pages at the best of times. I don't particularly want my customers paying their instalments in instlaments :)

    So, to cut a long story short, do you think there's a way to stop the 'Pay by Instalments' radio button from appearing on the main_page=checkout&action=null page? This custom INSTALMENTS product I've set up is always going to be "Product is Virtual: Yes, Skip Shipping Address" and "Products Quantity Box Shows: Yes, Show Quantity Box". So, perhaps there's a way to stop the 'Pay by Instalments' option appearing when this is the case as all my other products are not (they bring up the shiping options).

    Sorry, hope this isn't too confusing? Reading it back and it's probably not very clear?

    Maybe there's a way to stop the 'Pay by Instlaments' option when the weight of the product =0kg even?
    Last edited by limelites; 20 Mar 2011 at 12:43 AM.

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

    Default Re: minimum amount

    What happens if this Product and others are in the order?
    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. #33
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    This product (INSTALMENTS) has a weight of zero.

    All other products have a weight of >0

    When both normal product and INSTALMENT product are in cart, it asks for shipping info at the checkout (as though it were a normal product with a weight >0)

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

    Default Re: minimum amount

    When should the Pay by Installment show?

    What happens when it should show and this Product and something that uses the Pay by Installment are in the same cart?
    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. #35
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: minimum amount

    There would never be an instance when this product is added to the same cart as another product. Let me try to explain.

    Our customers are able to add products to their cart as normal and check out. The products are physical goods, i.e., wedding bouquets and various types of artificial flowers. When they get to the checkout, they are presented with payment options as normal; PayPal, Nochex, Google Checkout, or 'Pay by Instalments'. This is exactly how it should be.

    A lot of our customers have wedding dates well in advance as they like to plan their wedding. So, a big percentage of our sales are payment plans and the customer chooses the 'Pay by Instalments' payment method. Doing so will earn them a 20% deposit invoice. At this point they're booked into our calendar for shipping on a specific date that suits them.

    In the time between purchase and shipping, they are able to pay for their order in amounts that suits them. A little at a time, or the remaining balance towards their date. It's up to them.

    Up until now, I've been manually invoicing them when they wish to pay something towards their flowers. However, with a little help from 'Kobra', I've been able to implement a rather handy custom product:

    http://www.silkblooms.co.uk/index.ph...oducts_id=1652

    If you look at it, you'll see that it lets the customer enter an amount in GBP and check out. When the 'order' comes through, we'll deduct it from their balance.

    I've added a 'Pay an Instalment' button in their account pages too, so they can just click that and they're taken to the custom product above.

    This product is completely hidden from other site users as it's in a hidden category. So, no one will add it to their cart. This product is there purely so customers can pay an instlament.

    So, perferct. Until they get to the checkout page and find themselves presented with payment options again. When you're paying an instlament, you really shouldn't have another option to 'Pay by Instalments'. This shouldn't be an option.

    The logic would be either:

    if (cart weight = 0kg) then don't show 'pay by instalments'

    OR

    if (product in cart = product ID 1652) then don't show 'pay by instalments'

    Would this be possible?

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

    Default Re: minimum amount

    Another difference I can see that might help manipulate the logic is that there will never be a checkoutShippingMethods fieldset or even a checkoutShippingTable at the confirmation page when I want to disable the Pay by Instalments.

    When you're paying an instalment, the product is virtual, so the shipping table is not on the page.

    The INSTALMENT prodcut is the only product on the site where this will ever happen.

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

    Default Re: minimum amount

    This is the logic that shadows out the Pay by Instlaments when the cart total is less than £100.00:

    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" />
    So, in summary, is there a statement I could add to this code that would also shadow it out if ($products_id == '1652') { for example?

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

    Default Re: minimum amount

    I tried this one:

    PHP Code:
    <?php if ($order->info['total'] < 100.00 or $order->info['weight'] == 0) { ?>
    as the logic and it does use the shadowed out version, but it adds it in so there are two. One's shadowed out and the other is still there as normal:


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

    Default Re: minimum amount

    You can control the $this->enabled for the payment module with:
    Code:
    if (!IS_ADMIN_FLAG) {
      global $cart;
      if ($_SESSION['cart']->show_weight() > 0) {
        $this->enabled = false;
      }
    }
    I do not know the code you are using but if this were the Check/Money Order moneyorder Payment module, the code would go below the code:
    Code:
          $this->enabled = ((MODULE_PAYMENT_MONEYORDER_STATUS == 'True') ? true : false);
    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!

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

    Default Re: minimum amount

    Perfect!! Thank you yet again Ajeh. You are a true genius!! A legend in fact!!!

    It's coming together for me with this little mod, it's going to be really good. I just have a couple of little niggles I'm trying to iron out now. Not sure if it's your thing, but if you took a look at this thread then I bet your genius would shine through with an answer :)

    http://www.zen-cart.com/forum/showthread.php?t=176751

    I've gotten so far with it, but can't figure out the last part (an alternative checkout success page)

 

 
Page 4 of 6 FirstFirst ... 23456 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