Okay
  Public Ticket #2019126
Amelia doesn't work with my theme
Closed

Comments

  • Delacroi started the conversation

    Amelia plugin does not work on "myListing" theme. See the screenshots.

    In categories i can not add a categorie. The plus button shown incorrectly and doesnt work.

    If i click to the settings i see only white field.

  •  472
    Isidora replied

    Hi Delacroi,
    Thank you for your purchase.

    Sorry for inconvenience,

    We found out that your theme also use vue.js so there is a conflict with them. You can fix this by changing some code (order of including those scripts) in your theme. You can update the My Listing theme, in file ../wp-content/themes/my-listing/includes/admin.php search for:

    wp_enqueue_script( 'theme-script-vendor', c27()->template_uri( 'assets/dist/admin/vendor.js' ), ['jquery'], CASE27_THEME_VERSION, true );
    wp_enqueue_script( 'theme-script-main', c27()->template_uri( 'assets/dist/admin/admin.js' ), ['jquery'], CASE27_THEME_VERSION, true );

    and replace it with:

    if (substr(get_current_screen()->base, 0, 6) === 'amelia') {
        wp_enqueue_script( 'theme-script-vendor', c27()->template_uri( 'assets/dist/admin/vendor.js' ), ['jquery', 'amelia_booking_scripts'], CASE27_THEME_VERSION, true );    wp_enqueue_script( 'theme-script-main', c27()->template_uri( 'assets/dist/admin/admin.js' ), ['jquery', 'amelia_booking_scripts'], CASE27_THEME_VERSION, true );
    } else {
        wp_enqueue_script( 'theme-script-vendor', c27()->template_uri( 'assets/dist/admin/vendor.js' ), ['jquery'], CASE27_THEME_VERSION, true );    wp_enqueue_script( 'theme-script-main', c27()->template_uri( 'assets/dist/admin/admin.js' ), ['jquery'], CASE27_THEME_VERSION, true );
    }

    and in file ../wp-content/themes/my-listing/includes/assets.php search for:

    wp_enqueue_script( 'mylisting-vendor', c27()->template_uri( 'assets/dist/frontend/vendor.js' ), ['jquery'], CASE27_THEME_VERSION, true );
    wp_enqueue_script( 'c27-main', c27()->template_uri( 'assets/dist/frontend/frontend.js' ), ['jquery'], CASE27_THEME_VERSION, true );

    and replace it with:

    if (has_shortcode(get_page(get_the_ID())->post_content, 'ameliabooking') || has_shortcode(get_page(get_the_ID())->post_content, 'ameliacatalog') || has_shortcode(get_page(get_the_ID())->post_content, 'ameliasearch')) {
        wp_enqueue_script( 'mylisting-vendor', c27()->template_uri( 'assets/dist/frontend/vendor.js' ), ['jquery', 'amelia_booking_scripts'], CASE27_THEME_VERSION, true );    wp_enqueue_script( 'c27-main', c27()->template_uri( 'assets/dist/frontend/frontend.js' ), ['jquery', 'amelia_booking_scripts'], CASE27_THEME_VERSION, true );
    } else {
        wp_enqueue_script( 'mylisting-vendor', c27()->template_uri( 'assets/dist/frontend/vendor.js' ), ['jquery'], CASE27_THEME_VERSION, true );    wp_enqueue_script( 'c27-main', c27()->template_uri( 'assets/dist/frontend/frontend.js' ), ['jquery'], CASE27_THEME_VERSION, true );
    }

    and everything should work fine. 

    Please note that when you update theme this will be overwritten so you will need to do it again.

    If this doesn't help then I suppose that this theme has updated own files and maybe reorder of these lines, then please send me that theme, so we can test in our local environment and find some solution.

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • Delacroi replied

    Hi Milan, unfortunately this code does not exist in admin.php. I can not send these theme here, because it weighs 20mb. I can send to your email if you write me.

  •  472
    Isidora replied

    Hi Delacroi,
    Thank you for your purchase.

    I suppose that they update files in new update.

    Please send me on my email:

    [email protected]

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • Delacroi replied

    Hi Milan,

    I just sent you a link to download the file.

    best regards

  •  472
    Isidora replied

    Hi Delacroi,

    Yes we get it. It is forward to my development team to investigate and try to find some solution.

    We I receive feedback from them I will contact you.

    Best regards

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  •  472
    Isidora replied

    Hi Delacroi,

    We found that theme authors change logic of including files in back-end and front-end. You can fix this by changing some code (order of including those scripts) in your theme. You can update the My Listing theme, in file ..wp-content/themes/my-listing/includes/src/admin/admin.php search for:

    wp_enqueue_script( 'vuejs' );

    around line 48 and replace it with:

    if (!(substr(get_current_screen()->base, 0, 6) === 'amelia')) {
          wp_enqueue_script('vuejs');
    }

    and in same file around line 64 you will find this:

    wp_enqueue_script('theme-script-main', c27()->template_uri('assets/dist/admin/admin.js'), ['jquery'], CASE27_THEME_VERSION, true);

    and you will need to replace with this:

    if (!(substr(get_current_screen()->base, 0, 6) === 'amelia')) {
         wp_enqueue_script('theme-script-main', c27()->template_uri('assets/dist/admin/admin.js'), ['jquery'], CASE27_THEME_VERSION, true);
    }

    and in file ..wp-content/themes/my-listing/includes/assets.php search for:

     wp_enqueue_script( 'mylisting-vendor', c27()->template_uri( 'assets/dist/vendor.js' ), ['jquery'], CASE27_THEME_VERSION, true );
     wp_enqueue_script( 'c27-main', c27()->template_uri( 'assets/dist/frontend.js' ), ['jquery'], CASE27_THEME_VERSION, true );

    around line 158 and replace it with this:

    if (has_shortcode(get_post(get_the_ID())->post_content, 'ameliabooking') || has_shortcode(get_post(get_the_ID())->post_content, 'ameliacatalog') || has_shortcode(get_post(get_the_ID())->post_content, 'ameliasearch')) {
      wp_enqueue_script( 'mylisting-vendor', c27()->template_uri( 'assets/dist/vendor.js' ), ['jquery', 'amelia_booking_scripts'], CASE27_THEME_VERSION, true );
      wp_enqueue_script( 'c27-main', c27()->template_uri( 'assets/dist/frontend.js' ), ['jquery', 'amelia_booking_scripts'], CASE27_THEME_VERSION, true );
    } else {
      wp_enqueue_script( 'mylisting-vendor', c27()->template_uri( 'assets/dist/vendor.js' ), ['jquery'], CASE27_THEME_VERSION, true );
      wp_enqueue_script( 'c27-main', c27()->template_uri( 'assets/dist/frontend.js' ), ['jquery'], CASE27_THEME_VERSION, true );
    }

    and everything should work fine. 

    Please note that when you update theme this will be overwritten so you will need to do it again.

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • Delacroi replied

    The code is different from the one you wrote. Please replace it by yourrself.

    I send you the ftp entry to your email. I think it gonna be faster. Thank you in advance.

  •  472
    Isidora replied

    Hi Delacroi,

    Sorry for late response. 

    We are located in Serbia and our working time is from 10:00 to 17:00 CET. business days.

    Yes no problem. We connect your website and change those files. 

    Please clear your server (if you have it) and browser cache and check your website.

    Let me know is it working. We test it in our local environment and it is working fine.

    Best regards.


    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables

  • Delacroi replied

    Hi Milan, тow I can not get to the page

    when i go to the website i see following error message(Screen1): "The website has technical difficulties."

    When i try to open the admin pannnel i get this message(Screen2): "The site has technical difficulties. Please check the website administrator's e-mail inbox for further instructions."

  •   Isidora replied privately
  • Delacroi replied

    Thanx, it's working now

  •  472
    Isidora replied

    Hi Delacroi,

    You are welcome.  

    If you have any more issues or questions feel free to open a new ticket, we will gladly help.

    We'd greatly appreciate it if you could take a minute and leave a Review on CodeCanyon on this link. Thanks! 

    Best regards.

    Kind Regards, 

    Isidora Markovic

    wpDataTables: FAQFacebookTwitterFront-end and back-end demoDocs

    Amelia: FAQFacebookTwitter |  Amelia demo sites | Docs

    You can try our wpDataTables add-ons before purchase on these sandbox sites:

    Powerful FiltersGravity Forms Integration for wpDataTablesFormidable Forms Integration for wpDataTables