Title: Code Mode needed
Last modified: August 22, 2016

---

# Code Mode needed

 *  Resolved [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/code-mode-needed/)
 * 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/](https://wordpress.org/plugins/wp-easycart/)

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

 *  Thread Starter [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/code-mode-needed/#post-5929127)
 * 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](https://wordpress.org/support/users/levelfourstorefront/)
 * (@levelfourstorefront)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/code-mode-needed/#post-5929468)
 * We do not provide support here, as the first and last post mention… please submit
   tickets on our website. thanks
 *  Thread Starter [AITpro](https://wordpress.org/support/users/aitpro/)
 * (@aitpro)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/code-mode-needed/#post-5929469)
 * 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.

 * ![](https://ps.w.org/wp-easycart/assets/icon-256x256.png?rev=1015460)
 * [Shopping Cart & eCommerce Store](https://wordpress.org/plugins/wp-easycart/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-easycart/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-easycart/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-easycart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-easycart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-easycart/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [AITpro](https://wordpress.org/support/users/aitpro/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/code-mode-needed/#post-5929469)
 * Status: resolved