<?php

namespace Webnestors\Wsn\Snippets;

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

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

    public function title() : string {
        return esc_html__( "Display Shipping Methods", "enhancements-for-woocommerce" );
    }

    public function description() : string {
        return esc_html__( "Enabling this automatically the shipping methods that you have setup will be displayed on the single product page", "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 Display Shipping Methods module provides an automatic display of available shipping methods on the single product page, giving customers transparency about their delivery options before they reach checkout. This feature pulls in the shipping methods configured in WooCommerce, such as standard shipping, express delivery, or local pickup, and displays them with estimated delivery times and costs, helping customers make informed purchasing decisions right on the product page.</p>
        <p>This module enhances the user experience by providing relevant shipping information up front, reducing cart abandonment caused by unexpected shipping costs or delivery times at checkout.</p>
        <h3>Settings</h3>
        <p>There are no settings for this module.</p>
        <h3>Appearance</h3>
        <p>There are no customization options for this module.</p>
        <?php 
        return ob_get_clean();
    }

    public function run() {
    }

    function wn_shipping_rates_single_product() {
    }

}
