HEX
Server: Apache
System: Linux srv13.cpanelhost.cl 3.10.0-962.3.2.lve1.5.38.el7.x86_64 #1 SMP Thu Jun 18 05:28:41 EDT 2020 x86_64
User: cca63905 (4205)
PHP: 7.3.20
Disabled: NONE
Upload Files
File: //proc/self/cwd/nueva/modules/btecommercecopilot/views/templates/admin/buildfor/psAccountLink.tpl
{* Ecommerce copilot
*
* @author    businesstech.fr <modules@businesstech.fr> - https://www.businesstech.fr/
* @copyright Business Tech - https://www.businesstech.fr/
* @license   see file: LICENSE.txt
*
*           ____    _______
*          |  _ \  |__   __|
*          | |_) |    | |
*          |  _ <     | |
*          | |_) |    | |
*          |____/     |_|
*}

<script src="{$urlAccountsCdn|escape:'htmlall':'UTF-8'}" rel=preload></script>

<prestashop-accounts></prestashop-accounts>

<script>
    document.addEventListener('DOMContentLoaded', function() {
        /*********************
         * PrestaShop Account *
         * *******************/
        window?.psaccountsVue?.init();

        if (window.psaccountsVue.isOnboardingCompleted() != true) {
            $('.nav-tabs a[href="#billing-settings"]').tab('show');
            $('.nav-tabs a[href="#advanced-settings"]').hide();
            $('.nav-tabs a[href="#generator-settings"]').hide();
            $('.nav-tabs a[href="#prompt-settings"]').hide();
        } else {
            /*********************
             * PrestaShop Billing *
             * *******************/
            window.psBilling.initialize(window.psBillingContext.context, '#ps-billing', '#ps-modal', (type, data) => {
                // Event hook listener
                switch (type) {
                    // Hook triggered when PrestaShop Billing is initialized
                    case window.psBilling.EVENT_HOOK_TYPE.BILLING_INITIALIZED:
                        break;
                        // Hook triggered when the subscription is created or updated
                    case window.psBilling.EVENT_HOOK_TYPE.SUBSCRIPTION_UPDATED:
                        break;
                        // Hook triggered when the subscription is cancelled
                    case window.psBilling.EVENT_HOOK_TYPE.SUBSCRIPTION_CANCELLED:
                        break;
                }
            });
        }

        window.psBilling.initializeInvoiceList(
            window.psBillingContext.context,
            "#ps-billing-invoice"
        );
    });
</script>