Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How to display the checkout button only if x items added

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › How to display the checkout button only if x items added

  • This topic has 2 replies, 3 voices, and was last updated 10 years, 9 months ago by admin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 26, 2014 at 9:44 am #11521
    jeromeM
    Member

    Hi,

    I would like to display, the Paypal checkout button only if 6 items added in the cart. Here is what i’m trying to code in the “eStore_cart.php” (at the end of the file):

    if ($item >= 6) {

    return $output;

    } else {

    echo(“not enough items”);

    }

    Thanks in advance for your help,

    Jérôme

    September 26, 2014 at 9:44 pm #65686
    wzp
    Moderator

    So, what happened when you tried it? Did you add your code to the eStore_cart_display_checkout_button_form_part() function definition? You want to add your code after the “//Check if minimum and maximum cart checkout amount restriction apply” section, but before the “ //Create the checkout button form” section.

    September 26, 2014 at 11:53 pm #65687
    admin
    Keymaster

    Why not use the following option from estore?

    Enable Checkout Amount Limitations

    You can enable it from the settings and it will probably give you something close to what you are trying to achieve.

    That feature allows you to impose a checkout amount limitation in the shopping cart. For example: only allow a customer to checkout if the minimum amount in the cart is more than $20.00

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ