![]() |
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. |
Speak to boomer from cart-lab.com his skin swap modification should be able to do this for you.
|
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. |
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 |
Sorry, I combined php and smarty code :roll:
Instead use: Code:
if ($partner == "partnerid") { |
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 |
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.