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

dnyman
New Member

Australia
86 Posts

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

Posted - 03/27/2018 :  20:31:23  
We are testing integration of our ECT site with Wordpress, and have purchased replacement software for ECT WordPress integration with the ECT Styles theme. I have installed everything according to the installation instructions for the main ECT files (products.php, cart.php, etc) and all is going really well.
We already had a number of "static" pages on our site (quite a few, actually), one of which was index.php, the landing page we would like to use in our new site once migrated to using Wordpress. I have managed to alter this index.php file on our WP test site so that it utilises the WP includes, etc, and I have placed the content of our old index.php file into the WP CMS as a page, so that I can include that content into the new index.php file (see code below).
Is there any problem with replacing the WP index.php installed in the root of the website with our index.php file, so that I don't have to worry about the stuff in Wordpress relating to "Home" pages, etc? In other words, so that if a user goes to our website without a trailing /<file_specifier>, they will get our index.php file by default?
Our index.php code is below:

------------------------------
<?php
$GLOBALS['ectcartpage']='products';
require('./wp-ect-header.php');
get_header();
?>
<style>
div.col-4{
padding-left: 0px;
padding-right: 0px;
}
</style>
<div class="midWrapper">
<div class="container">
<div class="row clearfix">
<div class="col-12 mid_<?php echo CONTAINER_POS?>">
<?php
$post = get_post( 58 );
$output = $post->post_content;
print "$output\n";
?>
</div>
<!-- <?php get_sidebar(); ?> -->
</div>
</div>
</div>
<?php get_footer(); ?>

-----------------------------
Thanks,
Dave.

Andy
ECT Moderator

95440 Posts

Posted - 03/28/2018 :  00:04:32  
Hi Dave

I don't see why that shouldn't work.

Andy

Please feel free to review / rate our software
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.04 seconds. Snitz Forums 2000