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)
-   -   partner category (https://forum.x-cart.com/showthread.php?t=9139)

shirtshop 08-29-2004 10:28 AM

partner category
 
is it possible to make 1 category for a partner in de style of the partner what's different of the current style of our site.

We have already the option for partners to come in a speciale partner category like: http://www.shirtshop.nl/xcart/customer/home.php?partner=shirtshop
You see 1 category instead of all the category. Now i want to show the category 97 in the style of the partner.

groovico 08-29-2004 12:28 PM

Speak to boomer from cart-lab.com his skin swap modification should be able to do this for you.

Jon 08-29-2004 01:48 PM

Could do it this way:

Open up your home.php

Change:
$smarty->display("customer/home.tpl");

To:

if ($partner eq "partnerid") {
$smarty->display("customer/home_partnerid.tpl");
}
else {
$smarty->display("customer/home.tpl");
}

Substitute partnerid with your partners login of course.

Then open skin1/customer/home.tpl and save it as skin1/customer/home_partnerid.tpl and then customize it and upload it.

Again, substitute the partnerid here, and you could do this for however many partners you want.

shirtshop 08-30-2004 02:30 AM

Thanks for the reply, ive try it but get this error:
Parse error: parse error, unexpected T_STRING in /var/www/virtualhosts/www.shirtshop.nl/root/xcart/customer/home.php on line 56

Jon 08-30-2004 08:52 AM

Sorry, I combined php and smarty code :roll:

Instead use:

Code:

if ($partner == "partnerid") {
$smarty->display("customer/home_partnerid.tpl");
}
else {
$smarty->display("customer/home.tpl");
}


shirtshop 08-30-2004 11:03 AM

Thanks Jon, there's no error message but a question

How do i activated the home_partnerid.tpl?

a partner can access now his category for example
www.shirtshop.nl/xcart/customer/home.php?partner=shirtshop

I change the script in your example this way:
if ($partner == "shirtshop") {
$smarty->display("customer/shirtshop.tpl");
}
else {
$smarty->display("customer/home.tpl");
}
?>

and open the skin1/customer/home.tpl and save this as shirtshop.tpl

Jon 08-30-2004 11:10 AM

That will work.

This method depends on how much you want to customize. If you want to customize the heck out of it, this method might not be best. You'd probably want to duplicate a seperate skin1 directory. If you want to have basically the same look, with different colors and minor changes, I'd do it this way.

Now just customize /skin1/customer/shirtshop.tpl to look the way you want it and change the css include to include a different css file. Take the default skin1.css for example, change it to shirtshop.css, edit the shirtshop.tpl to include shirtshop.css, edit your shirtshop.css, and make any other changes in shirtshop.tpl


All times are GMT -8. The time now is 03:22 PM.

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