premium Posted March 19, 2009 Share Posted March 19, 2009 If i add a product to the cart, there is no image in the "cart box" I cant find any edit to the shopping_cart.php.. is there anything to add to this file, to get it to work?? or is it another file to edit?? Regards from Norway! Quote Link to comment Share on other sites More sharing options...
premium Posted March 19, 2009 Share Posted March 19, 2009 If i add a product to the cart, there is no image in the "cart box" I cant find any edit to the shopping_cart.php.. is there anything to add to this file, to get it to work?? or is it another file to edit?? Regards from Norway! Quote Link to comment Share on other sites More sharing options...
premium Posted March 19, 2009 Share Posted March 19, 2009 If i add a product to the cart, there is no image in the "cart box" I cant find any edit to the shopping_cart.php.. is there anything to add to this file, to get it to work?? or is it another file to edit?? Regards from Norway! Quote Link to comment Share on other sites More sharing options...
premium Posted March 19, 2009 Share Posted March 19, 2009 If i add a product to the cart, there is no image in the "cart box" I cant find any edit to the shopping_cart.php.. is there anything to add to this file, to get it to work?? or is it another file to edit?? Regards from Norway! Quote Link to comment Share on other sites More sharing options...
premium Posted March 19, 2009 Share Posted March 19, 2009 If i add a product to the cart, there is no image in the "cart box" I cant find any edit to the shopping_cart.php.. is there anything to add to this file, to get it to work?? or is it another file to edit?? Regards from Norway! Quote Link to comment Share on other sites More sharing options...
♥kymation Posted March 20, 2009 Share Posted March 20, 2009 You only need one additional image, or none at all if you set it up that way. Set the flags for your image for all of the fields (Category, Product, and Popup) then set Group parent image with sub-images in the configuration. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
premium Posted March 20, 2009 Share Posted March 20, 2009 If i add a product to the cart, there is no image in the "cart box"I cant find any edit to the shopping_cart.php.. is there anything to add to this file, to get it to work?? or is it another file to edit?? Regards from Norway! Sorry for trippel posting... had some problems with my internet connection yesterday :) Quote Link to comment Share on other sites More sharing options...
♥kymation Posted March 20, 2009 Share Posted March 20, 2009 If i add a product to the cart, there is no image in the "cart box"I cant find any edit to the shopping_cart.php.. is there anything to add to this file, to get it to work?? or is it another file to edit?? Regards from Norway! You missed the changes to catalog/includes/classes/shopping_cart.php. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
fronsky Posted March 20, 2009 Share Posted March 20, 2009 This setting isn't in the menu, but "Group Popup image with sub-images". I changed that to 'false' and now it's OK! THX! Quote Link to comment Share on other sites More sharing options...
♥kymation Posted March 20, 2009 Share Posted March 20, 2009 This setting isn't in the menu, but "Group Popup image with sub-images". <snip> Sorry, I forgot that I changed that text. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
premium Posted March 21, 2009 Share Posted March 21, 2009 You missed the changes to catalog/includes/classes/shopping_cart.php. Regards Jim Thanks big time.. :) Quote Link to comment Share on other sites More sharing options...
firben Posted March 28, 2009 Share Posted March 28, 2009 can anybody spot something wrong in my reviews.php file? The pictures don't show... <?php /* $Id: reviews.php 1739 2007-12-20 00:52:16Z hpdl $ $Loc: catalog/ $ $Mod: 20081228 More Pics 2.0.3 kymation $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_REVIEWS); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_REVIEWS)); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_reviews_new.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <?php $reviews_query_raw = "select r.reviews_id, left(rd.reviews_text, 100) as reviews_text, r.reviews_rating, r.date_added, p.products_id, pd.products_name, pi.image_filename, r.customers_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_IMAGES . " pi on p.products_id = pi.products_id and pi.product_page = '1', " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = r.products_id and r.reviews_id = rd.reviews_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and rd.languages_id = '" . (int)$languages_id . "' order by r.reviews_id DESC"; $reviews_split = new splitPageResults($reviews_query_raw, MAX_DISPLAY_NEW_REVIEWS); if ($reviews_split->number_of_rows > 0) { if ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3')) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS); ?></td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info'))); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } $reviews_query = tep_db_query($reviews_split->sql_query); while ($reviews = tep_db_fetch_array($reviews_query)) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '"><u><b>' . $reviews['products_name'] . '</b></u></a> <span class="smallText">' . sprintf(TEXT_REVIEW_BY, tep_output_string_protected($reviews['customers_name'])) . '</span>'; ?></td> <td class="smallText" align="right"><?php echo sprintf(TEXT_REVIEW_DATE_ADDED, tep_date_long($reviews['date_added'])); ?></td> </tr> </table></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" align="center" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $reviews['products_image'], $reviews['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> <td valign="top" class="main"><?php echo tep_break_string(tep_output_string_protected($reviews['reviews_text']), 60, '-<br>') . ((strlen($reviews['reviews_text']) >= 100) ? '..' : '') . '<br><br><i>' . sprintf(TEXT_REVIEW_RATING, tep_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])), sprintf(TEXT_OF_5_STARS, $reviews['reviews_rating'])) . '</i>'; ?></td> <td width="10" align="right"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> <?php } else { ?> <tr> <td><?php new infoBox(array(array('text' => TEXT_NO_REVIEWS))); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (($reviews_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) { ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS); ?></td> <td align="right" class="smallText"><?php echo TEXT_RESULT_PAGE . ' ' . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info'))); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> </table></td> </tr> </table></td> <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </table></td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Quote Link to comment Share on other sites More sharing options...
♥kymation Posted March 28, 2009 Share Posted March 28, 2009 can anybody spot something wrong in my reviews.php file?The pictures don't show... This code <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" align="center" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $reviews['products_image'], $reviews['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> needs to be this <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" align="center" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $reviews['image_filename'], $reviews['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
firben Posted March 28, 2009 Share Posted March 28, 2009 This code <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" align="center" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $reviews['products_image'], $reviews['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> needs to be this <td width="<?php echo SMALL_IMAGE_WIDTH + 10; ?>" align="center" valign="top" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $reviews['image_filename'], $reviews['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; ?></td> Regards Jim I'm tempted to say i love you :-D :-D Thank you very much! Quote Link to comment Share on other sites More sharing options...
turbo1982 Posted March 29, 2009 Share Posted March 29, 2009 Hi I have installed More Pics 2.04 and i am having problems with the display of the main image and thumbnails. The main image displays at size 100 x 80 pix and the thumbnails at 50 x 40 pix. How do you get them to display larger? I am sorry in advance if i have missed something simple but have tried to solve this problem and cant. I have used all of your files and loaded the database successfully. I would like to get this working because it is a great contri!!! Thanks in advance. Quote Link to comment Share on other sites More sharing options...
♥kymation Posted March 29, 2009 Share Posted March 29, 2009 The thumbnails are controlled by Small Image Width or Small Image Height in the More Pics Configuration, depending on whether you have the thumbnails on the top/bottom or on the sides. The large image has no restriction, so it will show the actual size of the first image in the list. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
guddipy Posted April 3, 2009 Share Posted April 3, 2009 (edited) Hiya guys. Now I feel abit stupid asking this question but, Ive managed to install this contribution which I believe successfully, no errors no nothing. All fine. But one problem! I cant seem to figure out how you use any of the features this contribution is meant to give?? I add extra pics, but it doesnt show on product info page?! I switch the flags on the extra image to green to show on product info page, soon as I do that the other image automatically switches off to red. So I cant have any more than 1 image on green at a time. There is no additional image box on product info page, hence no mouse over effect, not even the ZOOM link below the picture works? Just does nothing but put #MorePics on the end of URL after pressing it?? Am sure its a simple thing or silly thing am missing here. Cheers Also to clarify this is on a fresh Oscommerce Install. So its not a modded one, and its the current one you download from here RC2a I believe. Edited April 3, 2009 by donenvy Quote Link to comment Share on other sites More sharing options...
♥kymation Posted April 3, 2009 Share Posted April 3, 2009 You need to have two or more images to show in the image box (Popup set to green or all red.) I've been meaning to change this, but haven't gotten around to a new release. For now, change catalog/includes/modules/more_pics.php, Line 54 to if ($num_products_images > 0) { You can also play with the display settings to see what happens. There is a brief description of each one in the instructions.. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
guddipy Posted April 3, 2009 Share Posted April 3, 2009 You need to have two or more images to show in the image box (Popup set to green or all red.) I've been meaning to change this, but haven't gotten around to a new release. For now, change catalog/includes/modules/more_pics.php, Line 54 to if ($num_products_images > 0) { You can also play with the display settings to see what happens. There is a brief description of each one in the instructions.. Regards Jim Thanks boss. Just managed to get the more pic box up. Its perfect for what ive been looking for. Now unfortunately I dont understand php that well to be able to know and write php code. So I kind of mess around with codes try figure what doesnt work. As you are more experienced boss. Can you tell me if you can help me on this? Wont take up too much of your time. Just need to know if you can. If so which files. 1. I want to have that MorePic box always display regardless if there is "one or 2" pictures, rather than change between one or more pics. Keeps layout in one place. 2. Also minor thing, the MorePic table came up soooo small barely see the pictures. How do I change the size of that? The main picture and also keep the small thumbnails in ratio to each other? e.g. This is the link where the box is messing up Ive ran through the instructions, through php files, been on forum for ages. Cant find it? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
♥kymation Posted April 3, 2009 Share Posted April 3, 2009 1. The code change that you quoted in your post will do that. 2. See this post. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
guddipy Posted April 3, 2009 Share Posted April 3, 2009 1. The code change that you quoted in your post will do that. 2. See this post. Regards Jim Thanks boss, that one sorted out. Still cant seem to get the main image to a size I want or the small thumbnails to be of an equal size?? I believe thats all thats left and everything sorted out. Its matter of configuring sizes. Quote Link to comment Share on other sites More sharing options...
guddipy Posted April 3, 2009 Share Posted April 3, 2009 Hey boss, managed to fix the small thumbnail issue. Just the size of the main image box left if you wouldnt mind. Am still searching through everything to try find where I do it Quote Link to comment Share on other sites More sharing options...
♥kymation Posted April 3, 2009 Share Posted April 3, 2009 Hey boss, managed to fix the small thumbnail issue. Just the size of the main image box left if you wouldnt mind. Am still searching through everything to try find where I do it This is still the answer: The large image has no restriction, so it will show the actual size of the first image in the list. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
guddipy Posted April 4, 2009 Share Posted April 4, 2009 This is still the answer:Regards Jim You are correct there. Ive got it to the point that the original image size is shwoing. But what I was looking for is a way to control the size of that main box too. Abit like the osc stock product info image box. What ever the size of the image, it fits into the size of box that it has been set. Am not sure if ive explained myself very well?? Let me know if you didnt i'll try find an example. In the meantime am going to keep on searching and messing about with the codes to see if I can implement this. Help from an expert boss would be great. Regards Quote Link to comment Share on other sites More sharing options...
guddipy Posted April 4, 2009 Share Posted April 4, 2009 Ok I this is what ive managed to find. Would it be one of these and if so what code to be put in and how do you understand what code needs to go in? CSS class: IMG.productsMainImage { border-width:2px; border-style:solid; border-color:black; } OR somewhere in this section of more_pics.php: // Set up the large image table $large_image_string .= '<table border="0" cellspacing="0" cellpadding="2">' . "\n"; $large_image_string .= ' <tr>' . "\n"; $large_image_string .= ' <td align=left>'; $large_image_string .= tep_image (DIR_WS_IMAGES . $main_image, '', '', '', 'name="MainImage" class="productsMainImage"') . "\n"; $large_image_string .= ' </td>' . "\n"; $large_image_string .= ' </tr>' . "\n"; $large_image_string .= ' </table>'; Help please?! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.