You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
On the product detail pages, I like the navigation links that result from ste_cat_nav (i.e. "home>monitors").
But after I email-a-friend from the product detail page, the category portion of that nav link drops out (so "home>monitors" becomes simply "home").
I notice the demo cart on the CCP website also does this.
Is there a way I can keep the category name in there on that navigation link?
Thanks,
Matt
Offline
That would require some modifications in ste_cat.pl file in the NAV paragraph. If you do not know how to make these modifications, I'd suggest you send a quote to ATS, he'll do the job fast and fair for you.
Offline
Thanks Scoutch. I'll just put it on the "back burner" for now.
Matt
Offline
It appears that the email a friend form doesn't have the cat variables in it. Add them to the Email A Friend Form element:
<INPUT TYPE="HIDDEN" NAME="cat" VALUE="(CGIVAR)category_id(/CGIVAR)"> <INPUT TYPE="HIDDEN" NAME="catstr" VALUE="(CGIVAR)catstring(/CGIVAR)">
Offline
Thanks for checking in on this one, Nick.
I added your suggested tags to the ste_emailfriend element. I made sure to put them between the <form></form> tags. But the category still gets dropped from the Nav links after returning from Email-A-Friend.
I viewed the source code on the html page BEFORE clicking Email A Friend. I see the new tags there, but the cat data isn't populated. They say:
<INPUT TYPE="HIDDEN" NAME="cat" VALUE="">
<INPUT TYPE="HIDDEN" NAME="catstr" VALUE="">
The same tags, when they're up higher on the source code in the product detail portion, say:
<INPUT TYPE="HIDDEN" NAME="cat" VALUE="Evil_Eye">
<INPUT TYPE="HIDDEN" NAME="catstr" VALUE="">
Any idea what's up?
My site: wwwhomesickturk.com/ccp51/cgi-bin/cp-app.cgi
BTW, it's a back-burner issue for me, so isn't crying out for resolution if it's a thorny issue.
Thanks Nick.
Matt
Offline
It looks like the products are related with the category strings but the categories are not related with the products . . .
And you did put has mentionned in your emailafriend page ?
Offline
Hi Scoutch,
I'm not sure what to do with your post. Other than associating products with categories via the "Related Categories" box on the "Manage Products" pages, is there somewhere else I should be tying them together?
And yes, I did put the two "INPUT TYPE" tags into the emailafriend page (between the <form></form> tags in ste_emailfriend).
Matt
Offline
And yes, I did put the two "INPUT TYPE" tags into the emailafriend page (between the <form></form> tags in ste_emailfriend).
You mean right under : ste_mail_emailfriend_proc's input right ?
I just hope you won't need to add a :
&initialize_sub_require('ste_cat_nav');
&ste_cat_nav;
in the ste_mail.pl file because ... to be honnest, I don't know the rest that goes after these two lines with e-mail a friend function since it is not an independant page that we can just type with the cp-app file (i.e : cp-app.cgi?pg=emailafriend) since that won't work.
I'm stuck myself . . . how surprising hehe !
Wait a sec . . . that's it. Move the two mentionned lines from Nick on "top" on the : "product_name" line. That should take effect.
Keep me posted on this.
Offline
Scoutch,
No, when I say...
mattkrause,03/12/2004 06:30:49 PM wrote:
And yes, I did put the two "INPUT TYPE" tags into the emailafriend page (between the <form></form> tags in ste_emailfriend).
I just mean in the ste_emailfriend element, in the Admin section, under "HTML Pages & Elements", "Manage Site Elements". Nick's post suggested adding them into the element, and that's what I understand it to mean.
I tried your suggestion, moving the two INPUT tags above the product_name line in the ste_emailfriend element. But it's still dropping the cat name.
Unless someone posts further instruction, I'll just see if I can hand it over to Mark at ATS, have him take care of it for me.
Thanks,
Matt
Offline