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
Author « Topic »  

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 10/22/2020 :  06:26:18  
Is there a tutorial of creating a new specific product page?

I have looked but cannot find one.

Thank you
John

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 10/22/2020 :  10:23:12  
Hi John,
There's a full run down here - https://www.ecommercetemplates.com/seo/static-url-php.asp

Or chapter 9 of the user manual under Converting dynamic to static URLs



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 10/22/2020 :  13:25:54  
Thank you the information.
Lots to learn.
bobswidgets.php was modified like this
<?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";?>
<?php
$explicitid=2;
?>
<?php include "vsadmin/inc/incproducts.php"?><!DOCTYPE html><html><!-- #BeginTemplate "/Templates/main.dwt" --><!-- DW6 -->

This raises an error message;
Fatal error: Cannot redeclare isinscrid() (previously declared in C:\xampp\htdocs\fb-design-responsive\vsadmin\inc\incproducts.php:86) in C:\xampp\htdocs\fb-design-responsive\vsadmin\inc\incproducts.php on line 92

Perhaps you can see where this may be coming from?

Regards
John

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 10/22/2020 :  13:33:01  
Hi John,
That error suggests you have duplicated the include lines below, if you have them at the very top of the file you'll need to remove them lower down if they're present

include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
include "vsadmin/inc/metainfo.php";?>

What you need is this at the very top of the file and do make sure there's no space before the opening <?php tag and it's at the very top of the file
<?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
$explicitid=2;
include "vsadmin/inc/metainfo.php";
?>

and this line needs to be in the editable region (body section)
<?php include "vsadmin/inc/incproducts.php"?>



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 10/22/2020 13:39:43

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 10/22/2020 :  13:56:16  
<?php include "vsadmin/inc/incproducts.php"?>
This line was in twice once at the top where I placed it plus already placed in the body code.
I removed the top line.

I am using Dreamweaver cs6.
When I run bobswidgets.php I get the path showing as Home » Designers » Ash Footwear

I cannot see any reason for this particular path so that's a puzzle, may because it starts as Ash A.

Many thanks Phil,
John

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 10/22/2020 :  14:18:29  
Hi John
I assume Ash Footwear has a category ID of 2.
Is that correct?. If so that's why you're seeing that category with the Ash Footwear products.





* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 10/23/2020 :  03:21:42  
Hello Phil,
Great news a step forward!
I copied products to bobswidgets.php and set the explicitid to various numbers and it is producing the correct items.
Yes your correct that Ash Footwear has a category ID of 2.

Maybe the manual could do with a look at.
Now just add the variable to specify the category before the incproducts include like this for PHP

<?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
$explicitid=2;
?>
<?php include "vsadmin/inc/incproducts.php"?>

Seems to imply
<?php include "vsadmin/inc/incproducts.php"?>
is part of the topcode but as you rightly point out, should be placed in the middles of the page.

I did notice on the page there is no Addd to Cart button although there is a checkout button.

Thank you so much for your help.
Regards
John

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 10/23/2020 :  06:06:48  
Hi John.
quote:
I did notice on the page there is no Addd to Cart button although there is a checkout button.


I'm assuming your dynamic product pages don't have an add to cart button either, so you'll have to go to the product detail page to add to cart yes?



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

JH10
Advanced Member

United Kingdom
304 Posts

Pre-sales questions only
(More Details...)

Posted - 10/23/2020 :  06:37:16  
Yes of course!

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 10/23/2020 :  07:15:48  
So now just rename bobswidgets.php to ash-footwear.php so the page has a meaningful name and add ash-footwear.php in the optional url for that category



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000