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
 WordPress for Ecommerce Templates
 Trouble setting uppages.
Author « Topic »  

kierantravel
Advanced Member

United Kingdom
110 Posts

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

Posted - 10/15/2017 :  09:19:30  
Hoping somebody can help me as Im having trouble setting up pages
(andy you have login to site)

DB is connected and I have populated categories and products
Uploaded an image for 1 product but dont see image (is there a specific size?

CSS looks as though its not being applied at all

I have used ECT widgets to display data on homepage

I have not pasted any code into ect pages cart etc to show where site is.
1. What do I have topaste and 2. where do I have to paste it.
I did follow the video but am alittle confused
Any help appreciated

Andy
ECT Moderator

95440 Posts

Posted - 10/15/2017 :  23:55:46  
Hi

Are you using the code for the products page I gave you here in the post here https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=108740

Andy

Please feel free to review / rate our software

kierantravel
Advanced Member

United Kingdom
110 Posts

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

Posted - 10/16/2017 :  06:52:22  
Ihavent put that code in any pages:
Which pages? - can you point me in right direction Andy please


I am not sure the template I am using is best it has cms??
I want 100% responsive wp template -not 960 or boxed

Thx Pete

Andy
ECT Moderator

95440 Posts

Posted - 10/16/2017 :  07:04:58  
That would be you products.php page. Open a text editor like notepad, paste those lines in and then save it as products.php. Upload it to the store root and it should show your product listing.

You'd then need to do the same for the other 8 or so store pages.

Andy

Please feel free to review / rate our software

kierantravel
Advanced Member

United Kingdom
110 Posts

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

Posted - 10/16/2017 :  07:12:51  
I added that code to products.php

I can see all products (using the products widget) onthe site

kierantravel
Advanced Member

United Kingdom
110 Posts

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

Posted - 10/16/2017 :  07:17:10  
I have done the ect products.php page - which are the other 8 pages?
The instructions were confusing to me - sorry

Andy
ECT Moderator

95440 Posts

Posted - 10/16/2017 :  07:26:00  
The core pages would be

Cart
Categories
Proddetail
Products
Search
Sorry
Thanks

so in the example for setting up cart.php, change the two instances of products to cart in the example and save as cart.php eg

<?php
$GLOBALS['ectcartpage']='cart';
require('./wp-config.php');
$wp->init();
$wp->parse_request();
$wp->query_posts();
$wp->register_globals();
get_header();
?>
<div id="page-content" class="no-sidebar-layout"><div class="container"><div id="the-content" >
<?php
include "vsadmin/inc/inccart.php";
?>
</div></div></div>
<?php
get_footer();
?>

and then do the same for the others.

Andy

Please feel free to review / rate our software

kierantravel
Advanced Member

United Kingdom
110 Posts

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

Posted - 10/16/2017 :  08:01:41  
OK , I get it.
Are these classes for side bar correct?

1. class="no-sidebar-layout"

2. class="right-sidebar-layout"

3. class="left-sidebar-layout"

kierantravel
Advanced Member

United Kingdom
110 Posts

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

Posted - 10/16/2017 :  08:04:59  
Does this line have to be included in all pages as you described above or only cart?

<?php
include "vsadmin/inc/inccart.php";
?>

Andy
ECT Moderator

95440 Posts

Posted - 10/16/2017 :  08:21:44  
That line would change depending which page you were setting up so that would only go on cart.php

Andy

Please feel free to review / rate our software

kierantravel
Advanced Member

United Kingdom
110 Posts

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

Posted - 10/16/2017 :  09:02:22  
The code I have added is the same with the exception of the vsadmin/inc xxx.php
Have I got this right this right as i get an errorwhen I try to search fora product

ERROR on search reads:
Warning: include(vsadmin/inc/search.php): failed to open stream: No such file or directory in /var/www/vhosts/club4tickets.com/httpdocs/search.php on line 12

Warning: include(vsadmin/inc/search.php): failed to open stream: No such file or directory in /var/www/vhosts/club4tickets.com/httpdocs/search.php on line 12

Warning: include(): Failed opening 'vsadmin/inc/search.php' for inclusion (include_path='.:') in /var/www/vhosts/club4tickets.com/httpdocs/search.php on line 12
----------------------------------------------------------------------------------------------

Categories
<?php
include "vsadmin/inc/categories.php";
?>
Proddetail
<?php
include "vsadmin/inc/proddetail.php";
?>

Products
<?php
include "vsadmin/inc/products.php";
?>

Search
<?php
include "vsadmin/inc/search.php";
?>

Sorry
<?php
include "vsadmin/inc/sorry.php";
?>

Thanks
<?php
include "vsadmin/inc/thanks.php";
?>

Andy
ECT Moderator

95440 Posts

Posted - 10/16/2017 :  09:09:24  
You are missing the "inc" prefix

Categories
<?php
include "vsadmin/inc/inccategories.php";
?>
Proddetail
<?php
include "vsadmin/inc/incproddetail.php";
?>

Products
<?php
include "vsadmin/inc/incproducts.php";
?>

Search
<?php
include "vsadmin/inc/incsearch.php";
?>

Sorry
<?php
include "vsadmin/inc/incsorry.php";
?>

Thanks
<?php
include "vsadmin/inc/incthanks.php";
?>

Andy

Please feel free to review / rate our software

kierantravel
Advanced Member

United Kingdom
110 Posts

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

Posted - 10/16/2017 :  09:31:10  
Doh - schoolboy error - sorry !

I have now remove the sidebar on all the 7 pages mentioned above.
Have I written this line correctly: <div id="page-content class="grid">

categories.php (code below) shows Error: No incfunctions.php file

?php
$GLOBALS['ectcartpage']='categories';
require('./wp-config.php');
$wp->init();
$wp->parse_request();
$wp->query_posts();
$wp->register_globals();
?>
<div id="page-content class="grid"><div class="container"><div id="the-content" >
<?php
include "vsadmin/inc/inccategories.php";
?>
</div></div></div>
<?php
get_footer();
?>

Andy
ECT Moderator

95440 Posts

Posted - 10/16/2017 :  09:56:34  
That would mean you were missing the lines at the top of header.php

https://www.ecommercetemplates.com/wordpress/wp-troubleshooting.asp

I did add those for you last week so may be they have been overwritten.

Andy

Please feel free to review / rate our software

kierantravel
Advanced Member

United Kingdom
110 Posts

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

Posted - 10/16/2017 :  10:13:35  
The Theme header.php page looks 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";

Andy
ECT Moderator

95440 Posts

Posted - 10/16/2017 :  10:25:18  
It shows fine at

http://yoursite.com/categories.php

Andy

Please feel free to review / rate our software

kierantravel
Advanced Member

United Kingdom
110 Posts

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

Posted - 10/16/2017 :  10:27:35  
I checked the header.php and it had not changed so it had to be something I did - yep !!

I removed 'get_header();' from each of the 7 files when I globally removed 'sidebar'

am I getting tired or old ??

Thanks for your help Andy - really appreciate it
  « 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