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>