Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Need help quickly - Can't configure product listings!!!

Need help quickly - Can't configure product listings!!!

Locked

Views: 1,171

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Oct 2006, 1:28 AM
#1
brain21 avatar

brain21

New Zenner

Join Date:
Sep 2006
Posts:
42
Plugin Contributions:
0

Need help quickly - Can't configure product listings!!!

[edit] it seems that the automatic censors are putting *s in my URL. That would be . k i c k s - a s s . o r g

You can see the pages here:

http://turdferguson.kicks-***.org/connequestrian/store/index.php?main_page=index&cPath=65

And here:

http://turdferguson.kicks-***.org/connequestrian/store/index.php?main_page=product_info&cPath=65&products_id=251

Now the rest of my site looks like this:

http://turdferguson.kicks-***.org/connequestrian/store/

NOTE: These pages are on my server at home, and accessed via dyndns, so it might be a bit slow.

Suffice it to say that the first two links are white with black, big, bold text

On the product listing page, there are no images being shown, even though I added them under Catalog->Categoris/Products

I have looked at and tried to edit MANY php files, adn not found the right one. I have edited the style sheets and even added

#productListing {
color: #ff0000;
}

just to see if some text would change color.

I can't figure out where to control the text, the table that it is laid out in, the background images, or even to get rid of the baners & crap. This page seems to be governed somewhat diferently from the rest of the normal pages (for example, I can put a tpl_main_page.php with the headers, columns, and footers disabled in /templates/test_template/contact_us to get rid of the headers, footer, etc. on the contact_us page. When I do the same for this page, I get errors everywhere.

Ultimately I don't want "More info" links either. I want to order directly from the page, and I want the page to look very similar to:

http://www.connequestrian.com/items.html
(just plain old html file).

I've been trying to figure this out for about 10 hours and getting nowhere very slowly.

Please help quick!

Thanks,

Brain21

EDITED: Never, ever post the zen_id or zenAdminID (session id) in a forum, email, newsgroup, newsletter, advertisement, etc. etc. etc. or you will be doomed ... :eek:

1 Oct 2006, 1:43 AM
#2
brain21 avatar

brain21

New Zenner

Join Date:
Sep 2006
Posts:
42
Plugin Contributions:
0

Re: Need help quickly - Can't configure product listings!!!

BTW, this is how I created the fiasco that you see:

  1. Created a category ("Ladies") - zencart gave it an ID of 65
  2. Under that category, I created the products that you see on that page

When I created those products I added a picture, then clicked on Preview, where it loks TOTALLY different from what you see on the screen there. Clicked on update to save it.

The link that I am using is the link that ZenCart initially put into the headers next to login, home, etc. for "Ladies"

Thanks,

Brain21

1 Oct 2006, 4:26 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need help quickly - Can't configure product listings!!!

You are using a subdomain ...

Then, your listings are calling http://192.168.168.168

You need to get your settings right for this ...

Some sites are not good with subdomains ...

I am not sure what you are doing with the IP address ...

Perhaps start with posting from the server your file:
/includes/configure.php

without the username and password ...

1 Oct 2006, 5:34 AM
#4
brain21 avatar

brain21

New Zenner

Join Date:
Sep 2006
Posts:
42
Plugin Contributions:
0

Re: Need help quickly - Can't configure product listings!!!

Using a subdomain because this is strictly a test server on a machine at home.

Making all changes on this before I upload to the real site.

The Subdomain is a DynDNS account. 192.168.168.168 is the (unroutable) static IP of the machine.

turdferguson.kicks-***.org is simply an alias for my external dynamic IP, and I have NAT and port forwarding turned on so that traffic can get to the machine inside my network.

To the machine itself it doesn't matter. It's getting the files from itself, so that stuff.

Here's the configure.php file. It all looks correct, and "REMOVED" is neither my DBs UID or password.

<?php /** * * @package Configuration Settings * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ // Define the webserver and path parameters // HTTP_SERVER is your Main webserver: eg, <http://www.yourdomain.com> // HTTPS_SERVER is your Secure webserver: eg, <https://www.yourdomain.com> define('HTTP_SERVER', 'http://192.168.168.168'); define('HTTPS_SERVER', 'https://192.168.168.168'); // Use secure webserver for checkout procedure? define('ENABLE_SSL', 'false'); // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes! // * DIR_WS_* = Webserver directories (virtual/URL) // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder) define('DIR_WS_CATALOG', '/connequestrian/store/'); define('DIR_WS_HTTPS_CATALOG', '/connequestrian/store/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/'); define('DIR_WS_PHPBB', '/'); // * DIR_FS_* = Filesystem directories (local/physical) //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/ define('DIR_FS_CATALOG', 'C:/Program Files/xampp/htdocs/connequestrian/store/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/'); define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS); define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/'); // define our database connection define('DB_TYPE', 'mysql'); define('DB_PREFIX', ''); define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty define('DB_SERVER_USERNAME', 'REMOVED'); define('DB_SERVER_PASSWORD', 'REMOVED'); define('DB_DATABASE', 'cec_db'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db' // The next 2 "defines" are for SQL cache support. // For SQL_CACHE_METHOD, you can select from: none, database, or file // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder // ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash define('SQL_CACHE_METHOD', 'none'); define('DIR_FS_SQL_CACHE', 'C:/Program Files/xampp/htdocs/connequestrian/store/cache'); ?>
1 Oct 2006, 5:46 AM
#5
brain21 avatar

brain21

New Zenner

Join Date:
Sep 2006
Posts:
42
Plugin Contributions:
0

Re: Need help quickly - Can't configure product listings!!!

In the meantime, I'm using a hack.

I am basically creating a new page. The define_newpage.php file has my static html code.

What I did was take the 2nd of the links in my first post & look at the source.

I took the correct form (start & end), product_id for the cart, and (correctly numbered) attrib options from that page and put it in my define_newpage.php file. I had to repeat this for each individual item and verify that I got all of the numbers/IDs correct.

It works. At least I can select say 3 pink vests and click on add to cart, and I see 3 pink vests in the cart. Then I go back & browse and select 2 Turquoise jackets and add them to the cart, and the cart correctly shows the correct vests & jackets.

It's a kludge but it works for now, But now I have to figure out how to customize the look of the cart page itself. Like the other pages, I don't think I can simple create a tpl_main_page.php file and put it in a /templates/test_template/shopping_cart (or whatever) dir to remove the headers, footers and columns. The cart page itself doesn't have to look exactly like the rest, but I'd at least like to remove the banners, and control the fonts, faces, etc. via the correct stylesheet options.

How do I do this (Which files should I be editing for this, and what should I be editing)?

Thanks,

Brain21