Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 If has static URL, no proddetail display?
Author « Topic »  

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 09/05/2018 :  08:57:23  
I came across this while checking some page updates and found that products that have a static URL will not display on the proddetail.php page using forloveofthehorse[dot]com/proddetail.php?prod=IRRECpkg. Instead, you get a product not currently available message, though you do get the dynamic title. Should not the proddetail.php still work regardless? PHP v6.9.4

And FWIW, the tags in the <head>
<?php include "vsadmin/db_conn_open.php" ?>
<?php include "vsadmin/inc/languagefile.php" ?>
<?php include "vsadmin/includes.php" ?>
<?php include "vsadmin/inc/incfunctions.php" ?>
<?php include "vsadmin/inc/metainfo.php" ?>
and a little further down
<script type="text/javascript" src="2018/js/ectcart.js"></script>


Just curious, nothing urgent.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Andy
ECT Moderator

95440 Posts

Posted - 09/05/2018 :  09:01:21  
Hi Marshall

I may be missing something but if it's using a static URL that dynamic URL is no longer used and the static URL will be used too in the internal navigation.

Andy

Please feel free to review / rate our software

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 09/05/2018 :  09:26:40  
Is there some sort of tag for the includes.php to redirect proddetail.php?product to the static URL?

I found this
quote:
Static page redirection
If you are using static pages, an attempt to locate the page on the old dynamic URL will result in an HTTP "301 Moved Permanently" and a redirect to the static page. To enable this feature use the following setting in your vsadmin/includes.php file...

$redirecttostatic=TRUE;

Please note, to use this you must have output buffering on the products.php and categories.php pages. To do this, simply open these pages in HTML view and right at the top add this line
ob_start();
right after the line
session_start();
but it does not cover the proddetail page.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Edited by - Marshall on 09/05/2018 09:33:59

Andy
ECT Moderator

95440 Posts

Posted - 09/05/2018 :  10:00:03  
I don't believe there is for the detail page I'm afraid.

Andy

Please feel free to review / rate our software

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 09/05/2018 :  10:10:31  
So I will ask the obvious - why does it not automatically redirect to the static page rather than than displaying product not available? I seriously doubt anyone would stumble upon the proddetail page as all of the products have static URLs. That only makes sense to me.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Vince
Administrator

42874 Posts

Posted - 09/06/2018 :  00:24:58  
Hi Marshall
As it happens, I actually think that it should redirect to the static page. If you want me to troubleshoot this then please send the site FTP login details to vince AT ecommercetemplates DOT com.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 09/06/2018 :  06:21:22  
Will do Vince. Just remember, it is not a critical issue.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Vince
Administrator

42874 Posts

Posted - 09/10/2018 :  03:34:18  
Hi Marshall
I've fixed this now and updated your site. Can you give it a go and see if it is working for you now?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 09/10/2018 :  07:12:46  
Vince, works like a charm. Dare I ask what did you do so I do not mess it up? And thanks.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000