gorjdesign Posted July 30, 2009 Share Posted July 30, 2009 nice, thank you . Do you know how can i add a box here ? It doesn't have to be on top of the banner, it can be separated . I want to add 3-4 page links there . Link to comment Share on other sites More sharing options...
perfectpashmina Posted July 31, 2009 Share Posted July 31, 2009 How can I get the country drop down box to display UK ( or any other country) at the top? Sure I've seen an answer to this somewhere but I can't find it!! Link to comment Share on other sites More sharing options...
germ Posted July 31, 2009 Share Posted July 31, 2009 In the code for the dropdown, add a default: <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <td class="main"><?php echo tep_get_country_list('country',[color="#FF0000"][b]'223'[/b][/color]) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> </tr> 223 Is USA. In my DB United Kingdon is 222. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
perfectpashmina Posted July 31, 2009 Share Posted July 31, 2009 In the code for the dropdown, add a default: <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?></td> <td class="main"><?php echo tep_get_country_list('country',[color="#FF0000"][b]'223'[/b][/color]) . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td> </tr> 223 Is USA. In my DB United Kingdon is 222. Thanks for that. I've just worked out another solution that might be useful; in includes/general/functions roundabout line 190, the function that gets the countries list; you can change the order to be ordered by country id rather than name; $countries = tep_db_query("select countries_id, countries_name from " . TABLE_COUNTRIES . " order by countries_id"); Then you can organise the table in the database ( named countries!) in whatever order you like. Presumably then it will be the same wherever the countries list is called up? Although not in the admin section I've just noticed... Link to comment Share on other sites More sharing options...
perfectpashmina Posted July 31, 2009 Share Posted July 31, 2009 Thanks for that. I've just worked out another solution that might be useful; in includes/general/functions roundabout line 190, the function that gets the countries list; you can change the order to be ordered by country id rather than name; $countries = tep_db_query("select countries_id, countries_name from " . TABLE_COUNTRIES . " order by countries_id"); Then you can organise the table in the database ( named countries!) in whatever order you like. Presumably then it will be the same wherever the countries list is called up? Although not in the admin section I've just noticed... Sussed it.. In admin/countries.php line 91 do the same trick $countries_query_raw = "select countries_id, countries_name, countries_iso_code_2, countries_iso_code_3, address_format_id from " . TABLE_COUNTRIES . " order by countries_id"; and there's also line 597 in admin/functions/general.php, although I'm not sure where this is called; $countries_query = tep_db_query("select countries_id, countries_name from " . TABLE_COUNTRIES . " order by countries_id"); Anyway now you can just edit the order in admin->countries as it will appear in the drop down boxes. Seems to work ok for me so far, I'll get back if any problems. Link to comment Share on other sites More sharing options...
brewstec Posted August 1, 2009 Share Posted August 1, 2009 This is the first time using a host to upload files etc. I have WYSNC mostly. All this info is extremely helpful. I have one little question. You say to go to such pages as catalog/admin/inculdes/languages/LanguageNAME I don't have any idea what or where this is. I might not knowingly know but not so much. How do I get to these pages. Thank for the time yoiu spent on this stuff. Link to comment Share on other sites More sharing options...
gorjdesign Posted August 20, 2009 Share Posted August 20, 2009 How can i modify the size of the tables, for example, i have 3 tables, 1 left, 1 center and 1 right, and i would like the center one to be bigger- but the other 2 to have the same size . Link to comment Share on other sites More sharing options...
nikedunks Posted August 21, 2009 Share Posted August 21, 2009 Hi! Need help from osc gurus :) There is problem with product_info page. Attribute of product goes after description but I need to to change their places. When I try to did it, nothing work, may be because in my template file attribute code located after "Not editable part". Here is the code of my product_info php, hope for your help guys <?php /* $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $ 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_PRODUCT_INFO); $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); ?> <!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"> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le ft=150') } //--></script> </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="0" cellpadding="0"> <tr> <!-- body_text //--> <td width="100%" valign="top"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> <table cellspacing=0 cellpadding=0 width=100%><tr><td align=left> <?php if ($product_check['total'] < 1) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></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 align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> </table> <?php } else { $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<s pr_price style="color:#FEFEFE; font-size:11px">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s><br><span class=pr_price>' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price ='<span pr_price>'. $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>'; } else { $products_name = $product_info['products_name']; } ?> <table cellspacing=0 cellpadding=0 width=488 valign=top> <tr><td background=images/m32.gif width=488 height=10></td></tr> <tr><td background=images/m34.gif style="padding-left: 23px"><span class=ch2>product</span></td></tr> <tr><td background=images/m33.gif width=488 height=8></td></tr> <tr><td width=1></td></tr> <tr><td width=488 valign=top> <table cellspacing=0 cellpadding=0 width=488> <tr><td width=242> <table cellspacing=0 cellpadding=0 width=242 class=bg4> <tr><td background=images/m35.gif width=242 height=8 colspan=2></td></tr> <tr><td width=5></td> <td background=images/m55.gif width=232 height=310 align=center> <!-- display image --> <?php if (tep_not_null($product_info['products_image'])) { ?> <table cellspacing="0" cellpadding="2" align="center"> <tr> <td align="center" class="smallText"> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), 215, 215, ' hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], 215, 215, ' hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> </td> </tr> </table> <?php } ?> <!--end display image --> </td> </tr> <tr><td background=images/m36.gif width=242 height=9 colspan=2></td></tr> </table> </td> <td width=1></td> <td width=242 valign=top> <table cellspacing=0 cellpadding=0 width=242 class=bg4> <tr><td background=images/m35.gif width=242 height=8 colspan=3></td></tr> <tr><td width=5></td> <td valign=top> <table cellspacing=0 cellpadding=0 style="padding-left: 12px"> <tr><td height=3></td></tr> <tr><td class=ch4><span class=pr_name><?=$products_name?></span> Changing options should be there!!!</td></tr> <tr><td height=10></td></tr> <tr><td class=ch4> </td></tr> <tr><td height=4></td></tr> <tr><td height=11></td></tr> <tr><td align=right style="padding-right: 35px"><img src=images/m40.gif width=88 height=1></td></tr> <tr><td height=5></td></tr> <tr><td class=ch5 align=right style="padding-right: 50px"><?=$products_price?></td></tr> <tr><td height=5></td></tr> <tr><td align=right style="padding-right: 35px"><img src=images/m40.gif width=88 height=1></td></tr> <tr><td height=10></td></tr> <tr><td align=right style="padding-right: 35px"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_BUY_NOW); ?> <a href=<?=tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS)?> </a></td></tr> </table> </td> <td width=5></td></tr> <tr><td background=images/m36.gif width=242 height=9 colspan=3></td></tr> </table> </td></tr> <tr><td height=2 colspan=3></td></tr> <tr><td width=488 valign=top colspan=3> <table cellspacing=0 cellpadding=0 width=488 class=bg6> <tr><td background=images/m57.gif width=488 height=9 colspan=3></td></tr> <tr><td width=8></td> <td valign=top> <table cellspacing=0 cellpadding=0 style="padding-left: 12px"> <tr><td height=3></td></tr> <tr><td class=ch4> <?php echo stripslashes($product_info['products_description']); ?><br><br> </td></tr> <tr><td height=15></td></tr> </table> </td> <td width=10></td></tr> <tr><td background=images/m58.gif width=488 height=10 colspan=3></td></tr> </table> </td></tr> </table> </td></tr> </table> <!----------------------- Not editable part --------------------------------> <tr><td> <?php $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { ?> <tr> <td class="main" colspan="2"><?php echo TEXT_PRODUCT_OPTIONS; ?></td> </tr> <? if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); else echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?> <?php $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { $products_options_array = array(); $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; } ?> <tr> <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td> </tr> <?php } ?> </table> <?php } ?> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { ?> <tr> <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } if (tep_not_null($product_info['products_url'])) { ?> <tr> <td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?> <!-- <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 class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <td width="10"><?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> --> <tr> <td> <?php /* if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } */ } ?> </td></tr> </table> </form></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Link to comment Share on other sites More sharing options...
caniol Posted August 23, 2009 Share Posted August 23, 2009 How do you add a "close window" function to the Product Popup Image? Link to comment Share on other sites More sharing options...
germ Posted August 23, 2009 Share Posted August 23, 2009 At the bottom of /catalog/popup_image.php just BEFORE the </body> tag ADD this code: <p class="smallText" align="center"><?php echo '<a href="java script:window.close()">' . 'Close Window</a>'; ?></p> The forum screws up the code I posted, you MUST remove the space between java and script or it won't work. Always backup a file before making edits. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
caniol Posted August 24, 2009 Share Posted August 24, 2009 At the bottom of /catalog/popup_image.php just BEFORE the </body> tag ADD this code: <p class="smallText" align="center"><?php echo '<a href="java script:window.close()">' . 'Close Window</a>'; ?></p> The forum screws up the code I posted, you MUST remove the space between java and script or it won't work. Always backup a file before making edits. Thanks Germ! That's exactly what I needed. Link to comment Share on other sites More sharing options...
dtmp Posted August 26, 2009 Share Posted August 26, 2009 Here's another handy utility for finding those pesky little CSS elements that you'd like to customize. It's an addon to Firefox called Firebug. It not only will show you the CSS element, it will show you exactly what line in your css file the element is calling! Link to comment Share on other sites More sharing options...
Lestat138 Posted August 28, 2009 Share Posted August 28, 2009 How do I change the Banner at the bottom with one of my own? I figured it would be easy like changing the header, but I cant find oscommerce.gif in order to change t to my banner title. Link to comment Share on other sites More sharing options...
drumcentral Posted August 28, 2009 Share Posted August 28, 2009 How do I change the Banner at the bottom with one of my own? I figured it would be easy like changing the header, but I cant find oscommerce.gif in order to change t to my banner title. Hi There. Here's the way I did it. Open the file: includes/footer.php Look for the part of the code that looks similar to mine. (around line 25) You can see that I changed the banner size to 468x 60 which is a standard size. [code] <?php if ($banner = tep_banner_exists('dynamic', '468x60')) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="10"> <tr> <td align="center"><?php echo tep_display_banner('static', $banner); ?></td> </tr> </table> <?php } ?> [/code] Then go into your admin banner manager and enter a new banner group with the size 468x60. Then just create a text or image banner. I've used the same bit of code to show ads in the left and right columns, with sizes 120x240 and 125x125. My site is at www.drumcentral.co.uk You'll see the 125x125 ad at the bottom of the left column and the 120x240 ad in the right column, as well as the 468x60 in the footer. If you reload the page you'll see different ads each time. Hope this helps Kenny -------------------------------------------------------------------------------------------------- Link to comment Share on other sites More sharing options...
Lestat138 Posted September 7, 2009 Share Posted September 7, 2009 Take a look in the includes/languges/english.php file. Jack I tried to get rid f the main page text and it made my entire front page blank. Im a newbie and this programing is extremly frustrating. Does anyone know where I might be able to get some simple templates? or perhaps get another shopping cart system that is actually set up properly? It seems like in order to run this program you need to already know PHP programing or forget it. Im fucking lost and agrivated beyond comprehension right now ready to rip my air out. I also tried to install a define main page but there are so many different directories with the same names im completly confused. if NAYONE can help me out I would really appreciate it. I cant believe how fucking ASS BACKwards this program is. This is like getting photoshop, but in order to get It to work you need to log into it and set up your tools and design the whole program in order to just use it. WHY DO THEY MAKE A PROGRAM THAT DOESNT WORK ON ITS OWN ALREADY?A Link to comment Share on other sites More sharing options...
Lestat138 Posted September 7, 2009 Share Posted September 7, 2009 I tried to get rid of the main page text and it made my entire front page blank. Im a newbie and this programing is extremly frustrating. Does anyone know where I might be able to get some simple templates? or perhaps get another shopping cart system that is actually set up properly? It seems like in order to run this program you need to already know PHP programing or forget it. Im fucking lost and agrivated beyond comprehension right now ready to rip my air out. I also tried to install a define main page but there are so many different directories with the same names im completly confused. if NAYONE can help me out I would really appreciate it. I cant believe how fucking ASS BACKwards this program is. This is like getting photoshop, but in order to get It to work you need to log into it and set up your tools and design the whole program in order to just use it. WHY DO THEY MAKE A PROGRAM THAT DOESNT WORK ON ITS OWN ALREADY? Link to comment Share on other sites More sharing options...
chiger Posted September 10, 2009 Share Posted September 10, 2009 I tried to get rid of the main page text and it made my entire front page blank. Im a newbie and this programing is extremly frustrating. Does anyone know where I might be able to get some simple templates? or perhaps get another shopping cart system that is actually set up properly? It seems like in order to run this program you need to already know PHP programing or forget it. Im fucking lost and agrivated beyond comprehension right now ready to rip my air out. I also tried to install a define main page but there are so many different directories with the same names im completly confused. if NAYONE can help me out I would really appreciate it. I cant believe how fucking ASS BACKwards this program is. This is like getting photoshop, but in order to get It to work you need to log into it and set up your tools and design the whole program in order to just use it. WHY DO THEY MAKE A PROGRAM THAT DOESNT WORK ON ITS OWN ALREADY? Hey Lestat, I had the same problem...but don't sweat it. It's just a simple syntax error. You are editing server side language with this stuff and it doesn't like certain things. Somewhere in your text you have put a comma ' without putting a backslash \ in front of it. Something like there's has to be written as there\'s or the server goes all hinky. At least that's the most common problem I have. Comma's mark the beginning and end of functions, text...everything within definitions. It basically means START or STOP elements inside the brackets to the program. If it's told to stop and not to start again it hangs up. Same with parenthesis. If there is a ( left parenthesis, somewhere there has to be a ); right parenthesis and semicolon to end it. Just the way it works. I understand your frustration. It doesn't have a debugger so the problem is hard to diagnose for a novice. Which I am, but I'm accustom to programming and know how much compilers like things to be just so. The good news is...you do not even want to know how much code writing something like this cool little osCommerce program saves us. I would have to write 10's of thousands of lines of Cobol or C++ code to get the same thing done and then integrate it into htiml. But it can be frustrating not to get error codes. Hope that helps. Good luck. chiger, chiger, "I am prepared to prove at any moment that I am not the man my education has conspired to make of me." Franz Kafka Link to comment Share on other sites More sharing options...
natuke Posted September 10, 2009 Share Posted September 10, 2009 HOW EXACTLY DO YOU RESTORE YOUR SHOP? Ok, I am doing everything for the first time, completely new to php or mysql... :blush: so sorry, if it's just very easy and I don't get it... I am restoring my webshop... so I 1 reinstalled the os commerce 2 copied my old stylesheet, images, language files... 3 then tried to restore database - went to tools - backups - restore and uploaded the database file that I've saved before... well, nothing happened - I still don't have neither categories, nor customers or orders. AM I MISSING SOMETHING??? thanx for all your help :huh: Link to comment Share on other sites More sharing options...
natuke Posted September 11, 2009 Share Posted September 11, 2009 HOW EXACTLY DO YOU RESTORE YOUR SHOP?Ok, I am doing everything for the first time, completely new to php or mysql... :blush: so sorry, if it's just very easy and I don't get it... I am restoring my webshop... so I 1 reinstalled the os commerce 2 copied my old stylesheet, images, language files... 3 then tried to restore database - went to tools - backups - restore and uploaded the database file that I've saved before... well, nothing happened - I still don't have neither categories, nor customers or orders. AM I MISSING SOMETHING??? thanx for all your help :huh: plz guys it's very important, may be someone has a good link to read? I think I've looked through the documentation and the forum and I still haven't found the answer :blink: It's a heck a lot info to restore :( Link to comment Share on other sites More sharing options...
drumcentral Posted September 11, 2009 Share Posted September 11, 2009 Hi there. Sorry to hear about your web site problems. it can be very VERY frustrating, dealing with PHP,MYSQL,HTML,CSS...... etc, especially if you're relatively new to this. it may be something simple, but it's worth looking into. When you restored your files, are they in exactly the same place as they were previously? For example, are they in a folder on your server (your_server/oscommerce/) or a different folder? Is the folder named the same as before? That can mean that the files just wont work if they're in the wrong place. You also have to make sure that the permissions for all the files are correct. But it could be any other minor/major problem. Does the database have the same name? Can you post the web address of your site, or where it should be? You can also email me at [email protected] if you like. -------------------------------------------------------------------------------------------------- Link to comment Share on other sites More sharing options...
cLin Posted September 15, 2009 Share Posted September 15, 2009 When you add an item to your cart and you checkout, before you login you are shown a page listing all your items. Is it possible to a) change the remove checkbox into a link so I can just click the link to remove the item and B) add the price of the item into the columns, preferably next to qty? Or are there any threads on it? Been trying to search for them. Link to comment Share on other sites More sharing options...
Guest Posted September 24, 2009 Share Posted September 24, 2009 Hello all, I'm new to osC, but I've manged to install and configure several contributions. It's really cool stuff, by the way!! My question is; since my store doesn't ship products I don't need to collect street addresses, or phone numbers, etc. Is there a way to edit the default customer details, street address, city, state, etc. And change the "required information" status to false? Thanks for looking! Best Regards, Jonathan Martin ClearSkyDomains.com Link to comment Share on other sites More sharing options...
azetect Posted September 25, 2009 Share Posted September 25, 2009 hi every one. i got few question here to ask 1)currently i'am using os commerce 3.0 but not yet setup payment stuff so whats the difference with 2.2 rc2a and 2.2 rc2 or which one is better? 2) how to know confirm my os commerce 3 is fully working with paypal? ( i been using paypal sandbox develop section but i have no idea how to setup my os commerce link with paypal) thanks for your time to get me a reply :) Link to comment Share on other sites More sharing options...
Guest Posted September 26, 2009 Share Posted September 26, 2009 Hello all, I'm new to osC, but I've manged to install and configure several contributions. It's really cool stuff, by the way!! My question is; since my store doesn't ship products I don't need to collect street addresses, or phone numbers, etc. Is there a way to edit the default customer details, street address, city, state, etc. And change the "required information" status to false? Thanks for looking! Best Regards, Jonathan Martin ClearSkyDomains.com To answer my own question I found two contributions that were very useful. 1. Required Customer Details - http://addons.oscommerce.com/info/5407 2. Customers extra fields - http://addons.oscommerce.com/info/3737 The first contribution gives you a choice for all of the default customer details to be required, optional, or hidden. The second contribution allows you create additional fields for other information you may want to gather from your customers. It also gives you the option to make your new fields required or optional. Thanks for looking! Hope this helps!! Link to comment Share on other sites More sharing options...
twistedstar Posted September 27, 2009 Share Posted September 27, 2009 To answer my own question I found two contributions that were very useful. 1. Required Customer Details - http://addons.oscommerce.com/info/5407 2. Customers extra fields - http://addons.oscommerce.com/info/3737 The first contribution gives you a choice for all of the default customer details to be required, optional, or hidden. The second contribution allows you create additional fields for other information you may want to gather from your customers. It also gives you the option to make your new fields required or optional. Thanks for looking! Hope this helps!! Hi All I have been going around in circles for days now anf getting rather dizzy and racked off with it all. I too agree with the post below in regards to newbies. What I am trying to do is add order forms and drop down boxes into each product that I have listed. I am not a osc prof and I have no idea on coding, but having somebody trying to help with basic knowledge. Can somebody please help. We have tried what Sam said to do but we are using a template and the code that he is saying change just dont exist on this. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.