<?php

namespace Webnestors\Wsn\Snippets;

class AdminAddToCartClickCounter extends \Webnestors\Wsn\Snippet {
    public function is_pro() : bool {
        return true;
    }

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

    public function title() : string {
        return esc_html__( "Add to Cart Click Counter", "enhancements-for-woocommerce" );
    }

    public function description() : string {
        return esc_html__( "Creates a new product widget which shows how many times a product was added to the cart and its conversion rate.", "enhancements-for-woocommerce" );
    }

    public function meta() : array {
        return [];
    }

    public function tooltip() : ?string {
        ob_start();
        ?>
        <h1><strong><?php 
        echo esc_html( $this->title() );
        ?></strong></h1>
        <h3>Description</h3>
        <p>The Add to Cart Click Counter module introduces a new product widget that tracks and displays how many times a specific product has been added to the cart, along with its conversion rate. This feature provides valuable insights into product performance, helping store owners gauge the popularity and effectiveness of individual items.</p>
        <h3>Settings</h3>
        <p>Just enable this and you go to each product and see the meta box</p>
        <h3>Appearance</h3>
        <p>The are no appearence options for this module</p>
        <?php 
        return ob_get_clean();
    }

    public function run() {
    }

    function wn_add_to_cart_button_click_counter() {
    }

    function wn_add_cart_clicked() {
    }

    function wn_product_meta_box_add_cart_clicks() {
    }

    function wn_display_add_cart_stats() {
    }

}
