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
placing category name only in product pages
Author Message
Reply with quote
Post placing category name only in product pages 
open up your productpage.inc file and in the first <!--agorascript-pre code find
Code:
$myans .= '<tr><td colspan=3><table width="100%" border=1>'."\n";
directly after it you'll want to add the following
Code:
$myans .= '<tr><td colspan=2><center>%%product%%</center></td></tr>'."\n";
that'll place it in the top of the ppinc pages and it'll only show once...

best of luck



Last edited by ewelin on Mon Sep 19, 05 4:54 am; edited 1 time in total
Reply with quote
Post placing category name only in product pages 
Hi. I've tried doing this and it works fine when you select a category from the navigation menu. However I can't get it to work in search results (I'm using the Specials hack, so search results ill only display one category; but can't get the category name on the top of the page)

Any ideas?

Thanks

===Toby===

View user's profile Send private message Send e-mail
Reply with quote
Post  
well i haven't looked at the Specials hack.... can you send a link of the site... i'll check some things out and see if i can figure something out for ya.

Reply with quote
Post  
Toby,
For that one you need to add the agorascript pre to get it to work.

At the beginning of your search ppinc file put:
Code:

<!--agorascript-pre
{
local ($myans)="";
if ($firstpass == 0)
{
  $myans = qq~
  <tr><td colspan="2">
  <div align="center">
  <FONT FACE="ARIAL, Helvetica, sans-serif" SIZE="2" color="#000000">
 <strong>
 %%CategoryID%%
 </strong> ~;
  $firstpass = 1
}
return $myans;
}
-->


and at the end of the file put:
Code:

<!--agorascript-pre
{
local ($myans)="";
if ($ags_row_item == 0) { # last one
  $myans .= ''."\n";
 }
return $myans;
}
-->


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  
Bonnie - thanks for that. I must be stupid, I can't find a search ppinc file. I found a file called productPage-search.inc in html-templates, but I don't think it's being used because it has some HTML in it that doesn't appear on the search results page.

View user's profile Send private message Send e-mail
Reply with quote
Post  
Toby,
What's the URL to your store?


_________________
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  
www.just4ewe.com/cart

View user's profile Send private message Send e-mail
Reply with quote
Post  
Toby,
Something I noticed when I viewed your source code is that you have some css and javascript in your header file.
The CSS definitely cannot be in there. For proper placement of CSS in AgoraCart, please take a look at the following thread:
http://www.agoraguide.com/faq/viewtopic.php?t=1156

What is the AllWebMenus javascript? I'm not seeing that is doing anything in the store. Is it really necessary? If not, remove it.

Now to the search issue....
I took a closer look and it looks like you are using the productPage.inc file....
Eric's suggestion should work, but try replacing the %%product%% token with %%CategoryID%%.

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, Bonnie. Changing the token worked fine. I'll address the other issues shortly. It seems to be working ok even with the css in the "wrong" place...

View user's profile Send private message Send e-mail
Reply with quote
Post Using productPage-1a.inc 
Is there a way to do this using a non agora-script template? I'm using the productpage-1a.inc template and would like to do the same thing. I tried adding the the category ID token but it gets repeated 3 times (that's how many products are in the category) at the top of the page.

Thanks for any help.

View user's profile Send private message
Reply with quote
Post  
Please take a look at the following post that is in this thread:
http://www.agoraguide.com/faq/viewtopic.php?p=10585#10585

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 Bonnie!

I saw that post but it wasn't clear to me that it would work on any of the non-agora script templates. Thought it was just for a search file. Any way, it works great!

Susie

View user's profile Send private message
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