Author |
Topic |
|
elvis
VP-CART Super User
202 Posts |
Posted - August 22 2008 : 09:05:01
|
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-CART Expert
United Kingdom
948 Posts |
|
elvis
VP-CART Super User
202 Posts |
Posted - August 25 2008 : 12:37:24
|
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.
|
|
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
Posted - August 25 2008 : 17:08:59
|
Our settings are
xcategorydisplaytemplate = tmp_categorytemplate.htm
xcategorydisplaytext = Yes
xcategoryproductsonly = Yes
xcategoryproducttemplates = Yes
xcategoryusetemplate = Yes
Regards,
Carrol www.deanston-electrical.co.uk
|
|
|
elvis
VP-CART Super User
202 Posts |
Posted - August 26 2008 : 03:09:31
|
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. |
|
|
carfin
VP-CART Expert
United Kingdom
948 Posts |
Posted - August 26 2008 : 04:05:37
|
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 |
|
|
answerman
Starting Member
USA
23 Posts |
Posted - June 19 2009 : 17:26:02
|
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. |
|
|
allegro
Starting Member
Australia
24 Posts |
Posted - June 29 2009 : 05:19:21
|
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 |
|
|
allegro
Starting Member
Australia
24 Posts |
Posted - June 29 2009 : 05:21:02
|
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 |
|
|
Lori Titus
VP-CART New User
144 Posts |
Posted - November 19 2017 : 22:07:48
|
As an FYI - Answerman''s solution works in 8.0
The Internet''s #1 supplier of honey and beeswax. |
|
|
manilow
VP-CART New User
France
134 Posts |
Posted - November 22 2017 : 15:17:59
|
I''m using vpasp 7.0 which I customized for this purpose. I created an extra field in the categories table named catdetails. Some customization is needed in the shopa_addcategory.asp page in order to have the htmleditor for that field. Then, in shopdisplaycategories.asp and shopdisplayproducts.asp, I inserted in the ShowCategoryImage subroutine a new line : ShopTemplateWrite "tmp_categorydetails.htm", rs, rc. In this way, a template tmp_categorydetails.htm can be used for the layout of the category header, including the image.
Take a look for it''s result on the following page: http://www.aquathermia.com/c58-pompes-doseuses.htm
Maybe an idea for a next vpasp release.
|
|
|
|
Topic |
|