X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Non-newbie probs creating skin2 and switching skins in 3.3.1 (https://forum.x-cart.com/showthread.php?t=1323)

minorgod 01-29-2003 11:49 AM

Non-newbie probs creating skin2 and switching skins in 3.3.1
 
Well, here I am again, finishing up another x-cart mod (for version 3.3.1)and wouldn't you know it, they changed the way the templates are found by x-cart.

I can't seem to get x-cart to find my new templates. Here's what I've done...am I forgetting something?....
  • 1.Duplicated the skin1 and skin1_original directories and renamed them skin2 and skin2_original.

    2.Changed the names of the skin1.conf and skin1.css to skin2.conf and skin2.css respectively.

    3.Changed 3 lines in my config.php file to read
    Code:

    $templates_repository = "../skin2_original";
    $smarty->assign("skin_config","skin2.conf");
    $mail_smarty->assign("skin_config","skin2.conf");


    4.Uploaded all the files.
Now when I look at my site I'm seeing the following error:
Quote:

Warning: Config_File error: Could not open config file '../skin1/skin2.conf' in /home/minorgod/traintosuccess-www/xcart.3.3.1/Smarty-2.3.0/Config_File.class.php on line 335

Anyone have a clue why this is happening? Is the "config.php.cnf" file used for anything? Might I need to change that as well? Why the heck is this thing looking in the skin1 directory for skin2.conf?

jpsowin 01-29-2003 03:01 PM

Maybe permissions?

minorgod 01-29-2003 09:38 PM

nope, I've tried making the whole damned site writable. I'm starting to think there's something hard-coded that's making x-cart look for the skin1 directory since I've changed everything in the config.php file to skin2.

minorgod 01-29-2003 10:28 PM

ah HA!
 
I found the culprit...it the "smarty.php" file. There's several places there where the smarty object needs to have the template directory changed.

funkydunk 01-29-2003 11:48 PM

Minorgod,

love your site..some useful extensions for MX there for PHP MySql

How do you get on with PHP Nuke?

minorgod 01-30-2003 08:45 AM

Thanks....it's in a bit of a state of disrepair...I put up a Nuke site when I released my Dreamweaver extensions so I could have a plug-and-play CMS up and running in a few hours, but I never got around to tweaking the interface. The earlier versions of the site are a more creative, but less useful. Anyway, thanks for the props...we should probably stay on topic though, lest we be moderated.


All times are GMT -8. The time now is 02:24 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.