Onlinefotka Payment/Shipping Icons

描述

Onlinefotka Payment/Shipping Icons lets you enhance every shipping and payment method in WooCommerce with:

  • Custom icon — upload any image from the Media Library (PNG, SVG, WebP). Choose from 4 display positions: before, after, above or below the method name.
  • Static note — a short description shown under the method label in the cart and checkout (e.g. “Delivery in 2–3 business days”).
  • Dynamic cutoff message — a time-based message that changes automatically depending on when the customer orders. Example: before 12:00 “Order now and we’ll deliver today!”, after 12:00 “Delivery tomorrow morning.”
  • Delivery time slots — let customers pick a preferred delivery window (e.g. 08:00–12:00) directly in checkout. The chosen slot is saved to the order and visible in the order detail in the admin.

Compatibility

  • ✅ Classic WooCommerce checkout
  • ✅ WooCommerce Block Checkout (Gutenberg)
  • ✅ WooCommerce HPOS (High-Performance Order Storage)
  • WooCommerce 7.0+

Icon position options

Icons can be placed in 4 positions, configurable per method via the admin UI or overridden with CSS using the .opsi-method-wrap wrapper and .opsi-pos-before / after / above / below modifier classes.

安装

  1. Upload the plugin folder to /wp-content/plugins/ or install via Plugins Add New Upload Plugin.
  2. Activate the plugin.
  3. Go to WooCommerce Ikony dopravy a platby.
  4. Click on any shipping or payment method card to expand it.
  5. Upload an icon, add a note, set cutoff rules and/or delivery time slots.
  6. Click Save changes.

常见问题

Does it work with the WooCommerce Block Checkout?

Yes. The plugin uses a WooCommerce Blocks IntegrationInterface to pass data to JavaScript, which injects icons and notes into the block-rendered checkout without modifying any templates.

Where can I see the chosen delivery time slot?

In the WooCommerce order detail page under the shipping address section, and in the customer-facing order confirmation page.

Can I style the icons with CSS?

Yes. Each method label is wrapped in .opsi-method-wrap.opsi-pos-{position}. You can override the layout, icon size, gap and anything else from your theme’s CSS.

How do cutoff rules work?

Rules are evaluated top to bottom. The first rule whose time has not yet passed is applied. The “fallback message” is shown after all cutoff times have passed for the day.

Example:
* Rule 1 — 12:00 “Order now and we’ll deliver today!”
* Rule 2 — 14:00 “Delivery tomorrow morning.”
* Fallback — “Delivery in 2 days.”

Does it slow down my site?

No. All settings are stored in a single WordPress option. The frontend CSS and JS are enqueued only on cart and checkout pages.

评价

此插件暂无评价。

贡献者及开发者

「Onlinefotka Payment/Shipping Icons」是开源软件。 以下人员对此插件做出了贡献。

贡献者

「Onlinefotka Payment/Shipping Icons」插件已被翻译至 1 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Onlinefotka Payment/Shipping Icons」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1.0

  • Fix: Plugin folder renamed to match wp.org slug — existing installations now update correctly.
  • Add: Custom HTML template field per shipping/payment method.
  • Add: opsi_method_template filter hook for developers.
  • Fix: Icon media picker always applied to the first method instead of the clicked one.
  • Fix: PHP fatal error when multiple Onlinefotka plugins are active simultaneously.
  • Add: “Our other plugins” sidebar panel on settings page.
  • Add: PayPal donate link in plugin header and plugins list.

1.0.3

  • Add: Custom HTML template field per shipping/payment method.
  • Add: opsi_method_template filter hook for developers.
  • Improve: Note field description now mentions HTML support.

1.0.2

  • Fix: Icon media picker always applied to the first method instead of the selected one.

1.0.1

  • Fix: PHP fatal error when multiple Onlinefotka plugins are active simultaneously (class_exists guard).
  • Add: “Our other plugins” sidebar panel on settings page.
  • Add: PayPal donate link in plugin header and plugins list.

1.0.0

  • Initial release.
  • Custom icons for shipping and payment methods.
  • Static notes per method.
  • Dynamic cutoff messages (time-based).
  • Delivery time slot selector.
  • 4 icon positions (before / after / above / below).
  • Full WooCommerce Block Checkout support.
  • HPOS compatible.