Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with Product Listing Layout


bnguru

Recommended Posts

I've been playing with a few of the contributions to get a cleaner look for my product listings. I now have everything laying out the way I want it, but I am missing information from the tables. You can see what I have at:

 

http://trainliquidators.com/catalog/index.php?cPath=1_32

 

The image is there, but then I want the item no. (model?), description, available qty, manufacturer and then the add to cart and details buttons.

 

I seems like everything is called for in my product_listing.php yet they don't display?

 

Any general ideas on where I'm going wrong?

Steve in Ellenton, FL

Link to comment
Share on other sites

which contrib did u use?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

not sure about that contrib, u could try

 

Product Listing Enhancements, Thumbnails & Manufacturer Headings http://addons.oscommerce.com/info/6051

 

that does the same & more

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

I reinstalled your contrib. This info I want now shows in list format but I now have two other issues:

 

First - if you click on add to cart - the button takes me off my site?

When you click on details, the detail page does not show the image.

 

Also, I would like to add a rule between listings to make them easier to read. Where would I edit things to do this.

 

I tried using some of the enhanced llistings, but can't seem to get any to work.

Steve in Ellenton, FL

Link to comment
Share on other sites

First - if you click on add to cart - the button takes me off my site?

 

when u hover over the button what url does it show? (sorry restrictions currently prevent me viewing your site)

 

 

When you click on details, the detail page does not show the image.

 

The contrib makes no changes to product_info so any error there is incidental, does the image show in firefox, do you get the red x?

 

I tried using some of the enhanced llistings, but can't seem to get any to work.

 

Did you make the changes to the css specified? Did u try clearing your browser cache?

 

Also, I would like to add a rule between listings to make them easier to read. Where would I edit things to do this.

 

Not that simple, but here's the code:

 

in modules/product_listing.php

 

find (418)

 

  $list_box_contents[$cur_row] = list_box_data($listing, $column_list);

 

add after:

 

   for ($i=0, $n=sizeof($list_box_contents[$cur_row]); $i < $n; $i++) { 
  $list_box_contents[$cur_row+1][$i] = array('align' => 'left',
						 'params' => 'class="productListing-data"',
						 'text'  => '<hr>');
		   }

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

When hovering it shows: shortcut to index.php?cPath=2_37&sort=5a&action=buy_now&products_id=???? (??? = prod id)

 

 

 

thats looks correct, where does it take u if u click it then?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

you have failed to upload includes/filenames.php, or its corrupt, click on cart etc gives same error.

 

Why blame a contrib when your site is not even working correctly!! :angry:

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Whoa - down boy - no one is passing blame! I'm merely asking for help. I know there are areas of the site not working right yet. At this point I just want things to display properly, then I can start fixing other issues.

 

filenames.php is uploaded, and each time I've received a php error message I have corrected it. I'm baffled because there is no cart error. I would expect the usual file not found type message indicating where it's getting tripped up.

 

Here is the filenames file:

 

<?php

/*

$Id: filenames.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2007 osCommerce

 

Released under the GNU General Public License

*/

 

// define the filenames used in the project

define('FILENAME_ADMINISTRATORS', 'administrators.php');

define('FILENAME_ALSO_PURCHASED_PRODUCTS', 'also_purchased_products.php');

define('FILENAME_BACKUP', 'backup.php');

define('FILENAME_BANNER_MANAGER', 'banner_manager.php');

define('FILENAME_BANNER_STATISTICS', 'banner_statistics.php');

define('FILENAME_CACHE', 'cache.php');

define('FILENAME_CATALOG_ACCOUNT_HISTORY_INFO', 'account_history_info.php');

define('FILENAME_CATEGORIES', 'categories.php');

define('FILENAME_CONFIGURATION', 'configuration.php');

define('FILENAME_COUNTRIES', 'countries.php');

define('FILENAME_CURRENCIES', 'currencies.php');

define('FILENAME_CUSTOMERS', 'customers.php');

define('FILENAME_DEFAULT', 'index.php');

define('FILENAME_DEFINE_LANGUAGE', 'define_language.php');

define('FILENAME_FILE_MANAGER', 'file_manager.php');

define('FILENAME_GEO_ZONES', 'geo_zones.php');

define('FILENAME_LANGUAGES', 'languages.php');

define('FILENAME_LOGIN', 'login.php');

define('FILENAME_MAIL', 'mail.php');

define('FILENAME_MANUFACTURERS', 'manufacturers.php');

define('FILENAME_MODULES', 'modules.php');

define('FILENAME_NEW_PRODUCTS', 'new_products.php');

define('FILENAME_NEWSLETTERS', 'newsletters.php');

define('FILENAME_ORDERS', 'orders.php');

define('FILENAME_ORDERS_INVOICE', 'invoice.php');

define('FILENAME_ORDERS_PACKINGSLIP', 'packingslip.php');

define('FILENAME_ORDERS_STATUS', 'orders_status.php');

define('FILENAME_POPUP_IMAGE', 'popup_image.php');

define('FILENAME_PRODUCTS_ATTRIBUTES', 'products_attributes.php');

define('FILENAME_PRODUCTS_EXPECTED', 'products_expected.php');

define('FILENAME_PRODUCT_INFO', 'product_info.php');

define('FILENAME_PRODUCT_LISTING', 'product_listing.php');

define('FILENAME_REVIEWS', 'reviews.php');

define('FILENAME_SERVER_INFO', 'server_info.php');

define('FILENAME_SHIPPING_MODULES', 'shipping_modules.php');

define('FILENAME_SPECIALS', 'specials.php');

define('FILENAME_STATS_CUSTOMERS', 'stats_customers.php');

define('FILENAME_STATS_PRODUCTS_PURCHASED', 'stats_products_purchased.php');

define('FILENAME_STATS_PRODUCTS_VIEWED', 'stats_products_viewed.php');

define('FILENAME_TAX_CLASSES', 'tax_classes.php');

define('FILENAME_TAX_RATES', 'tax_rates.php');

define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php');

define('FILENAME_WHOS_ONLINE', 'whos_online.php');

define('FILENAME_ZONES', 'zones.php');

?>

 

Based on what you're telling me, I must be missing a couple of file definitions to get to the cart. I'll compare it to the original file to see what's missing.

 

Again, thanks for your patience and help. Sorry if you thought I was blaming the contrib be cause I like it. I am trying to modify my site to make it "prettier" and less os commerce like.

Steve in Ellenton, FL

Link to comment
Share on other sites

Whoa - down boy - no one is passing blame! I'm merely asking for help. I know there are areas of the site not working right yet. At this point I just want things to display properly, then I can start fixing other issues.

 

filenames.php is uploaded, and each time I've received a php error message I have corrected it. I'm baffled because there is no cart error. I would expect the usual file not found type message indicating where it's getting tripped up.

 

Here is the filenames file:

 

<?php

/*

$Id: filenames.php 1739 2007-12-20 00:52:16Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2007 osCommerce

 

Released under the GNU General Public License

*/

 

// define the filenames used in the project

define('FILENAME_ADMINISTRATORS', 'administrators.php');

define('FILENAME_ALSO_PURCHASED_PRODUCTS', 'also_purchased_products.php');

define('FILENAME_BACKUP', 'backup.php');

define('FILENAME_BANNER_MANAGER', 'banner_manager.php');

define('FILENAME_BANNER_STATISTICS', 'banner_statistics.php');

define('FILENAME_CACHE', 'cache.php');

define('FILENAME_CATALOG_ACCOUNT_HISTORY_INFO', 'account_history_info.php');

define('FILENAME_CATEGORIES', 'categories.php');

define('FILENAME_CONFIGURATION', 'configuration.php');

define('FILENAME_COUNTRIES', 'countries.php');

define('FILENAME_CURRENCIES', 'currencies.php');

define('FILENAME_CUSTOMERS', 'customers.php');

define('FILENAME_DEFAULT', 'index.php');

define('FILENAME_DEFINE_LANGUAGE', 'define_language.php');

define('FILENAME_FILE_MANAGER', 'file_manager.php');

define('FILENAME_GEO_ZONES', 'geo_zones.php');

define('FILENAME_LANGUAGES', 'languages.php');

define('FILENAME_LOGIN', 'login.php');

define('FILENAME_MAIL', 'mail.php');

define('FILENAME_MANUFACTURERS', 'manufacturers.php');

define('FILENAME_MODULES', 'modules.php');

define('FILENAME_NEW_PRODUCTS', 'new_products.php');

define('FILENAME_NEWSLETTERS', 'newsletters.php');

define('FILENAME_ORDERS', 'orders.php');

define('FILENAME_ORDERS_INVOICE', 'invoice.php');

define('FILENAME_ORDERS_PACKINGSLIP', 'packingslip.php');

define('FILENAME_ORDERS_STATUS', 'orders_status.php');

define('FILENAME_POPUP_IMAGE', 'popup_image.php');

define('FILENAME_PRODUCTS_ATTRIBUTES', 'products_attributes.php');

define('FILENAME_PRODUCTS_EXPECTED', 'products_expected.php');

define('FILENAME_PRODUCT_INFO', 'product_info.php');

define('FILENAME_PRODUCT_LISTING', 'product_listing.php');

define('FILENAME_REVIEWS', 'reviews.php');

define('FILENAME_SERVER_INFO', 'server_info.php');

define('FILENAME_SHIPPING_MODULES', 'shipping_modules.php');

define('FILENAME_SPECIALS', 'specials.php');

define('FILENAME_STATS_CUSTOMERS', 'stats_customers.php');

define('FILENAME_STATS_PRODUCTS_PURCHASED', 'stats_products_purchased.php');

define('FILENAME_STATS_PRODUCTS_VIEWED', 'stats_products_viewed.php');

define('FILENAME_TAX_CLASSES', 'tax_classes.php');

define('FILENAME_TAX_RATES', 'tax_rates.php');

define('FILENAME_UPCOMING_PRODUCTS', 'upcoming_products.php');

define('FILENAME_WHOS_ONLINE', 'whos_online.php');

define('FILENAME_ZONES', 'zones.php');

?>

 

Based on what you're telling me, I must be missing a couple of file definitions to get to the cart. I'll compare it to the original file to see what's missing.

 

Again, thanks for your patience and help. Sorry if you thought I was blaming the contrib be cause I like it. I am trying to modify my site to make it "prettier" and less os commerce like.

 

 

That looks like the filenames.php from the admin side, if you put that on the client side no wonder it don`t work!!!

Edited by spooks

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

I would also advise creating your own '404' page & directing to the, instead of your hosts page, gives a much better impression, despite the error.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

The error page still needs to be php to ensure u don't loose the client session

 

the best way is to use htaccess

 

 
RewriteEngine on

ErrorDocument 404 /404.php

 

that directs all 404 errors to the page in the root called 404.php

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Thanks. I'll give it a try after I get the rest going.

 

Curious - what file should be adding to the cart? Is it within something, or a file on it's own like add_cart.php?

Steve in Ellenton, FL

Link to comment
Share on other sites

One more question, maybe you can answer -

 

Is there a document on this site that shows all files and proper folders they should be under? Maybe even a listing of what each file accomplishes so that it's easier to make modifications, knowing which file controls which process or function?

Steve in Ellenton, FL

Link to comment
Share on other sites

Not a file, it adds to the clients cart to a temporary database together with thier session

Edited by spooks

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...