Print Page | Close Window

Why does <%=pDetails%> not work?

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=647
Printed Date: 30-November-2024 at 4:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Why does <%=pDetails%> not work?
Posted By: edwardmills
Subject: Why does <%=pDetails%> not work?
Date Posted: 08-February-2007 at 4:24pm
Ok, I'm getting frustrated now. I am 90% sure that the code for the Long Product Description. I tracked it down through the ViewPrdCode.asp file.

But when I enter the following code into pcShowProductM.asp nothing shows up:

<td valign="middle">
           
            <div class="pcShowProductSDesc">
                <%=pDetails%>
            </div>
           
        </td>

If I change pDetails to psDesc I get the short description. If I change it to pSku I get the SKU.

What am I missing? What is different about pDetails that is causing it to not show up.

I would love some help here folks!!!

Thanks
ed



Replies:
Posted By: ProductCart
Date Posted: 08-February-2007 at 4:33pm

That's because that file is "included" in other files. Those other files do not load the long product description. For example, if you look at viewcategories.asp, that page does not load the long product description from the database, since it is not needed on the page.

So to do what you are describing, you need to edit the "parent" file (e.g. viewcategories.asp) and change both the SQL query and the area of the code where you assign that item in the recordset to a variable.



-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software


Posted By: edwardmills
Date Posted: 08-February-2007 at 5:43pm
Well, since that is WAY over my head, I had to come up with an alternative. So if you're interested, this is what I did.

In ViewPrdCode.asp I edited the routine on lines 557 -572 so that it won't show the "More Details" text as follows. (In retrospect it might have been simpler to go into the languages include file and replace More Details with a blank space. I'm not sure, but I think that would have accomplished the same thing).

Public Sub pcs_ProductDescription
'           if psDesc <> "" then
'                          response.write "<div class='pcShowProductSDesc' style='padding-top: 5px'>"
'                          response.Write psDesc & " <a href='#details'>" & dictLanguage.Item(Session("language")&"_viewPrd_2 1") & "</a>"
'                          response.write "</div>"
'           else
                          response.write "<div class='pcShowProductSDesc' style='padding-top: 5px'>"
                          response.Write pDetails
                          response.write "</div>"
'           end if
End Sub

Then, in  ViewPrdL.asp I commented out the section that shows the product details down at the bottom of the page: 

Lines 506-518 comment out display product details routine.

' 12) LONG DESCRIPTION
'*********************************************************** ******************************************
'Begin FFC Customization - Comment out this routine to NOT show product details
    '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ' START:  Display long product description if there is a short description
    '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    'pcs_LongProductDescription [Note the apostrophe at start of line]
    '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ' END:  Display long product description if there is a short description
    '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   
'*********************************************************** ******************************************
' END LONG DESCRIPTION

It seems to all be working. You can check it out here:

http://www.funnyfotocards.com/productcart/pc/viewCategories. asp?idCategory=26





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net