Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

partner category

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-29-2004, 10:28 AM
 
shirtshop shirtshop is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 127
 

Default 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.
__________________
ver 3.5.10 with a lot of customizing
now testing 4.4.1 smartytemplate
Reply With Quote
  #2  
Old 08-29-2004, 12:28 PM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

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
Reply With Quote
  #3  
Old 08-29-2004, 01:48 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

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.
Reply With Quote
  #4  
Old 08-30-2004, 02:30 AM
 
shirtshop shirtshop is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 127
 

Default

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
Reply With Quote
  #5  
Old 08-30-2004, 08:52 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Sorry, I combined php and smarty code

Instead use:

Code:
if ($partner == "partnerid") { $smarty->display("customer/home_partnerid.tpl"); } else { $smarty->display("customer/home.tpl"); }
Reply With Quote
  #6  
Old 08-30-2004, 11:03 AM
 
shirtshop shirtshop is offline
 

Senior Member
  
Join Date: Nov 2002
Posts: 127
 

Default

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
Reply With Quote
  #7  
Old 08-30-2004, 11:10 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020