Jump to content

i have add a tab to product form in BO,but the javascript can't work well,any help?


Recommended Posts

1. i have add a tab to product form in BO,but the javascript can't work well,any help?  ps 8.1.1

the is a confirmationModal in my code , it can't lanch ,even i have add confirmation-modal.js before my js files, it still can't work 

2. and i have tried EntityInputFormType or ProductTypeAheadCollectionFormType ,it doesn't work too, my question is need i add custom js code to use them ? 

3.about typescript , if i use it in my module and import ts form Prestashop(BO), should i bundle my js code to product.edit.form.js or

i should import prestashop code to my module ts,

thank you,

 

 

 

 

Link to comment
Share on other sites

5 minutes ago, QuickUpdate.net said:

Why don't you post the code that you used that is not working?

just this confirmation modal, there is no error informaion in broswer console,

maybe the product page import new js( typescript) now,

window.modalConfirmation.create(

        window.translate_javascripts['Are you sure you want to delete this item?'],

        null,

        {

          onContinue: () => {

            $(e.target).parents('.media').remove();

 

            // Save current product after its related product has been removed

            $('#submit').click();

          },

        }).show();

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...