ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - First time PCart User- Edit Product Pages
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

First time PCart User- Edit Product Pages

 Post Reply Post Reply
Author
Message
louis8789 View Drop Down
Newbie
Newbie


Joined: 17-October-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote louis8789 Quote  Post ReplyReply Direct Link To This Post Topic: First time PCart User- Edit Product Pages
    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.


Edited by louis8789 - 17-October-2011 at 11:02pm
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post 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?


 
Back to Top
louis8789 View Drop Down
Newbie
Newbie


Joined: 17-October-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote louis8789 Quote  Post ReplyReply Direct Link To This Post 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.


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 ;)




Edited by louis8789 - 18-October-2011 at 5:27am
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post 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 %>

Back to Top
louis8789 View Drop Down
Newbie
Newbie


Joined: 17-October-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote louis8789 Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
whizzinpc View Drop Down
Newbie
Newbie
Avatar

Joined: 17-January-2006
Location: California
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote whizzinpc Quote  Post ReplyReply Direct Link To This Post 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 <%
Back to Top
louis8789 View Drop Down
Newbie
Newbie


Joined: 17-October-2011
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote louis8789 Quote  Post ReplyReply Direct Link To This Post 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 %>
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.094 seconds.