Category description at the bottom of the category firstpage

Is there a feature you'd like us to add? Tell us about it and it might become part of a future release.
Post Reply
ThanksGod
Experience Level 1
Experience Level 1
Posts: 31
Joined: Wed Feb 01, 2012 8:16 pm

Category description at the bottom of the category firstpage

Post by ThanksGod » Fri May 17, 2013 8:47 am

In categories tab / category setting (AOM control panel), we have "Category Descriptions", if provided, this description will be displayed at the top of the first page for that Category.

The problem with this is if we put more paragraph / long contents, it will push the store products to the bottom and it looks ugly.

Is it possible to have "Category Descriptions" that also can be displayed at the bottom of the first page for that category?

So we can put more contents (more paragraphs) for SEO purpose (Store products stay at the top and contents at the bottom of first page of category.

Thanks in advance
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

mcarp555
Admin
Admin
Posts: 4088
Joined: Thu Sep 14, 2006 5:19 pm
Location: United Kingdom
Contact:

Re: Category description at the bottom of the category first

Post by mcarp555 » Fri May 17, 2013 8:54 am

You should be able to edit the category.tpl.php file to move the cat descriptions from the top to the bottom.

Open the file and find this section of code:

Code: Select all

	<?php if (isset($category['Description'])): ?>
		<div><?php echo $category['Description'] ?></div>
	<?php endif; ?>
Copy it to your clipboard, and delete it from the file. Scroll down to this area:

Code: Select all

	<div class="aom_hr"></div>
	</div>
	<?php if (isset($category['Pagination'])): ?>
		<?php $this->aom->displayPagination($category['Pagination']); ?>
	<?php endif; ?>
And paste the description code after the </div> tag:

Code: Select all

	<div class="aom_hr"></div>
	</div>
	<?php if (isset($category['Description'])): ?>
		<div><?php echo $category['Description'] ?></div>
	<?php endif; ?>
	<?php if (isset($category['Pagination'])): ?>
		<?php $this->aom->displayPagination($category['Pagination']); ?>
	<?php endif; ?>
I would suggest making a copy of the default template with a different name (other than 'default') and edit the copy. Then select it from your Themes tab in the AOM control panel.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

ThanksGod
Experience Level 1
Experience Level 1
Posts: 31
Joined: Wed Feb 01, 2012 8:16 pm

Re: Category description at the bottom of the category first

Post by ThanksGod » Fri May 17, 2013 9:03 am

Thanks Mike for super fast reply.

I will give it a try.
I need to sleep now, cause here is 2:00 am in the morning.

I will post back here and let you know.

Once again thank you very much.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

mcarp555
Admin
Admin
Posts: 4088
Joined: Thu Sep 14, 2006 5:19 pm
Location: United Kingdom
Contact:

Re: Category description at the bottom of the category first

Post by mcarp555 » Fri May 17, 2013 9:11 am

Don't forget you can also create a custom box and set it to only display at the bottom of the first page of any particular category.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

ThanksGod
Experience Level 1
Experience Level 1
Posts: 31
Joined: Wed Feb 01, 2012 8:16 pm

Re: Category description at the bottom of the category first

Post by ThanksGod » Sat May 18, 2013 7:58 am

mcarp555 wrote:Don't forget you can also create a custom box and set it to only display at the bottom of the first page of any particular category.
Thanks Mike to remind me about that feature.
I am not aware that we can set it on custom box to only display at the bottom of the first page of any particular category.

This is actually better than editing the code. I prefer not to touch the code and this way I also can use file paths.

Once again thanks for reminding me about this feature. :D
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

mcarp555
Admin
Admin
Posts: 4088
Joined: Thu Sep 14, 2006 5:19 pm
Location: United Kingdom
Contact:

Re: Category description at the bottom of the category first

Post by mcarp555 » Sat May 18, 2013 9:40 am

Set the box Location to Body Bottom.

Check the 1st Pg Only box.

Under Category Display Rules, put the Category ID ("CatID") in the green box. You get the CatID from the Categories tab of your AOM control panel.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests