VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 Showing catmemo at the top
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

elvis
VP-ASP Super User

202 Posts

Posted - August 22 2008 :  09:05:01  Show Profile  Reply with Quote
I am using three columns to show products in my subcategories using shopdisplaycategories.asp.

I would like to show catmemo at the top to explain about the subcategory. And I like to show this across at the top of shopdisplaycategories.asp, not in one of columns.

Can I do this ? If so, could anyone give me some advices how to do it?

Thanks in advance.


carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - August 25 2008 :  03:51:13  Show Profile  Reply with Quote
Create an htm file with the information that you want displayed in your parent category, upload it to your server and enter the name of this file into the Cat Extra field in your parent category. See sample:

http://www.deanston-electrical.co.uk/shopdisplaycategories.asp?id=640

I added the file ChristmasHeader.htm to the Christmas parent category Cat Extra field

Hope this helps

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

elvis
VP-ASP Super User

202 Posts

Posted - August 25 2008 :  12:37:24  Show Profile  Reply with Quote
Thanks Carrol,

Yes, I want to have like your page, having description at the top.

I added the htm file and uploaded by FTP. I added the file name to Cat Extra field, but it does not show.

Could you tell me other set up?

xcategorydisplaytemplate

xcategorydisplaytext

xcategoryproductsonly

xcategoryusetemplate


Thanks for your help.


Go to Top of Page

carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - August 25 2008 :  17:08:59  Show Profile  Reply with Quote
Our settings are

xcategorydisplaytemplate = tmp_categorytemplate.htm

xcategorydisplaytext = Yes

xcategoryproductsonly = Yes

xcategoryproducttemplates = Yes

xcategoryusetemplate = Yes

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

elvis
VP-ASP Super User

202 Posts

Posted - August 26 2008 :  03:09:31  Show Profile  Reply with Quote
Thanks Carrol,

Do you know if I can do this in shopdisplayproducts.asp pages?

I have 3 columns in shopdisplayproducts.asp. and I want to add description at the top as you did in shopdisplaycategories.asp file.

Thanks in advance.
Go to Top of Page

carfin
VP-ASP Expert

United Kingdom
948 Posts

Posted - August 26 2008 :  04:05:37  Show Profile  Reply with Quote
Hi,
yes you can. Just add your header htm file to the Cat Extra field of the category that the products are assigned to.

Regards,

Carrol
www.deanston-electrical.co.uk
Go to Top of Page

answerman
Starting Member

USA
23 Posts

Posted - June 19 2009 :  17:26:02  Show Profile  Visit answerman's Homepage  Reply with Quote
OK, finally I have something useful to add!

A simple way to add the catmemo field (not the catextra) to shopdisplayproducts.asp, assuming you can get just a little dirty in the code.

You'll need to edit two files: shopheaders.asp and shopdisplayproducts.asp.

In shopheaders.asp, somewhere around line 118 you will find:
setsess "Dynamicdescription",Removehtmlheaders(rs("catmemo"), "<br />")

Immediately following that line, insert the following code:
' start set session var for catmemo to display under category name
Dim DynCatMemo
setsess "DynCatMemo",rs("catmemo")
' end set session var for catmemo to display under category name

Then, in shopdisplayproducts.asp, somewhere around line 155 you will find:
Response.Write "<h1>" & Category & " </h1>"

Immediately following that line, insert the following code:
' start catmemo to display under category name
Response.Write "<p align=left>" & getsess("DynCatMemo") & " </p>"
' end catmemo to display under category name

This creates a session var named "DynCatMemo" which you can use to display the catmemo field on the page. That way, you can just enter your text in the catmemo field instead of having to mess with creating and uploading HTML files. You can edit the <p> tag to fit the CSS of your site as you need to.

Hopefully this is helpful to someone.
Go to Top of Page

allegro
Starting Member

Australia
24 Posts

Posted - June 29 2009 :  05:19:21  Show Profile  Visit allegro's Homepage  Reply with Quote
Answerman, thank you SOOOOOO much!!! You bet that info is helpful! I've been looking for a way to do just that for years! WOW!!!! I'll now go create some fabulous information to put in the catmemo field for each of my categories! Sorry, I can't really show you because ours is a registered-users only site - we're manufacturers/wholesalers. Still, trust me, this is magic for me now! Very excited about this, can you tell??? Thanks for posting!
regards,
Allegro

Thanks,
Helene
Go to Top of Page

allegro
Starting Member

Australia
24 Posts

Posted - June 29 2009 :  05:21:02  Show Profile  Visit allegro's Homepage  Reply with Quote
Perhaps you can helop me with another question I have answerman... check my post dated 29th June 09 in Customizations headed "ordering in multiples".


Thanks,
Helene
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000