Print Page | Close Window

First time PCart User- Edit Product Pages

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=4804
Printed Date: 13-July-2025 at 12:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: First time PCart User- Edit Product Pages
Posted By: louis8789
Subject: First time PCart User- Edit Product Pages
Date Posted: 17-October-2011 at 10:59pm
I'm sure at this point in time this question is extremely redundant and for that I appologize.

 However, what is the best way to go about adding html content to a product before it starts the "pcMainTable" table. Or really just before product data is being displayed. I just assume it would be before the main table tag.

From first glance I would guess somehow calling a different header, or perhaps adding a snippet to check the product # and use an IF id statement. But regardless I'm lost. Any help would be greatly appreciated.



Replies:
Posted By: Hamish
Date Posted: 18-October-2011 at 2:35am
Hi Louis,
   There's no such thing as a redundant question :-)

Your ideas are almost certainly the way to go - if you want it just before the product then I suspect an "If" will be the way to go. 
Can you share a URL and indicate exactly where you want the additional info to appear?


 


-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: louis8789
Date Posted: 18-October-2011 at 4:15am
Hi Hamish,

Thanks for the response. It's extremely appreciated. 

I included a link to an example page below. I also added a tad bit of html to the main configureprd.asp file to give you an idea of where I would like to insert additional code/content. The gray area I designated would be ideal to change. However, simply changing the configureprd file will obviously just make it a static content source. I'm looking to make it unique for a handful of products.

http://www.venompcs.com/store/pc/configurePrd.asp?idproduct=17" rel="nofollow - http://www.venompcs.com/store/pc/configurePrd.asp?idproduct=17

Thanks again for your help. I will try to limit how time consuming my questions are. Unless that is of course you let me pay you ;)




Posted By: Hamish
Date Posted: 18-October-2011 at 8:50am
Hi,
  Try something like :

 <% '// VenomPCS mod start
  if pidProduct = 17 then %>
    <div id="Bubbles> or whatever you want... </div> 
 <% end
   '// VenomPCS mod end %>



-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: louis8789
Date Posted: 18-October-2011 at 2:36pm
hey Hamish, 

Again thanks for the help. Unfortunatly I couldn't find a way to correctly insert that. Loading the page is resulting in a server 500 error. I placed it in the configureprd.asp

<div id="pcMain">

  <% '// VenomPCS mod start
  if pidProduct = 17 then %>
    <div id="Bubbles>
    </div>  
 <% end 
   '// VenomPCS mod end %>
   
<table class="pcMainTable">

Wish I knew abit more about asp. Any possible ideas or common problems you can think of that are creating the 500 error?



Posted By: whizzinpc
Date Posted: 19-October-2011 at 7:47pm
make sure the <% bracket is closed before you open the new one.... i'm not sure exactly where your pasting the code but that might cause the error. Basically you will want to make sure there is a %> somewhere before your <%


Posted By: louis8789
Date Posted: 20-October-2011 at 4:21am
Thanks for replying!

Anyways I found the problem. And I double checked to make sure it was actually the problem.

For what ever reason my ending statement required an if

Previously:
<% 
  if pidProduct = 17 then %>
    <div id="Bubbles> or whatever you want... </div> 
 <% end %>
Working:
<%
  if pidProduct = 17 then %>
    <div id="Bubbles> or whatever you want... </div> 
 <% end if %>



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