| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
partner category | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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.
__________________
ver 3.5.10 with a lot of customizing now testing 4.4.1 smartytemplate |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Speak to boomer from cart-lab.com his skin swap modification should be able to do this for you.
__________________
Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() 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. |
|||||||||
#4
|
|||||||
|
|||||||
![]() 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
__________________
ver 3.5.10 with a lot of customizing now testing 4.4.1 smartytemplate |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Sorry, I combined php and smarty code
![]() Instead use: Code:
|
|||||||||
#6
|
|||||||
|
|||||||
![]() 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
__________________
ver 3.5.10 with a lot of customizing now testing 4.4.1 smartytemplate |
|||||||
#7
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|