Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

K2 Store Compatibility

01-17-2014, 05:25 AM
# 1 (permalink)
callie
Trying to build a new site on localhost - brand new Joomla 3.2.1 install. Tried also with demo for Moviedom and Dailynews which I've installed, then upgraded to Joomla 3.2.1.

The sites work just fine until I install K2 Store 3.7.2 Core. After installation the Save buttons in the template manager no longer work, and I can't change link colours - the pop up doesn't appear and even if I type a hex number in and use Save and Close, it doesn't apply.

I know your templates are compatible with K2 and some of your older ones are compatible with K2 Store. Any idea why this isn't compatible on Joomla 3.2.1 with K2 Store 3.7.2?
Many thanks

Are you sure your are posting in product assigned forum?: Yes

What is your CMS version?: WordPress 3.x

MySQL Version: 5.x

PHP version: 5.x

Link to installation: It's on wampserver on localhost

Have you edited any files? If yes tell us which ones.: No

Is this personal or client website?: Personal
01-17-2014, 07:36 AM
# 2 (permalink)
neo
only way this can happen is if k2 store is adding js in template admin but it should not do that, give me few to check
01-17-2014, 07:59 AM
# 4 (permalink)
neo
this should be reported to them , in their plugin they dont even check if the component is k2store so on after route they just require stuff and add things in head

change plugins\system\k2store\k2store.php contents with the one below, I added check for the com_k2

PHP Code:

<?php 
/*------------------------------------------------------------------------ 
 # com_k2store - K2 Store 
# ------------------------------------------------------------------------ 
# author    Ramesh Elamathi - Weblogicx India http://www.weblogicxindia.com 
# copyright Copyright (C) 2012 Weblogicxindia.com. All Rights Reserved. 
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL 
# Websites: http://k2store.org 
# Technical Support:  Forum - http://k2store.org/forum/index.html 
-------------------------------------------------------------------------*/ 


// no direct access 
defined'_JEXEC' ) or die( 'Restricted access' ); 

jimport'joomla.plugin.plugin' ); 
jimport('joomla.html.parameter'); 

class 
plgSystemK2Store extends JPlugin 

    function 
plgSystemK2Store( &$subject$config ){ 
        
parent::__construct$subject$config ); 
        
//load default language 
        
$lang JFactory::getLanguage(); 
        
$lang->load('com_k2store'JPATH_SITE); 
    } 

    function 
onBeforeRender() { 
             
// check first if this is k2 , suggestion by YJ 
            
$mainframe JFactory::getApplication(); 
            
$option      $mainframe->input->get('option'); 
             
            if(
$option == 'com_k2' && $mainframe->isAdmin() ){ 
         
                 
                
$document =JFactory::getDocument(); 
                require_once (
JPATH_ADMINISTRATOR.'/components/com_k2store/library/popup.php'); 
                require_once (
JPATH_SITE.'/components/com_k2store/helpers/modules.php'); 
                
//JHtml::_('behavior.framework'); 
                
JHtml::_('behavior.modal'); 
                
$baseURL JURI::root(); 
                
$script 
                if(typeof(k2storeURL) == 'undefined') { 
                var k2storeURL = '
{$baseURL}'; 
                } 
                "

                
$document->addScriptDeclaration($script); 
            } 

    } 
//end of function 
}
01-18-2014, 02:46 AM
# 6 (permalink)
callie
Brilliant response. Thanks so much. I'll give it a try later and report the result.
01-18-2014, 05:55 AM
# 7 (permalink)
callie
Thank you so much for your help. Your code works a treat.
Top class!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

Members Login

Username
Password