promotion.php
43 lines
| 1 | <div style="padding: 20px; background: #fff; border: 1px solid #ddd; border-radius: 8px;" class="my-3"> |
| 2 | <h2>Boost Revenue with Order Tips on Checkout 💸</h2> |
| 3 | <p> |
| 4 | Want to give your customers a way to show appreciation for your service or support your team? |
| 5 | </p> |
| 6 | <p> |
| 7 | With the <strong>Order Tip for WooCommerce</strong> plugin, you can easily add a tip option directly on the checkout page. Whether you're running a restaurant, delivery service, or just want to give customers a way to say thanks — this plugin makes it simple. |
| 8 | </p> |
| 9 | <ul> |
| 10 | <li>� |
| 11 | Add fixed or percentage-based tip options</li> |
| 12 | <li>� |
| 13 | Let customers enter custom tip amounts</li> |
| 14 | <li>� |
| 15 | Style and label the tip field to match your brand</li> |
| 16 | <li>� |
| 17 | Fully compatible with all payment gateways</li> |
| 18 | </ul> |
| 19 | |
| 20 | <p style="font-weight: bold; color: #008000;">⚡ A simple way to increase order value and reward your team!</p> |
| 21 | <p> |
| 22 | <?php |
| 23 | if ( $status === 'not_installed' ) { |
| 24 | $install_url = wp_nonce_url( |
| 25 | self_admin_url( 'update.php?action=install-plugin&plugin=' . $plugin_slug ), |
| 26 | 'install-plugin_' . $plugin_slug |
| 27 | ); |
| 28 | echo '<p><a href="' . esc_url( $install_url ) . '" style="display: inline-block; background-color: #0073aa; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none;">Install Now</a></p>'; |
| 29 | }elseif ( $status === 'inactive') { |
| 30 | |
| 31 | $activate_url = wp_nonce_url( |
| 32 | self_admin_url( 'plugins.php?action=activate&plugin=' . $plugin_file ), |
| 33 | 'activate-plugin_' . $plugin_file |
| 34 | ); |
| 35 | echo '<p><a href="' . esc_url( $activate_url ) . '" style="display: inline-block; background-color: #0073aa; color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none;">Activate</a></p>'; |
| 36 | |
| 37 | }else{ |
| 38 | echo '<p><em>The plugin is already active.</em></p>'; |
| 39 | } |
| 40 | ?> |
| 41 | </p> |
| 42 | </div> |
| 43 |