Cannot Edit Theme Of "sub-Store" With Visual Editor

[color=#555555]I am testing the multi-store functionality of CS-Cart 4.1.4. I have created a “base-store” and a “sub-store”. I can edit the theme of the base-store using the visual editor, but when I attempt to edit the sub-store theme, I am instead presented with the base-store visual editor.[/color]



[color=#555555]My steps:[/color][list=1]

[][color=#555555]switch admin to the sub-store[/color]

[
][color=#555555]navigate to Design / Themes[/color]

[][color=#555555]click the “Visual Editor” button[/color]

[
][color=#555555]new browser tab opens and I am directed to the Visual Editor for the base-store[/color]

[/list]

[color=#555555]​Can anyone provide a fix? I've posted to the helpdesk, but with their Friday over, I won't have a fix until Monday.[/color]



thanks,

Glen

Anyone? I really need a solution here.

thanks,

Glen

Hi,



I also have the same problem, the editor window does not appear…

Dear Glen,


[quote name='2020' timestamp='1400297589' post='183716']

Anyone? I really need a solution here.

thanks,

Glen

[/quote]



Thank you for the message.



As far as I understand, you set up the second store in a sub-folder. If so, there is a well-known bug with this feature.



To fix it, please open the app/functions/fn.ultimate.php file and replace this line of code:



} elseif (!empty($_SERVER['REQUEST_URI']) && strpos($_SERVER['REQUEST_URI'], $parsed_url['path']) === 0) {




with this one:



} elseif (!empty($_SERVER['REQUEST_URI']) && preg_match("/^" . preg_quote($parsed_url['path'], '/') . "([\/\?].*?)?$/", $_SERVER['REQUEST_URI'], $m)) {




and remove this line of code:



$priority -= strlen(str_replace($parsed_url['path'], '', $_SERVER['REQUEST_URI']));




Save the file. Please make these changes and let us know the result.



Thank you.





Anastasiya Kozlova

CS-Cart Support team

Dear editweb,



Thank you for the message.



Please make sure that you are logged in as the administrator of the store in your storefront. If everything is okay and the Visual Editor feature is not available for you, this problem requires examination on your server. Please contact us via Customer Help Desk and provide temporary access to your server by clicking on the Add record link on the Access information page of your Help Desk account so that we could examine the issue.



Thank you.





Anastasiya Kozlova

CS-Cart Support team