The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Catagory Intro Text
Author Message
Reply with quote
Post Catagory Intro Text 
I would like to add an introductory text at the top a few categories. I desire a location at the top of the product content area (not in header or footer).

I attempted to add text at the beginning of a custom .inc file but this script loops through insertion of every product resulting in the text being repeated before each item in the list. For example of a category named "Tools", we added a file named Tools.inc which contains some descriptive text followed by a copy of productPage-1a.inc.

Would it be best to use a "once-only" script with counter so the text loads once? Or is it possible to load two .inc pages in the content area? A top one with a short summery, and the 2nd with the products... Other ideas?

Thanks

View user's profile Send private message
Reply with quote
Post  
Use a custom header file for the category with your text in it.
The header file would require the following naming convention to be used:
header-category.inc

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Thanks, I did get your method to work.
I didn't realize that the header could be made to overflow into the cart content area.
For anyone else trying this - I made a copy of my standard header file but then added a new <div> named IntroText continuing below the existing code. I added this name to the cart's main ccs file to set padding etc as desired. agoracart's header code will overflow down into the main content above the category's items. Nice!

examples
==added to new header-yourCategory.inc:

<!--All Existing Header Code is above-->
<div class="introtext">
<br>
Hello World (replace this line with your text).
<br><br><hr/>
</div>

==Added to agorastyles.css:

/* Custom Header Intros for header-category.inc files */
.introtext{
padding: 0px;
padding-right:20px;
padding-left:20px;
font-size: 11pt;
text-decoration : none;
}


==Adjust css settings to your liking..

--

View user's profile Send private message
Reply with quote
Post  
Thanks for the excellent descriptions above, very helpful.

I would like to take that one step further though and try to add a description for the sub-categories. Any way to accomplish this? Can you create a header file with the following naming convention:

header-category::subcategory.inc

Or can you just us the subcategory:

header-subcategory.inc

Thanks.

View user's profile Send private message
Reply with quote
Post  
Right now, there is some code for creating custom subcategory headers,
but it is only available to Gold members.


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
i developed a solution for this which works out very well...
http://www.flyingcowgirls.com
use the general store links for cats, subcats and sub subcats.
you will see messages dependant on the cat, subcat, sub subcat where necessary.
where most other solutions fail is when returning to the dB parsed pages from viewcart.
d

Reply with quote
Post  
GuL,
I am not quite understanding what you are asking, you just re-quoted someone else's response, so we are needing you to further elaborate on your question.


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum