1. Home
  2. Docs
  3. Doc of Popup Notices: Add...
  4. ShortCode
  5. Shortcodes Guide

Shortcodes Guide

 

Popups for WooCommerce: Add to Cart, Checkout & More – Shortcodes Guide

These shortcodes allow you to customize and manage popup notices in your WooCommerce store, enhancing the user experience by ensuring important messages are seen and acted upon. The shortcodes are categorized into Free and Pro versions for ease of use.


Free Version Shortcodes

  1. [ttt_pnwc_get_message]
    • Description: This shortcode is used to display specific WooCommerce messages within popups. It allows for more customized and controlled messaging within your WooCommerce store.
    • Parameters:
      • filter: Apply a filter to select specific messages based on criteria such as product ID or message type.
    • Example Usage: [ttt_pnwc_get_message filter=”add_to_cart”]
    • Use Case: Display a popup message specifically when a product is added to the cart, ensuring customers notice the action.
  2. [ttt_pnwc_modal_template]
    • Description: This shortcode allows you to customize the modal template for popups. It provides the flexibility to modify the appearance and layout of the popup notices.
    • Parameters:
      • template_id: The ID of the template you want to use.
    • Example Usage: [ttt_pnwc_modal_template template_id=”custom_1″]
    • Use Case: Use this shortcode to apply a custom template to your popup, aligning the notice style with your store’s branding.

Pro Version Shortcodes

  1. [ttt_pnwc_advanced_filter]
    • Description: This shortcode offers advanced filtering options for WooCommerce messages, allowing for greater control over which messages are displayed in popups.
    • Parameters:
      • message_type: Filter by message type (e.g., error, success).
      • priority: Set the priority level for messages to determine their display order.
    • Example Usage: [ttt_pnwc_advanced_filter message_type=”error” priority=”high”]
    • Use Case: Display error messages with high priority in popups to ensure customers immediately see and address issues during the checkout process.
  2. [ttt_pnwc_modal_settings]
    • Description: This shortcode allows you to control various settings of the popup modal, such as auto-close behavior, display duration, and whether the popup should be dismissed on outside clicks.
    • Parameters:
      • auto_close: Set the duration (in seconds) after which the popup will automatically close.
      • dismiss_on_outside_click: Set to true to allow the popup to be dismissed when clicking outside of it.
    • Example Usage: [ttt_pnwc_modal_settings auto_close=”10″ dismiss_on_outside_click=”true”]
    • Use Case: Configure popups to automatically close after 10 seconds, with the option for users to dismiss them by clicking outside the popup, enhancing usability and reducing disruption.

These shortcodes empower you to create a more interactive and user-friendly shopping experience in your WooCommerce store by leveraging popups to communicate important messages effectively. The Free version provides essential tools to get started, while the Pro version offers advanced features for more control and customization.

  • Personalize Offers: Use the shortcode to insert the customer’s name or past purchase history, creating a more personalized experience.
  • Highlight Cart Contents: Dynamically display the contents of a visitor’s cart within the popup, reminding them of the items they’re about to purchase.
  • Showcase Limited-Time Offers: Integrate a countdown timer using the shortcode to create a sense of urgency and encourage immediate action.

 

Popup Notices for WooCommerce: Add to Cart, Checkout & More

Tags