<?php

namespace Webnestors\Wsn\Snippets;

class CartEmptyCartButton extends \Webnestors\Wsn\Snippet {
    public $button_text = "Button Text";

    public function is_pro() : bool {
        return true;
    }

    public function tab() : string {
        return "cart";
    }

    public function title() : string {
        return esc_html__( "Empty Cart Button", "enhancements-for-woocommerce" );
    }

    public function description() : string {
        return esc_html__( "Creates a button with which the user can empty their cart with one click.", "enhancements-for-woocommerce" );
    }

    public function meta() : array {
        return [[
            "label" => esc_html__( "Button Text", "enhancements-for-woocommerce" ),
            "name"  => "button_text",
            "type"  => "text",
        ]];
    }

    public function tooltip() : ?string {
        ob_start();
        ?>
        <h1><strong><?php 
        echo esc_html( $this->title() );
        ?></strong></h1>
        <h3>Description</h3>
        <p>The Empty Cart Button module provides a convenient option for customers to clear their entire cart with a single click. This feature places an “Empty Cart” button directly on the cart page, allowing users to remove all items from their cart instantly without having to delete products one by one. It simplifies the shopping experience, especially for customers who want to start over or modify their order significantly.</p>
        <p>This feature enhances the usability of your store’s cart page, making it faster and easier for customers to manage their selections. It’s particularly useful in stores where customers often adjust their purchases or experiment with different products and quantities.</p>
        <h3>Settings</h3>
        <h4>Button Text</h4>
        <p>Write the text that you like for the button label.</p>
        <h3>Appearance</h3>
        <p>The button takes the default css properties of your theme.</p>
        <?php 
        return ob_get_clean();
    }

    public function run() {
    }

    function wn_empty_cart_button() {
    }

    function wn_empty_cart_button_empty_cart_action() {
    }

}
