-
- Liam

-
Total Posts: 9
Joined: 2008-03-08
|
Am I to understand that this supposedly state-of-the-art, cutting edge, never before seen, ‘open source evolved’ software doesn’t have a way to quickly and easily set sub-category layout? And requires people to go deep into the directory structure and start hacking the core code? If the magento team have forgotten something so basic what else have they forgotten?
Not another open source ‘solution’ that promises the earth and delivers days if not weeks of pissballing about, time wasting and head wrecking?
|
| |
|
 |
 |
 |
|
|
-
- smkjr

-
Total Posts: 10
Joined: 2008-04-07
|
i went through the step and when i go to a category page, i get a blank window.
my view.phtml may be incorrect, which line should the end of the if statement end?
|
| |
|
 |
 |
 |
|
|
-
- chinesedream

-
Total Posts: 745
Joined: 2007-08-31
San Francisco, CA
|
smkjr - 06 May 2008 07:09 PM i went through the step and when i go to a category page, i get a blank window.
my view.phtml may be incorrect, which line should the end of the if statement end?
Hi, I can’t remember exactly where I inserted the code and what I edit as it took me a white to get it right,
but here is the code for my view.phtml, hope it helps.
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * @category design_default * @package Mage * @copyright Copyright (c) 2004-2007 Irubin Consulting Inc. DBA Varien (http://www.varien.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ ?> <?php /** * Category view template * * @see Mage_Catalog_Block_Category_View */ ?>
<?if($this->getCurrentCategory()->getChildren()):?> <!-- <div class="category-head"> <div class="category-text2"> <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?> <a href="<?php echo $this->getRssLink() ?>" class="link-feed right"><?php echo $this->__('Subscribe to RSS Feed') ?></a> <?php endif; ?> <h2><?php echo $this->htmlEscape($this->getCurrentCategory()->getName()) ?></h2> <?php if($_description=$this->getCurrentCategory()->getDescription()): ?> <p class="category-description"><?php echo $_description ?></p> <?php endif; ?> </div> </div> --> <?php echo $this->getChildHtml('catalog.catnav'); ?>
<?php endif; ?> <?php echo $this->getMessagesBlock()->getGroupedHtml() ?> <?php if($this->isContentMode()): ?> <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?> <a href="<?php echo $this->getRssLink() ?>" class="link-feed right"><?php echo $this->__('Subscribe to RSS Feed') ?></a> <?php endif; ?> <h2><?php echo $this->htmlEscape($this->getCurrentCategory()->getName()) ?></h2> <?php echo $this->getCmsBlockHtml() ?> <?php elseif($this->isMixedMode()): ?> <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?> <a href="<?php echo $this->getRssLink() ?>" class="link-feed right"><?php echo $this->__('Subscribe to RSS Feed') ?></a> <?php endif; ?> <h2><?php echo $this->htmlEscape($this->getCurrentCategory()->getName()) ?></h2>
<?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?> <a href="<?php echo $this->getRssLink() ?>" class="link-feed"><?php echo $this->__('Subscribe to RSS Feed') ?></a> <?php endif; ?> <?php echo $this->getCmsBlockHtml() ?> <?php echo $this->getProductListHtml() ?>
<?php else: ?> <?php if($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?> <a href="<?php echo $this->getRssLink() ?>" class="link-feed right"><?php echo $this->__('Subscribe to RSS Feed') ?></a> <?php endif; ?> <!-- <h2><?php echo $this->htmlEscape($this->getCurrentCategory()->getName()) ?></h2> --> <?php if($_imageUrl=$this->getCurrentCategory()->getImageUrl()): ?> <p class="a-center"><img src="<?php echo $_imageUrl ?>" alt="<?php echo $this->htmlEscape($this->getCurrentCategory()->getName()) ?>" /></p> <?php endif; ?> <?php if($_description=$this->getCurrentCategory()->getDescription()): ?> <p class="category-description"><?php echo $_description ?></p> <?php endif; ?> <?=$this->getFeaturedProductHtml()?> <?php echo $this->getProductListHtml() ?> <?php endif; ?>
|
| |
|
 |
 |
 |
|
|
-
- Armen

-
Total Posts: 5
Joined: 2008-05-06
|
It would be really helpful if a Magento team member could indicate if this is a feature they will be adding anytime soon to the product. I’d like to avoid hacking the core files if at all possible and this is a pretty important feature when drilling down into categories. Thanks.
|
| |
|
 |
 |
 |
|
|
-
- dunk

-
Total Posts: 24
Joined: 2008-02-24
|
nafnaf:
can you send me all the files you have modified in the steps and I will check them against my setup…
|
| |
|
 |
 |
 |
|
|
-
- smkjr

-
Total Posts: 10
Joined: 2008-04-07
|
I made the change to the view.phtml view and i am still getting blank pages. I am using the latest version, does this mod work for the latest version?
|
| |
|
 |
 |
 |
|
|
-
- dunk

-
Total Posts: 24
Joined: 2008-02-24
|
I am using 1.0, it works for this, I have a copy of the .197 update so i will try it with this and see.
|
| |
|
 |
 |
 |
|
|
-
- smkjr

-
Total Posts: 10
Joined: 2008-04-07
|
i was able to make the changes listed in this thread but what happens is the category pages now have the layered navigation inside the content block. any clues as to what i am doing wrong, i am using the latest 1.0097 version.
Should i wait until the next release of Magento when this basic feature could be built in rather than various files being hacked?
|
| |
|
 |
 |
 |
|
|
-
- chinesedream

-
Total Posts: 745
Joined: 2007-08-31
San Francisco, CA
|
You meant you have the second set of layered nav?
A screenshot of what is displaying will help a lot if you want help
|
| |
|
 |
 |
 |
|
|
-
- dunk

-
Total Posts: 24
Joined: 2008-02-24
|
smkjr:
I am assuming you are getting this extra layered nav in the content block instead of the required grid of subcategories rather than in addition to...? if so there must be a mistake in your code to call this instead of the catnav.phtml file.
like chinesedream says a screen shot would help a lot to see what is up, you could also post the code you have for view.phml and the content reference in catalog.xml assuming that the catnav.phtml is unmodified from what I posted…
...I checked the files in the 1.0097 and could not see any reason why this would not work...its really quite a simple idea and should be easy to implement after an update (famous last words), as long as you keep track of changes you make. I have so many changed files for mods that this is essential. also, for the record and completely unrelated, I don’t see this as any failure on Magentos part to have to modify it, the fact that I can do so easily is testament to the solid foundation it gives for developers.....tbh I have not used any open source web development software that I haven’t modified in some way to suit my needs, but this is the point in open source isn’t it? imagine closed source and this thread wouldn’t even exist.....
|
| |
|
 |
 |
 |
|
|
-
- nafnaf1000

-
Total Posts: 119
Joined: 2008-02-21
|
@Dunk. - & all
Is there a way to do this with OUT changing the core files. I had to re-install Magento as when i did an update from 1.0 to the latest on, nothing worked.
So now I want to use ONLY local codes and have all as modules outputs.....
Then we can start moving all the code from the forums to the wiki and to “magento Connect”
Thanks for your help.
|
| |
|
 |
 |
 |
|
|
-
- nafnaf1000

-
Total Posts: 119
Joined: 2008-02-21
|
now that i have this all set up. Is there a way to remove the category’s from the layered nav?
|
| |
|
 |
 |
 |
|
|
-
- sixredsquares

-
Total Posts: 29
Joined: 2008-04-28
|
Does this work on 1.0.19870.4 ?
|
| |
|
 |
 |
 |
|
|
-
- jusneale

-
Total Posts: 29
Joined: 2008-06-25
|
Hi,
I have followed the steps and its working perfectly..Or so I thought!
Im using a firefox to view but my client uses internet explorer and when he views it none of the sub categories appear its just a blank page but on my firefox it works just as it should.
Anyone know of an internet explorer fix?
Cheers
Jusitn
|
| |
-
- Posted: September 1 2008
-
| top
| # 29
-
|
 |
 |
 |
|
|
-
- gatorworks

-
Total Posts: 1
Joined: 2008-10-23
|
I’m still having problem with this. I followed the step down to the T and still can’t get it to work. Can somebody help? Hopefully Magento include this function in the next upgrade. Does anybody know if they are?
|
| |
|
 |
 |
 |
|
|