Print Page | Close Window

Am I missing someting, or is PC? -- pcv_tmpNewPath

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Search Engine Optimization
Forum Description: Talk about ways to optimize your ProductCart store for search engines
URL: https://forum.productcart.com/forum_posts.asp?TID=5722
Printed Date: 28-April-2024 at 2:00am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Am I missing someting, or is PC? -- pcv_tmpNewPath
Posted By: Guests
Subject: Am I missing someting, or is PC? -- pcv_tmpNewPath
Date Posted: 21-September-2013 at 10:50pm
I'm working on a project where I'd like to have resources such as images called via a fully qualified URL and I see widespread use of the following variable that appears to provide just this -- pcv_tmpNewPath ... for example:

src='<%=pcv_tmpNewPath%>catalog/<%=pImageUrl%>'

However, for the life of me I cannot find where the value for this variable is populated. I've run searches on the entire /pc/ and /includes/ sub-directories in both standard and Apparel archives for both PC 4.6 and 4.7 and don't find anywhere this variable is actually populated, though it's used extensively.

I was expecting something along the lines of:
dim pcv_tmpNewPath
pcv_tmpNewPath=replace((scStoreURL&"/"&scPcFolder&"/pc/"),"//","/")
pcv_tmpNewPath=replace(pcv_tmpNewPath,"https:/","https://")
pcv_tmpNewPath=replace(pcv_tmpNewPath,"http:/","http://")
If (lcase(Request.ServerVariables("HTTPS")) = "on") Then
pcv_tmpNewPath=replace(pcv_tmpNewPath,"http://","https://")
End If

I'm using that for now ... but I can't help wondering if I am missing something, or is PC missing something here?



Replies:
Posted By: whizzinpc
Date Posted: 30-September-2013 at 4:59pm
only thing I see is <% pcv_tmpNewPath="../pc/"


Posted By: Guests
Date Posted: 01-October-2013 at 12:52am
Thanks, Art.

I can't find this either, though. I even went further back to v4.5.

I'm only finding this in the /pcadmin/ directory.

It does not appear to be in any files in the /include/ or /pc/ directories of the last three standard or apparel version archives.

Even then, it wouldn't suffice for an explicit, fully qualified path I'm wanting for use with SEO enhancements I'm working up.

That being said, it does indeed appear to me to completely missing from the customer-facing side of the application, though it's an innocuous error/issue within the /pc/ directory for anyone not actually caring if it populates a value.

I appreciate you taking the time to look, though. 



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