<?php

namespace Webnestors\Wsn\Snippets;

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

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

    public function title() : string {
        return esc_html__( "Update cart on quantity selection", "enhancements-for-woocommerce" );
    }

    public function description() : string {
        return esc_html__( "Automatically updates the cart when the user chooses a new quantity.", "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 Update Cart on Quantity Selection module enhances the user experience by automatically updating the cart totals whenever a customer changes the quantity of a product. This means customers won’t have to manually click the "Update Cart" button to see the revised totals or product changes—they’ll instantly see the new price, taxes, and shipping costs calculated based on their updated selections.</p>
        <p>This feature streamlines the shopping process, reducing friction and making the cart experience smoother and more intuitive for customers. By eliminating the need for manual updates, it saves customers time and effort, leading to a faster checkout process and increased customer satisfaction.</p>
        <h3>Settings</h3>
        <p>This module does not have any settings.</p>
        <h3>Appearance</h3>
        <p>This module does not have any customization options.</p>
        <?php 
        return ob_get_clean();
    }

    public function run() {
    }

}
