| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
bread crumb static links | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||
|
|||||||
![]() Sorry, I'm really not understanding what you are after?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() 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 |
|||||||
#6
|
|||||||
|
|||||||
![]() 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 |
|||||||
#7
|
|||||||
|
|||||||
![]() 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 |
|||||||
#8
|
|||||||
|
|||||||
![]() 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 |
|||||||
#9
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|