<?php

namespace Webnestors\Wsn\Snippets;

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

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

    public function title() : string {
        return __( "Product Quantity at Checkout", "enhancements-for-woocommerce" );
    }

    public function description() : string {
        return __( "Place a quantity selector at checkout for each product.", "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 Product Quantity at Checkout module adds a quantity selector for each item directly on the checkout page, allowing customers to adjust product quantities without needing to return to the cart. This feature enhances convenience, especially for customers who decide to modify their order quantities last-minute, streamlining the checkout experience and potentially increasing order values.</p>
        <p>Ideal for stores that encourage bulk purchases or provide discounts on multiple items, this module gives shoppers flexibility to make adjustments quickly, improving overall satisfaction and ease of use.</p>
        <h3>Settings</h3>
        <p>Just eneble this module, there are no settings here</p>
        <h3>Appearance</h3>
        <p>The are no appearence options for this module</p>
        <?php 
        return ob_get_clean();
    }

    public function run() {
    }

    function wn_checkout_item_quantity_input( $product_quantity, $cart_item, $cart_item_key ) {
    }

    function wn_update_item_quantity_checkout( $post_data ) {
    }

}
