$( document.body ).trigger( 'init_checkout' );
$( document.body ).trigger( 'payment_method_selected' );
$( document.body ).trigger( 'update_checkout' );
$( document.body ).trigger( 'updated_checkout' );
$( document.body ).trigger( 'checkout_error' );
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 🧾 SMEPay for WooCommerce — Support Information Guide | |
| When contacting support for **SMEPay for WooCommerce**, please include the details below. | |
| This helps us diagnose configuration, compatibility, and environment-related issues quickly. | |
| --- | |
| ## 🧩 1. Plugin & System Information | |
| | Item | Details | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import time | |
| SHOP_NAME = "smepay-dev" | |
| ACCESS_TOKEN = "shpat_****143aa466e90046d79dcbe3d6****" | |
| API_VERSION = "2023-07" | |
| headers = { | |
| "X-Shopify-Access-Token": ACCESS_TOKEN, | |
| "Content-Type": "application/json" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Add the field to the checkout | |
| **/ | |
| add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); | |
| function my_custom_checkout_field( $checkout ) { | |
| echo '<div id="my_custom_checkout_field"><h3>'.__('My Field').'</h3>'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| add_action( 'woocommerce_before_checkout_form', 'custom_payment_overlay' ); | |
| function custom_payment_overlay(){ | |
| echo sprintf('<div class="custom-payment-popup"><div class="wpt-payment-overlay"></div><div class="wpt-payment-message">%s</div></div>', | |
| 'We are processing your payment. Please hold on and do not refresh your browser.' | |
| ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Plugin Name: Custom BP Notification2 | |
| * Plugin URI: https://example.com/plugins/the-basics/ | |
| * Description: Handle the basics with this plugin. | |
| * Version: 1.10.3 | |
| * Requires at least: 5.2 | |
| * Requires PHP: 7.2 | |
| * Author: Sajib Talukder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Put this into your functions.php of your child-theme or custom plugin | |
| * you can create the role with wp-cli by running `wp shell` and running the command: | |
| * add_role('merchant','Merchant',array('read' => true, 'delete_posts' => false) ); | |
| */ | |
| /** | |
| * Step #1: create the field used to store the new sale_price for product_variation and for products | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Plugin Name: WP REST API Grid Block | |
| Description: A Gutenberg block that fetches posts via the REST API and displays them in a grid. | |
| Version: 1.0 | |
| Author: Your Name | |
| */ | |
| if (!defined('ABSPATH')) { | |
| exit; // Exit if accessed directly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Declare WooCommerce HPOS compatibility | |
| */ | |
| function yourplugin_declare_hpos_compat() { | |
| if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { | |
| \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); | |
| } | |
| } | |
| add_action( 'before_woocommerce_init', 'yourplugin_declare_hpos_compat' ); |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.
- There are always 24 hours in a day.
- February is always 28 days long.
- Any 24-hour period will always begin and end in the same day (or week, or month).
NewerOlder