rohittokhi Posted June 20, 2003 Posted June 20, 2003 Hi, I have a starnge problem. I installed CVS 2.2 May 2003 and also Credit Class cv_dc 5.03. I added the products and the product images using the browse option. The images show up on the page and the whats new box. The also show up when I login and select a product. But when I click on Cart Contents, the images dont show! I checked the properties of the images and the path of the image does not show.( it only goes up to catalog/images) I checked and the permissions to images dir are set to 777. What is the problem. PLEASE HELP! - Rohit This is how the shopping_cart.php looks. <?php /* $Id: shopping_cart.php,v 1.71 2003/02/14 05:51:28 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions <?php } ?> <td align="right" class="main"><a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT); ?></a></td> </tr> </table></form></td> </tr> <?php } else { ?> <tr> <td align="center" class="main"><?php echo TEXT_CART_EMPTY; ?></td> </tr> <tr> <td align="right" class="main"><br><a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"><?php echo tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></a></td> </tr> <?php } ?> </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'); ?> And this is the configure.php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://blue-horizon-online.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://secure2.dnsvelocity.com/~user'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/store/catalog/'); // absolute path required define('DIR_WS_IMAGES', '/store/catalog/images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); 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_FS_DOCUMENT_ROOT', '/home/user/public_html/store'); define('DIR_FS_CATALOG', '/home/user/public_html/store/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'user_user'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'user_catalog'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?>
Wizzud Posted June 20, 2003 Posted June 20, 2003 Its actually includes/modules/order_details.php that formats the contents of the shopping cart. I installed a contribution to display product thumbnails in the cart, is that what you've done? Regards, Wizzud "It is better to remain silent and be thought a fool, than to open your mouth and remove all doubt."
dwbrown Posted June 20, 2003 Posted June 20, 2003 Hello Rohit, osc concatenates the various variables in configure.php: DIR_WS_CATALOG, DIR_WS_IMAGES etc. as needed. My configure.php defines DIR_WS_IMAGES as simply: images/. Your are redefining the "path" each time first with DIR_WS_CATALOG then you come back with another whole string in DIR_WS_IMAGES and so the concatenated string to the software is incorrect. Hope this helps.
rohittokhi Posted June 21, 2003 Author Posted June 21, 2003 I changed the path in configure.php that defines DIR_WS_IMAGES as just images/ but it still doesnt work. The images dont show up only in 'Cart Contents' They show up everywhere else. Which is the file that defines the images that show in 'Cart Contents'? Also when I rt click on the image box and check properties, the image path is not displayed in full; i.e only upto catalog/images/, no image name. What is wrong in my code? Rohit.
Wizzud Posted June 21, 2003 Posted June 21, 2003 I repeat ... Its actually includes/modules/order_details.php that formats the contents of the shopping cart. Regards, Wizzud "It is better to remain silent and be thought a fool, than to open your mouth and remove all doubt."
rohittokhi Posted June 22, 2003 Author Posted June 22, 2003 Hi, I checked but the order_details.php file is not there in my installation. Instead there is a file product_listing.php. Is the file in the Admin?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.