The free edition applies no filters of its own. Its identifiers start gmsdcf; the full edition's start gmsdc. They are listed side by side.
Filters — Full edition
gmsdc_panel_title
The heading at the top of the panel. Default "Your cart".
add_filter( 'gmsdc_panel_title', function () {
return 'Your basket';
} );
gmsdc_settings, gmsdc_modules, gmsdc_license_api_url, gmsdc_update_cache_ttl
The merged settings array, the boot module list, the gatemi.com licensing endpoint (for staging mirrors) and how long the update payload is cached.
Actions — Full edition
gmsdc_booted
Fires once the plugin has booted, with its service container.
WooCommerce hooks used
| Hook | |
|---|---|
wp_footer (priority 50) |
Prints the side cart, except on the cart and checkout pages |
wp_enqueue_scripts |
Loads the stylesheet and script on the same pages |
woocommerce_add_to_cart_fragments |
Adds the panel as a fragment, keyed div.gmsdcf (free) or div.gmsdc (full) |
Endpoints
On WooCommerce's frontend AJAX channel, ?wc-ajax=<action>, by POST. Every request needs nonce — created for the action gmsdcf_cart (free) or gmsdc_cart (full) and handed to the script as gmsdcfData.nonce / gmsdcData.nonce.
| Free | Full | Fields | Does |
|---|---|---|---|
gmsdcf_set_qty |
gmsdc_set_qty |
key, qty |
Sets a line's quantity with WC_Cart::set_quantity(); 0 removes it |
gmsdcf_remove |
gmsdc_remove |
key |
Removes a line with WC_Cart::remove_cart_item() |
| — | gmsdc_apply_coupon |
code |
Applies a coupon with WC_Cart::apply_coupon() |
key is the WooCommerce cart item key. Each answers with JSON carrying the refreshed fragments.
Opening the panel from your own link
Any element with the data-gmsdcf-open attribute (free) or data-gmsdc-open (full) opens the panel when clicked; data-gmsdcf-close / data-gmsdc-close closes it. Clicks are handled from the document, so the element can be anywhere on the page.
<a href="/cart/" data-gmsdc-open="1">View basket</a>
The href still works when JavaScript is off. While the panel is open, <body> carries the class gmsdcf-open / gmsdc-open.
Options
| Option | |
|---|---|
gmsdcf_settings |
Free edition: enabled, open_on_add |
gmsdc_settings |
Full edition: enabled, open_on_add, floating_button, button_position, show_progress, show_coupon, accent_color |
gmsdc_license |
Full edition licence state |
CSS classes
The same structure in both editions; replace gmsdc with gmsdcf for the free edition.
| Class | Element |
|---|---|
.gmsdc |
The root element (full edition: carries --gmsdc-accent) |
.gmsdc-overlay |
The dark overlay |
.gmsdc-panel |
The slide-out panel |
.gmsdc-header, .gmsdc-title, .gmsdc-count, .gmsdc-close |
The header |
.gmsdc-items, .gmsdc-item |
The list of lines and one line |
.gmsdc-item-image, .gmsdc-item-main, .gmsdc-item-name, .gmsdc-item-price |
A line's parts |
.gmsdc-qty, .gmsdc-qty-step, .gmsdc-qty-input, .gmsdc-remove |
Quantity controls |
.gmsdc-empty |
"Your cart is empty." |
.gmsdc-footer, .gmsdc-subtotal, .gmsdc-subtotal-amount |
The footer and subtotal |
.gmsdc-button, .gmsdc-button--primary |
View cart, Checkout, Continue shopping |
.gmsdc-fab, .gmsdc-fab-icon, .gmsdc-fab-count |
The floating button |
.gmsdc-progress, .gmsdc-progress-msg, .gmsdc-progress-msg--done, .gmsdc-progress-track, .gmsdc-progress-fill |
Full edition: the free-shipping meter |
.gmsdc-coupon, .gmsdc-coupon-input, .gmsdc-coupon-msg |
Full edition: the coupon field |
/* A wider panel on large screens. */
@media (min-width: 1200px) {
.gmsdc-panel { width: 460px; }
}
The stylesheets are RTL-safe and honour prefers-reduced-motion.
