• Resolved AITpro

    (@aitpro)


    Please add a conditional wrap to prevent these WP EasyCart functions/code from loading on other plugins pages. Thanks.
    File: /plugins/wp-easycart/inc/admin/admin_init.php
    Code line: 1038 and modify this function: ec_print_editor( ) by adding this conditional wrap/code:

    function ec_print_editor( ){
    
    if ( preg_match( '/page=ec_adminv2/', esc_html($_SERVER['REQUEST_URI']), $matches) ) {
    
    echo "<div class=\"ec_editor_box_container\" id=\"ec_editor_window\">";
    echo "<a href=\"#\" class=\"ec_editor_close\" onclick=\"return ec_close_editor( );\"><span>x</span></a>";
    echo "<h3 class=\"ec_editor_heading\">Insert EasyCart Shortcodes</h3>";
    echo "<div class=\"ec_editor_inner_container\">";
    // Start Container Inner
    ec_print_editor_shortcode_menu( ); // Shortcode Menu
    // Store shortcode, no options, nothing needed
    ec_print_editor_product_menu( );// Product Menu Store Shortcode Panel
    ec_print_editor_product_category( );// Product Category Store Shortcode Panel
    ec_print_editor_manufacturer_group( );// Manufacturer Group Store Shortcode Panel
    ec_print_editor_product_details( );// Product Details Store Shortcode Panel
    // Cart shortcode, no options, nothing needed
    // Account shortcode, no options, nothing needed
    ec_print_editor_single_product( );// Single Product Shortcode Panel
    ec_print_editor_multiple_products( );// Multiple Products Shortcode Panel
    ec_print_editor_add_to_cart( );// Add to Cart Shortcode Panel
    // Cart Display shortcode, no options, nothing needed
    ec_print_editor_membership_content( );// Add to Cart Shortcode Panel
    // End Container Inner
    echo "</div>";
    echo "</div>";
    echo "<div class=\"ec_editor_overlay\" id=\"ec_editor_bg\"></div>";
    }
    }

    https://wordpress.org/plugins/wp-easycart/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter AITpro

    (@aitpro)

    Also please make this a Dismiss Notice since it is loading in other plugin’s pages: “EasyCart is best run with the WP EasyCart Admin Console, click here to learn how it can be installed.” Thanks.

    Plugin Author levelfourdevelopment

    (@levelfourstorefront)

    We do not provide support here, as the first and last post mention… please submit tickets on our website. thanks

    Thread Starter AITpro

    (@aitpro)

    Ok great. I’ll ask the user to create a ticket for this. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Code Mode needed’ is closed to new replies.