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

bread crumb static links

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-11-2007, 02:48 PM
 
amcc amcc is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 73
 

Default bread crumb static links

I have 2 main categories as follows:

home :: swimwear :: various subdirectories
home :: related clothing :: various subdirectories

Can I set a static page link separately for swimwear and related clothing?

eg. link to swimwear.php instead of home.php?cat=249
__________________
X-Cart Pro 4.1.8
Reply With Quote
  #2  
Old 06-11-2007, 04:22 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: bread crumb static links

Do you mean simply use a different url or do you want a whole different page?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-11-2007, 08:49 PM
 
amcc amcc is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 73
 

Default Re: bread crumb static links

A whole different page. eg. www.mydomain.com/shop/swimwear.php

But if you can tell me how to force a particular category that would come in handy too. eg. www.mydomain.com/shop/home.php?cat=62
__________________
X-Cart Pro 4.1.8
Reply With Quote
  #4  
Old 06-12-2007, 02:29 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: bread crumb static links

Sorry, I'm really not understanding what you are after?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 06-12-2007, 12:19 PM
 
amcc amcc is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 73
 

Default Re: bread crumb static links

My swimwear category is id 249 in xcart. So when you click on swimwear in the bread crumb it quite rightly takes you to:

www.bluesport.com.au/shop/home.php?cat=249

However, I want to change that particular category in the bread crumb to take me to this static page instead:

www.bluesport.com.au/swimwear.php

How can I do this?
__________________
X-Cart Pro 4.1.8
Reply With Quote
  #6  
Old 06-12-2007, 12:21 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: bread crumb static links

I honestly don't know how (or why) you would do that, as the navigation is built on the fly based on the category structure. People expect to be able to go backwards, not redirected to a page they didn't ask for, that is kind of the point of breadcrumb navigation
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 06-12-2007, 10:33 PM
 
amcc amcc is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 73
 

Default Re: bread crumb static links

Thanks ballinor, maybe you can guide me a bit here. Can you have a look at this:

www.bluesport.com.au/newsite/swimwear.php

My designer has built a single flash object for the Swimwear subcategories. And he will also do a similar but different one for the "Related Clothing" subcategories. The links to products have therefore needed to be hard coded in in.

I think I would ordinarily build this into customer/main/subcategories.tpl. But how can I then have a different flash object for swimwear and a different one for related clothing in the same tpl? Same issue keeps going, this would also affect the subcategories.tpl in product listing wouldn't it?

Changing the bread crumb reference seems the easiest solution to me. I'm not sure if you could build the same design in flash with the fancy categories add-on module?

Your comments would be much appreciated on this one.

I just went through one your earlier threads on custom buttons by the way, worked great as you can see. That was a good post!
__________________
X-Cart Pro 4.1.8
Reply With Quote
  #8  
Old 06-13-2007, 04:22 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: bread crumb static links

Can't say as I recommend Flash, but if you are set on using it the easiest solution would be to edit subcategories.tpl and use Smarty to name your Flash objects. You would need to name your flash files to correspond to the ProductID for example, so you could use:

{$subcat.categoryid}.swf

for example. Otherwise, you will have to completely rebuild the breadcrumb functionality.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 06-24-2007, 02:40 AM
 
amcc amcc is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 73
 

Default Re: bread crumb static links

I found the solution, here it is for anyone that needs it: You can modify the "home.php" file, add the following code: foreach ($location as $k => $v) { if ($location[$k][1] == "home.php?cat=249") { $location[$k][1] = "../newsite/swimwear.php"; } if ($location[$k][1] == "home.php?cat=250") { $location[$k][1] = "../newsite/related-clothing.php"; } } before this code: # Assign the current location line $smarty->assign("location", $location);
__________________
X-Cart Pro 4.1.8
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 11:42 AM.

   

 
X-Cart forums © 2001-2020