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
 shopdisplaycategories.asp
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

elvis
VP-ASP Super User

202 Posts

Posted - August 17 2008 :  13:05:04  Show Profile  Reply with Quote
I'd like to customize shopdisplaycategories.asp

Is there any htm layout this asp?
Or only asp file?

Thanks in advance.

Kidd
VP-ASP Super User

Australia
373 Posts

Posted - August 17 2008 :  19:05:19  Show Profile  Reply with Quote
the default template should be tmp_categorytemplate.htm
Go to Top of Page

elvis
VP-ASP Super User

202 Posts

Posted - August 20 2008 :  17:02:54  Show Profile  Reply with Quote
In the tmp_categorytemplate.htm, there is a following line.

<table border="0" cellpadding="2" width="100%" class="tbl_category">

But when I see the source code I can't find it.

At the moment I have a category name above the category image.

I want to make the category name under the image.

Can anyone help me?

thanks in advance.
Go to Top of Page

madbug
VP-ASP New User

130 Posts

Posted - August 20 2008 :  22:34:44  Show Profile  Reply with Quote
In tmp_categorytemplate.htm, look for [FORMATHYPERLINKS SUB], that is the category name. by default it should be under the image. unless you had customize it before.
Go to Top of Page

elvis
VP-ASP Super User

202 Posts

Posted - August 21 2008 :  01:07:25  Show Profile  Reply with Quote
Thanks madbug.

I don't recall I customize it before. but if I have done it, which file could be in order to make the category name above the image?

I compared both source codes.

The code I have a problem is like this.
=============================

<!-- END OF SHOPPAGE_HEADER.HTM -->
<div class="breadcrumb"><a href="default.asp"> Home </a> --> Categories </div>
<h1>Product Categories</h1>
<table border="0" cellpadding="0" width="100%" cellspacing="1">
<tr style="background-color:#FFFFFF">
<td class="ac vt"><p><strong><a href="shopdisplayproducts.asp?id=9&cat=Angel+Art">Angel Art</a>
<p class="ac">
<a href="shopdisplayproducts.asp?id=9&cat=Angel+Art"><img border="0" src="images/catimg/angels_cat.jpg" alt="Angel Art" /></a>
</p>
</strong></p></td>
==============================

and I other one is this.

<!-- END OF SHOPPAGE_HEADER.HTM -->
<div class="breadcrumb"><a href="default.asp"> Home </a> --> Categories </div>
<h1>Product Categories</h1>
<table border="0" cellpadding="0" width="100%" cellspacing="1">
<tr style="background-color:#FFFFFF">
<td class="ac vt"><p><strong>
<table border="0" cellpadding="2" width="100%" class="tbl_category">
<tr>
<td class="ac vt">

<p class="ac">
<a href="shopdisplaycategories.asp?id=1&cat=Limited+Edition+Prints"><img border="0" src="images/thumbs/vpaspdemo_lucent_work.jpg" alt="Limited Edition Prints" /></a>

</p>

<!--<p><a href="shopdisplayproducts.asp?id=1">
<img border="0" src=""></a></p>-->
</td>
</tr>

============================

It seems I am using a different htm for my shopdisplaycategories.asp.

My set up for xcategorydisplaytemplate is tmp_categorytemplate.htm.
xcategoryusetemplate is no.
xcategoryproducttemplates is yes.

I checked my code and the shopdisplaycategories.asp is the same as original.

so which template am I using for shopdisplaycategories.asp?
And how can I set up so that I can use tmp_categorytemplate.htm for that?

Thanks in advance.

Edited by - elvis on August 21 2008 01:40:52
Go to Top of Page

Kidd
VP-ASP Super User

Australia
373 Posts

Posted - August 21 2008 :  18:30:17  Show Profile  Reply with Quote
try set xcategoryusetemplate to yes?
Go to Top of Page

elvis
VP-ASP Super User

202 Posts

Posted - August 22 2008 :  01:30:55  Show Profile  Reply with Quote
Thanks Kidd.
I did it and good news is yes it worked.
The bad news is I got error message "Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'TRUE'.

/shopfileio.asp, line 1995 "

And the bottom half is disappeared.

My site is hosted by VPASP, should I contact them?
Or you have any idea with this error?
Go to Top of Page

Kidd
VP-ASP Super User

Australia
373 Posts

Posted - August 22 2008 :  01:41:34  Show Profile  Reply with Quote
ah yea i remember i got this error too last time, i modified this line on shopfileio.asp

if getsess("xdatabasetype") = "MYSQL" OR getsess("xdatabasetype") = "MYSQL351" OR getconfig("xMYSQL")="Yes" OR getsess("xdatabasetype") = "SQLSERVER" then

modified that line to this

if xdatabasetype = "MYSQL" OR xdatabasetype = "MYSQL351" OR getconfig("xMYSQL")="Yes" OR xdatabasetype = "SQLSERVER" then

if this doesnt work maybe you need to contact their support team
Go to Top of Page

elvis
VP-ASP Super User

202 Posts

Posted - August 22 2008 :  02:24:44  Show Profile  Reply with Quote
Thanks that fixed my problem.
But it created another one.

I set xcategorydisplaytext "When categories are displayed, any data in the catmemo field is displayed under the category name and image" No.
But catmemo is displaied in shopdisplaycategories.asp.

I don't want to show in this page.

Any idea?
Go to Top of Page

madbug
VP-ASP New User

130 Posts

Posted - August 23 2008 :  00:13:14  Show Profile  Reply with Quote
Try this, go to tmp_categorytemplate.htm

search the line
$ <tr><td class="ac vt">[catmemo]</td></tr>

comment it out
<!-- $ <tr><td class="ac vt">[catmemo]</td></tr> -->
Go to Top of Page

elvis
VP-ASP Super User

202 Posts

Posted - August 23 2008 :  02:07:54  Show Profile  Reply with Quote
Thanks madbug.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000