You are here:  » installing PT in local Wampserver


installing PT in local Wampserver

Submitted by Raxstar on Wed, 2011-05-04 05:39 in

Hi

can you please tell me how to install pt script in local wampserver
and run from my local pc. I want to make some CSS changes to my website and
need to work on default.css. I have put the pt script under the folder name
"pricetapestry" and placed inside the c:wamp/www/. I have created the database
username and password and changed the config.php for the local wampserver.
when i access the url http://localhost/pricetapestry/setup.php then it says

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

can you please help me out.

cheers
Raxstar

Submitted by support on Wed, 2011-05-04 08:28

Hi Raxstar,

Did you create a .htaccess or have you left $config_useRewrite = FALSE; in config.php? If you did create a .htaccess I think that might be the cause - if you go the WAMP configuration menu and look for Apache > Apache Modules, make sure rewrite_module is selected, and then restart WAMP...

If that isn't it, could you double check that just a very simple test script works, e.g create the following as test.php

<?php
  
print "It works";
?>

That will double check that PHP is working correctly inside WAMP server...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by Raxstar on Wed, 2011-05-04 08:44

hi

I selected the rewrite_module now and it is working, database pass and well
goes to admin home but there it is displayed

Notice: Undefined variable: tableBeginDone in C:\wamp\www\pricetapestry\admin\index.php on line 217

cheers
Raxstar

Submitted by support on Wed, 2011-05-04 08:51

Hi Raxstar.

Edit your config.php file on the installation, and at the top (second line, after the opening PHP tag) add this code:

  error_reporting(E_ERROR);

That will suppress any variable warnings; but I do try to ensure that none are generated even at E_NOTICE level so I will correct that in the distribution.

Cheers,
David.
--
PriceTapestry.com

Submitted by Raxstar on Wed, 2011-05-04 08:56

hi

I placed the above code in config.php but it is totally gone
and showing

Fatal error: Call to undefined function error_level() in C:\wamp\www\pricetapestry\config.php on line 3

thanks
Raxstar

Submitted by support on Wed, 2011-05-04 08:59

Sorry Raxstar,

It should be error_reporting - corrected above...

Cheers,
David.
--
PriceTapestry.com

Submitted by Raxstar on Wed, 2011-05-04 09:04

hi

no error message now and everything works fine and i setup the feed and
it shows the feed with 7654 products and when i type http://localhost/pricetapestry/
It shows the home page but when i clicked the "Search or browse" - merchant or category
or brand it shows "The webpage cannot be found"

thanks
Raxstar

Submitted by support on Wed, 2011-05-04 09:08

Hi Raxstar,

As you've installed into a subdirectory, make sure that you have in config.php at line 6:

  $config_baseHREF = "/pricetapestry/";

...and in your .htaccess at line 5:

RewriteBase /pricetapestry/

Cheers,
David.
--
PriceTapestry.com

Submitted by Raxstar on Wed, 2011-05-04 09:28

hi

Now it is working well. iam working on default.css file for little css changes.
if i want to make small css changes to the following page

1. http://localhost/pricetapestry/ (home page)
2. http://localhost/pricetapestry/merchant (merchant page)
3. http://localhost/pricetapestry/category (category page)
4. http://localhost/pricetapestry/brand (brand page)
5. http://localhost/pricetapestry/merchant/.... (product page)

then which file should i work with. I can make necessary changes in default.css but i
need to apply it in the above pages and i dont know which file to work. i just want to
apply css of the existing site which i have but it is little big and iam trying.

thank
Raxstar

Submitted by support on Wed, 2011-05-04 09:37

Hi Raxstar,

The pages are created by the following scripts

1. http://localhost/pricetapestry/ (home page)
index.php

2. http://localhost/pricetapestry/merchant/ (merchant page)
search.php
html/searchresults.php (see .searchresults in default.css)

3. http://localhost/pricetapestry/category/ (category page)
search.php
html/searchresults.php (see .searchresults in default.css)

4. http://localhost/pricetapestry/brand/ (brand page)
search.php
html/searchresults.php (see .searchresults in default.css)

5. http://localhost/pricetapestry/product/.... (product page)
products.php
html/product.php (see .product in default.css)

Also don't forget the instructions on '>this page for taking an existing .html design and applying it to your Price Tapestry site:

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by Raxstar on Wed, 2011-05-04 10:10

hi

i want to make some small changes in searchform that appears in home page in the
center and other pages at the top. I located .searchform in default.css and made
necessary changes and applied in /html/searchform.php. the search form shows different position
in home page and different position in inside pages at the top. only common css changes
are applied in .searchform for /html/searchform.php. how to solve this problem.

thanks
Raxstar

Submitted by support on Thu, 2011-05-05 13:20

Hi Raxstar,

What I would do in this scenario (I know you are working on your template at the moment) would be to move the search form HTML / PHP code from html/searchform.php and into your html/header.php (or html/user_header_after.php if using). In the place of html/searchform.php, upload an EMPTY file, as it is included by all main scripts as part of the require() sequence, so this will prevent the search form from being displayed twice anywhere...

Cheers,
David.
--
PriceTapestry.com

Submitted by Raxstar on Thu, 2011-05-05 13:40

Hi

where to place the HTML / PHP code from html/searchform.php in html/header.php file, top
or middle or bottom, which line

thanks
Raxstar

Submitted by support on Thu, 2011-05-05 13:46

Hi Raxstar,

For it to appear at the same point on every single page, from a totally clean installation then it would have to right at the bottom.

However, you would probably want to combine it with other HTML structures also added to your html/header.php file to create the main body of your layout, plus perhaps have it styled appropriately through your CSS which I know you are working on also...

Cheers,
David.
--
PriceTapestry.com

Submitted by Raxstar on Thu, 2011-05-05 14:04

hi

for home page i can work with index.php to adjust the position and style of search form
but for all other pages which file i should work with in order to adjust the position of the searchform.

thanks

Raxstar

Submitted by support on Thu, 2011-05-05 14:10

Hi Raxstar,

If moving the search form to the header code, that would ensure that it appears at the same place on every page. However what you may want to do is add the "Browse by Merchant, Category or Brand" links to that section as well; as currently they only appear on the index page.

The relevant code (from index.php) is as follows, beginning at line 12:

  print "<p>";
  print "<small>";
  print translate("Search or browse by")." ";
  print "<a href='".($config_useRewrite?"merchant/":"merchants.php")."'>".translate("merchant")."</a>, ";
  print "<a href='".($config_useRewrite?"category/":"categories.php")."'>".translate("category")."</a> ".translate("or")." ";
  print "<a href='".($config_useRewrite?"brand/":"brands.php")."'>".translate("brand")."</a>";
  print "</small>";
  print "</p>";

...so if you CUT this code from index.php, and PASTE it into your html/header.php following the search form code; that will result in the search form and browse links appearing at the same place on every page.

What you might want to do however is extend the <div class='searchform'> DIV to include the above code, and then you can style the whole section entirely within your CSS under the .searchform class.

If you're not sure of any of the above, if you would like to email me your latest index.php and html/header.php I'll position everything for you...

Cheers,
David.
--
PriceTapestry.com

Submitted by Raxstar on Thu, 2011-05-05 15:49

hi

Little confusing. i have mailed my index.php and html/header.php.

thanks
Raxstar

Submitted by support on Thu, 2011-05-05 15:58

Thanks, Raxstar - I've received your emails will look at your files and follow up by email...

Cheers,
David.
--
PriceTapestry.com