Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Listing Enhancements, Thumbnails & Manufacturer Headings


spooks

Recommended Posts

Sam,

 

great contribution !

 

 

When the query runs to pick up the images and I do not have an image that needs to be displayed, I should get the "X" image, the default for broken link to image.

 

I am not getting this, for what ever reason if the query returns M173.jpg and I do not have the image in my directory, it will display M137.jpg ? This is weird :rolleyes:

 

When I display the source for the HTML page being displayed, the CODE has M173.jpg, but the thumbnail page displays the WRONG image.

 

Any suggestions and help would greatly be appreciated!

 

thanks.

Link to comment
Share on other sites

images are pulled from dbase, this uses tep_image to display those images, some contrib modify that, including displaying a missing image pic, perhaps u have that?

 

otherwise it looks for images from the additional images contrib, do u have that?

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

Spooks,

 

Trying not to wear out my welcome, need your insight please.

 

Installed Product Listing Enhancements, Thum... then installed Short Description. Short Description shows up every where including the cart (thanks to your other contribution) BUT doesn't show up on main page.

 

Triple checked everything. Any suggestions on where to look to correct this problem. User error on my part, I am sure.

 

Tried to over install product_listing_setup.php, but it aborted any way to force or just another dead end?

 

Thanks for your help.

Link to comment
Share on other sites

have u set it to be displayed in admin?

 

have u read the docs

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

images are pulled from dbase, this uses tep_image to display those images, some contrib modify that, including displaying a missing image pic, perhaps u have that?

 

otherwise it looks for images from the additional images contrib, do u have that?

 

very frustrating . . .

 

I am not using anything that would substitute images the only contrib I have that deals with images is this one. I have not even installed the multi images contrib.

Link to comment
Share on other sites

Powerful mod! Just a quick newbie question about the infobox header text. With the design I have, I need to mover the header text up a bit (I't resting on the bottom of the infobox header graphic). I've been struggling with the stylesheet for hours. Any ideas on where I can make this change?

Link to comment
Share on other sites

too little info, what mode are u trying this in and which module, a url would also help so i can see the issue.

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

too little info, what mode are u trying this in and which module, a url would also help so i can see the issue.

 

 

I set up the admin to display and I read the docs - maybe didn't comprehend. :P

 

Again, displays perfectly everywhere but main page. Probably not enough info for you to provide insight... but if you could suggest where to look... that would be great.

 

I did notice that in Admin Product Listings, short description is true or false with no alternative for order of display?

Link to comment
Share on other sites

too little info, what mode are u trying this in and which module new products maybe????????

 

short description appears after name, that u can set order

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

too little info, what mode are u trying this in and which module new products maybe????????

 

short description appears after name, that u can set order

 

 

:rolleyes:

Yes, new products is the problem child.

 

But was able to change order for manufacturer to: Manu Name, Picture, Product name, short description, price, etc. Just the way I want it to display.

 

Just how to do that with New Product Page. Any way to cut from manufacturer.php and paste over new product?

 

Thanks Sam. You are very generous with your time and knowledge.

Link to comment
Share on other sites

the heading code for the new_products.php module is

 

 

 

 $info_box_contents = array();
 $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')));

 new contentBoxHeading($info_box_contents);

 

so perhaps you should play with the TABLE_HEADING_NEW_PRODUCTS define?

 

but your question seems to have changed!!!

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 heading code for the new_products.php module is

 

 

 

 $info_box_contents = array();
 $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')));

 new contentBoxHeading($info_box_contents);

 

so perhaps you should play with the TABLE_HEADING_NEW_PRODUCTS define?

 

but your question seems to have changed!!!

 

 

Big question, thinking of wiping out everything and starting over with what I now know.... Or am I close to correcting this house of cards?

 

Thanks again, I will play with the table first. I love learning! Thanks for your patience.

Link to comment
Share on other sites

Big question, thinking of wiping out everything and starting over with what I now know.... Or am I close to correcting this house of cards?

 

Thanks again, I will play with the table first. I love learning! Thanks for your patience.

 

 

Im not sure what your saying, but i hope i helped, good luck. :)

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

Powerful mod! Just a quick newbie question about the infobox header text. With the design I have, I need to mover the header text up a bit (I't resting on the bottom of the infobox header graphic). I've been struggling with the stylesheet for hours. Any ideas on where I can make this change?

 

My apoligies - I think I put this post in the wrong place (after examining code for several hours). I will create it again in Graphical Borders.

Link to comment
Share on other sites

My apoligies - I think I put this post in the wrong place (after examining code for several hours). I will create it again in Graphical Borders.

 

 

No problem

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 hope this is the right place for this topic. I'm not even sure if this is possible, but I'm trying to figure out how to insert a small field so customers can enter their desired quantity of a product before they click the "buy now" button. I've seen a lot of carts with this.

 

Something like this was visible on the products page at original install, but since I installed Product Listing Enhancements, the feature isnt' showing up.

 

In fact, before I go searching for code, I wanted to make sure it's possible to have this field on index.php (on my root), such as in the "New Produts" infobox. So essentially, there would be a little box next to the the "buy now" and "details" link for all the product listings.

 

With Oscommerce, I wasn't' sure if a cookie/session variable had to be started first for the feature to work (e.g. the visitor would have to go a page deep before the feature worked).

 

I would love to know if this can work on the index page, and if it can, please give me some suggesting as to where I might find the code/where I would install it. Thank you.

Link to comment
Share on other sites

To add a quantity box simply:

 

replace:

 

$lc_text = $button;

 

with

 

	  $lc_text = '<form name="cart_add" method="post" action="' . tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=update_product&products_id=' . $listing['products_id'] , 'NONSSL'). '"><input type="hidden" name="products_id" value="' . $listing['products_id'] . '"><input type="text" name="cart_quantity" value="1" maxlength="5" size="5"><br>' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</form>';

 

therwe are still some issues with this, but it get u started.

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

To add a quantity box simply:

 

replace:

 

$lc_text = $button;

 

with

 

	  $lc_text = '<form name="cart_add" method="post" action="' . tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=update_product&products_id=' . $listing['products_id'] , 'NONSSL'). '"><input type="hidden" name="products_id" value="' . $listing['products_id'] . '"><input type="text" name="cart_quantity" value="1" maxlength="5" size="5"><br>' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</form>';

 

therwe are still some issues with this, but it get u started.

 

Great News! - I was crossing my fingers this would work in index.php. Before I set it up, can you give me a brief idea of what the issues are? So so I can know what to look out for. Anything major? Thanks.

Link to comment
Share on other sites

u refer to index.php as if it were a static page, this is php, so its dynamic, the content of index.php depends on where the visitor came from & what they were doing, so u need to be very specific.

 

I don't recall the issues right now, try it & find out, u cant expact us to do it all for u!!!

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

u refer to index.php as if it were a static page, this is php, so its dynamic, the content of index.php depends on where the visitor came from & what they were doing, so u need to be very specific.

 

I don't recall the issues right now, try it & find out, u cant expact us to do it all for u!!!

 

Thanks for the insights. I just didn't know what to expect (if it was stable yet, etc). If I run into any big snags, I'll make sure to share. Thanks again.

Link to comment
Share on other sites

Im not sure what your saying, but i hope i helped, good luck. :)

 

 

Hey All,

 

Just want every one to know that Product Listing Enhancements is a great contribution! And Spooks is a great resource and quite the expert.

 

My problems involve another contrib... installed incorrectly by me and stupid attempts to resolve the problem.

 

Thanks again for all your help Spooks.

Link to comment
Share on other sites

Hey All,

 

Just want every one to know that Product Listing Enhancements is a great contribution! And Spooks is a great resource and quite the expert.

 

My problems involve another contrib... installed incorrectly by me and stupid attempts to resolve the problem.

 

Thanks again for all your help Spooks.

 

I also would like to add an additional thanks to Spooks. This mod is one of the best/biggest improvements I've seen for oscommerce! Much appreciation.

Link to comment
Share on other sites

Your welcome :)

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

To add a quantity box simply:

 

replace:

 

$lc_text = $button;

 

with

 

	  $lc_text = '<form name="cart_add" method="post" action="' . tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=update_product&products_id=' . $listing['products_id'] , 'NONSSL'). '"><input type="hidden" name="products_id" value="' . $listing['products_id'] . '"><input type="text" name="cart_quantity" value="1" maxlength="5" size="5"><br>' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</form>';

 

therwe are still some issues with this, but it get u started.

 

Thanks for the jumpstart in getting this feature installed. I found

$lc_text = $button;

in product_listing.php. When I did the replace you suggested, no changes are showing on site.

 

Because I am using "new products" infobox on home page, I thought there might also need to be changes there (new_products.php)? Any ideas on what I need to do to get this working or at least suggested resources I can find out more about how to integrate this into my site? Would be great if I can do it myself (even with little php knowledge I have) but if I have to hire a coder, instead of needling for answers here on the forums, I'd like to know as much as I can before proceeding. Thank you for any insights.

Link to comment
Share on other sites

that change is for list mode u havent said what mode u are using!

 

for the new_products.php module you would:

 

after:

 

$display = $border;

 

add:

 

 $button = '<form name="cart_add" method="post" action="' . tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=update_product&products_id=' . $products['products_id'] , 'NONSSL'). '"><input type="hidden" name="products_id" value="' . $products['products_id'] . '"><input type="text" name="cart_quantity" value="1" maxlength="5" size="5"><br>' . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</form>';

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...