X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Easily swap-able skins (mod_skinswap) (https://forum.x-cart.com/showthread.php?t=117)

B00MER 02-22-2006 08:19 AM

Re: Not working with 4.0.17
 
Quote:

Originally Posted by sfabrik
I can't get this mod to work with Smarty-2.6.9 Cart version 4.0.17.
Anyone had luck getting it going on these versions?


Use the smarty.php.4.0.14 file instead of smarty.php.

sfabrik 02-22-2006 08:47 AM

In my install package i have "smarty.php" and "smarty.php.4.0.x".
I don't have one called "smarty.php.4.0.14"
When i use the smarty.php.4.0.x i get a smarty error.
When i look in the smarty php it is for Smarty-2.6.3.
My cart is using Smarty-2.6.9.
I tried changing the path to the smarty directory but there are still errors.

Zaja 02-22-2006 09:08 AM

Re: Not working with 4.0.17
 
Try following, open smarty.php from skinswap package and replace:
1.
Code:

define('SMARTY_DIR', $xcart_dir.DIRECTORY_SEPARATOR."Smarty-2.6.3".DIRECTORY_SEPARATOR);
with:
Code:

define('SMARTY_DIR', $xcart_dir.DIRECTORY_SEPARATOR."Smarty-2.6.9".DIRECTORY_SEPARATOR);
2.
Code:

# 4.0.x
if (!@include(SMARTY_DIR."Smarty.class.php")) {

with:
Code:

# 4.0.17
ini_set('include_path',
        $xcart_dir . "/include/templater"
        . PATH_SEPARATOR . SMARTY_DIR
        . PATH_SEPARATOR . ini_get('include_path'));

include_once($xcart_dir."/include/templater/templater.php");

if (!class_exists('Templater')) {

3.
Code:

$smarty = new Smarty;
with:
Code:

$smarty = new Templater;
4. remove this line:
Code:

$smarty->load_filter("output","trimwhitespace");

sfabrik 02-22-2006 09:20 AM

Thanks Zaja!
 
That did the trick! :lol:

B00MER 02-22-2006 10:02 AM

Quote:

Originally Posted by sfabrik
In my install package i have "smarty.php" and "smarty.php.4.0.x".
I don't have one called "smarty.php.4.0.14"


Feel free to PM me for the smarty.php.4.0.14 file, as this has been included in updated versions of the modification to accomediate for the changes since .14+

Zaja, thanks for the help! :wink:

Newpowerr 05-04-2006 12:10 PM

Skinswap -> X-Cart 4.1
 
I have bought Skin Swap mod, but I am experiencing difficulties to get it to work. The entire smarty.php is different, and thje problems seems to be in that area. It can not load or define the variables for the skin_swap/skin1 locations.

Have you had the chance to take a look at that?

dgreen 05-07-2006 05:39 PM

skin swap problems
 
Has anyone had a problem with the order notification emails while using skin swap mod? My order emails are coming up blank when skinswap is switched on.

I am using skin swap mod and I emailed customer support at cart-lab a while ago and I have not gotten an answer so I am posting my question here.
Thanks

B00MER 05-07-2006 08:40 PM

Quote:

Originally Posted by dgreen
Has anyone had a problem with the order notification emails while using skin swap mod? My order emails are coming up blank when skinswap is switched on.


Locate:
Code:

# trim whitespace for cleaner output
$smarty->load_filter("output","trimwhitespace");


And comment or remove the $smarty->load_filter... line.

dgreen 05-08-2006 05:54 AM

blank emails from skin swap - fixed
 
Thank you so much
It is fixed now.

thebatterymart 02-03-2009 10:41 AM

Re: Easily swap-able skins (mod_skinswap)
 
Updated for X-Cart 4.2.x. See http://www.cart-lab.com/xcart/product.php?productid=2


All times are GMT -8. The time now is 04:52 AM.

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