Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

OSC-Sevilla

Pioneers
  • Posts

    393
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by OSC-Sevilla

  1. around line 244 if(AM_USE_SORT_ORDER) { ?> <?php echo tep_draw_input_field("sortOrder_$optionValueId",$optionValueInfo['sortOrder'],' style="margin:3px 0px 3px 0px;" id="sortOrder_'.$optionValueId.'" size="4" onChange="return amUpdate(\''.$optionId.'\',\''.$optionValueId.'\');"'); ?> <?php } ?> remove the //
  2. Is it possible to integrate Attribute Product Codes ? http://addons.oscommerce.com/info/4888 cheers!
  3. Seem to be working well but i carnt see any watermark - also is there a way that when you remove the image in Admin (product entry page) it also deletes the files saved in "_thumbnail_" This would save lots of time and confusion. - is there a mod to do this??
  4. PERFECT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! THANX
  5. Thanks Jim - I will wait for your next update. Cheers!
  6. Can some one explain how to add a munufactureers list - Set up a Manufacturer filter and import the manufacturers list. I need my hand held as im as thick as shit.. Please.
  7. Installed as per your instructions - ERROR Fatal error: Cannot redeclare class language in /home/content/g/e/o/georgefasal/html/FASAL/business/includes/classes/language.php on line 16
  8. I have quite a heavily modified Product_info.php page - is there a manual that shows what lines to change or add? My fancy box is not showing the additional images - have used file compare (winmerge)--- but not making much progress: 3+ hours. file attached is my raw product_info.php page- so if anyone could throw it up and have a quick look that would be great - fresh eyes! many thanks - ONE REALLY GREAT MOD - just what was needed!!!! Thank you
  9. edit ADMIN/ORDERS.php at : $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); add above: //--- Beginning of addition: Ultimate HTML Emails ---// if (EMAIL_USE_HTML == 'true') { require(DIR_FS_CATALOG . DIR_WS_MODULES . 'UHtmlEmails/Green/orders_update.php'); $email = $html_email; }else{//Send text email //--- End of addition: Ultimate HTML Emails ---// add below: } ---------------------------------- NOW - in UTHML EMIALS---- includes/modules/uhtml emails/orders.php, copy and and save as orders_update.php ------------------------------ Now edit orders_update.php accordingly!! ---------------------------- WORKS FINE!
  10. I had the same issue re Next Previous code - just took that mod out for the time being - please let me know if you get it working together. Thanks!
  11. Linking filters in products - for those of us using multi language I just wondered if there was a mod that links the selected filters for the product. See image attached. Many Thanks
  12. How to do this??? Set up a Manufacturer filter and import the manufacturers list. Having difficulty doing this: plase explain. Thanks
  13. Here is my ask a question file - if anyone has got this to work can you send me some solutions - - no emails being sent. - cannot see any email formatting,
  14. Thanks Jim, that helped - on submit its now not gowing to shopping cart, however the form does not send nor do any warnings appear when the user enters nothing in the fields and clicks submit. Many thanks, I will have to look into the php at how this all working.
  15. For the life of me I cannot figure this one out - I need to get the "Ask a question" form working but it keeps adding the product to the shopping cart. Can someone with fresh eyes have a look at my products_info.php file, as follows; <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); // Start Products Specifications require_once (DIR_WS_FUNCTIONS . 'products_specifications.php'); // Process data from the on-page forms require_once( DIR_WS_MODULES . 'product_info_process.php' ); // End Products Specifications $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); require(DIR_WS_INCLUDES . 'template_top.php'); ?> <script type="text/javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150') } //--></script> <?php echo tep_draw_content_top();?> <?php if ($product_check['total'] < 1) { ?> <?php echo tep_draw_title_top();?> <h1><?php echo TEXT_PRODUCT_NOT_FOUND; ?></h1> <?php echo tep_draw_title_bottom();?> <div class="contentContainer"> <div class="contentPadd"> <div class="buttonSet"> <span class="fl_right"><div class="bg_button2" onMouseOut="this.className='bg_button2';" onMouseOver="this.className='bg_button2-act';"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></div></span> </div> </div> </div> <?php } else { // Products Specifications $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, pd.products_tab_1, pd.products_tab_2, pd.products_tab_3, pd.products_tab_4, pd.products_tab_5, pd.products_tab_6 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 = ' <span class="productSpecialPrice fl_left">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span> <del class="fl_left">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</del>'; } else { $products_price = '<span class="productSpecialPrice">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } 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']; } ?> <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> <?php // if ($product_check['total'] > 1) { echo tep_draw_content_top() . tep_draw_title_top() . "<h1>" . $product_info['products_name'] . "</h1>" . tep_draw_title_bottom(); // } else{ include (DIR_WS_INCLUDES . 'products_next_previous.php');} ?> <?php echo tep_draw_separator('pixel_trans.gif', '100%', '7'); ?> <div class="contentContainer page_un"> <div class="contentPadd extra77"> <?php // <div class="contentPadd extra77"> - GOES TO EDGE ?> <div class="prods_content prods_info decks big"> <div class="forecastle"> <li class="port_side"> <?php if (tep_not_null($product_info['products_image'])) { $pi_query = tep_db_query("select image, htmlcontent from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int)$product_info['products_id'] . "' order by sort_order"); ?> <?php if (tep_db_num_rows($pi_query) > 0) { ?> <div id="piGal" onmouseover="alert("'SimplytheBest DHTML Scripts & Javascripts'")"> <ul> <?php $pi_counter = 0; while ($pi = tep_db_fetch_array($pi_query)) { $pi_counter++; $pi_entry = ' <li class="wrapper_pic_div"><a href="'; if (tep_not_null($pi['htmlcontent'])) { $pi_entry .= '#piGalimg_' . $pi_counter; } else { $pi_entry .= tep_href_link(DIR_WS_IMAGES . $pi['image']); } $pi_entry .= '" target="_blank" rel="fancybox" title='.(TEXT_CLICK_TO_ENLARGE_1).' style="width:'.(PROD_INFO_IMAGE_WIDTH).'px;height:'.(PROD_INFO_IMAGE_HEIGHT).'px;">' . tep_image(DIR_WS_IMAGES . $pi['image'], '', (PROD_INFO_IMAGE_WIDTH), (PROD_INFO_IMAGE_HEIGHT), ' style="width:'.(PROD_INFO_IMAGE_WIDTH).'px;height:'.(PROD_INFO_IMAGE_HEIGHT).'px;"') . '</a>'; if (tep_not_null($pi['htmlcontent'])) { $pi_entry .= '<div style="display: none;"><div id="piGalimg_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div></div>'; } $pi_entry .= '</li>'; echo $pi_entry; } ?> </ul> </div> <?php if (PROD_INFO_IMAGE_WIDTH != PROD_INFO_IMAGE_HEIGHT){ $coeff = ((PROD_INFO_IMAGE_HEIGHT/PROD_INFO_IMAGE_WIDTH)); }else{ $coeff = 1; } ?> <script type="text/javascript"> $(function(){ var myWidth = <?php echo (($pi_counter > 1) ? '58' : '0'); ?>; var myHeight = myWidth * <?php echo $coeff;?>; $('#piGal ul').bxGallery({ maxwidth: '', maxheight: '', thumbwidth: myWidth, thumbheight: myHeight, thumbcontainer: 240, load_image: 'ext/jquery/bxGallery/spinner.gif' }) }); </script> <?php } else { // $image_width = (PROD_INFO_IMAGE_WIDTH +(262 - PROD_INFO_IMAGE_WIDTH)); ?> <?php echo '<div id="piGal" class="wrapper_pic_div fl_left" style="width:'.(PROD_INFO_IMAGE_WIDTH).'px;height:'.(PROD_INFO_IMAGE_HEIGHT).'px;"><a class="prods_pic_bg" href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), (PROD_INFO_IMAGE_WIDTH), (PROD_INFO_IMAGE_HEIGHT), ' style="width:'.(PROD_INFO_IMAGE_WIDTH).'px;height:'.(PROD_INFO_IMAGE_HEIGHT).'px;"', '', '') . '</a></div>'; ?> <?php } ?> <script type="text/javascript"> $("#piGal a[rel^=fancybox]").fancybox({ cyclic: true }); </script> <?php } ?> </li> <li class="starboard_side"> <?php if (tep_db_num_rows($pi_query) > 0) { ?> <div class="info"> <?php }else{ ?> </li> <li class="starboard_side"> <div class="info"> <?php } ?> <?php if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <div class="data data_padd small_title"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></div> <?php }else{ ?> <!-- DATE ADDED <div class="data data_padd small_title"> <?php // echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></div> //--> <?php } ?> <h2><?php echo $products_name; ?></h2> <div style="float:right; width:200px;text-align:left; max-height:105px; overflow:hidden; background-color:#f4f4f4; padding:0 0 0px 15px;"> <?php // Document Manager if (DOCUMENTS_SHOW_PRODUCT_INFO == 'True') { include_once (DIR_WS_MODULES . FILENAME_DOCUMENTS); } ?> </div> <h2 class="price"><?php echo '<b>'.PRICE. '</b>'.$products_price; ?></h2> <?php // QUANTITY AVAILABLE if($product_info['products_quantity']>0 ) { echo TEXT_PRODUCT_STOCK_LEVEL . (($product_info['products_quantity'] > 0) ? ' (' . $product_info['products_quantity'] . ')' : ''); } elseif ($product_info['products_quantity']<=0 ) { echo TEXT_PRODUCT_STOCK_LEVEL . (($product_info['products_quantity'] <=0) ? ' (' . TEXT_OUT_OF_STOCK_LEVEL . ')' : ''); } ?><br /><br /> <h3> <?php $sbm_array = explode(';', MODULE_SOCIAL_BOOKMARKS_INSTALLED); $social_bookmarks = array(); foreach ( $sbm_array as $sbm ) { $class = substr($sbm, 0, strrpos($sbm, '.')); if ( !class_exists($class) ) { include(DIR_WS_LANGUAGES . $language . '/modules/social_bookmarks/' . $sbm); include(DIR_WS_MODULES . 'social_bookmarks/' . $class . '.php'); } $sb = new $class(); if ( $sb->isEnabled() ) { $social_bookmarks[] = $sb->getOutput(); }} if ( !empty($social_bookmarks) ) { $data = implode( $social_bookmarks);} echo $data; ?> </h3> <?php if ($product_info['products_quantity']>=1 ) { ?> <div style="padding:15px 0px 5px 0px; border:1px solid #d3d3d3; border-width:1px 0px 0px 0px; margin-top:10px;"><p class="options-title"> <?php echo TEXT_ENTER_QUANTITY .":"; ?> <?php $val = $product_info['products_quantity']; ?> <select name="cart_quantity"> <?php for($i=1;$i<=$val;$i++) {?> <option><?php echo $i;?></option></option> <?php } ?> </select> </p> </div> <?php } // ORDER QUANTITY ?> <!-- MAke the lower decritption area 100% width - remove both LI to keep the dec. on the right //--> </li> <li class="starboard_side_lower"> <!-- OLD DATE LOCATION <div class="data data_padd small_title"> <?php // echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></div> //--> <?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) { ?> <div class="options"> <p class="options-title"><?php echo TEXT_PRODUCT_OPTIONS; ?></p> <ul class="ofh"> <?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 (is_string($HTTP_GET_VARS['products_id']) && 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; } ?> <li class="fl_left"><label><?php echo $products_options_name['products_options_name'] . ':'; ?></label><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></li> <?php } ?> </ul> <?php if (tep_not_null($product_info['products_model'])) { ?> <br><?php echo TEXT_PRODUCT_PART_NUMBER;?> <a style="font-weight:bold; color:#006;"><?php echo $products[$i][$option]['products_options_code'] ;?></a> <?php } ?> </div> <?php } ?> <div class="desc desc_padd"> <?php include_once (DIR_WS_MODULES . FILENAME_PRODUCTS_TABS); // End Products Specifications ?> </div> <div class="desc desc_padd_lite" style=" font-size:11px;"><?php //PRODUCT REVIEW $reviews_box_contents = '<a class="box_icon" href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icons/write_new_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . '</a><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . MODULE_BOXES_REVIEWS_BOX_WRITE_REVIEW .'</a>'; echo $reviews_box_contents; ?><div style="float:right; margin-right:15px;"> <?php // PRODUCT URL if ($product_info['products_url'] == true) { echo '<a class="box_icon" target="_blank" href="http://' . $product_info['products_url'] . '">' . tep_image(DIR_WS_IMAGES . 'icons/web_icon.gif', TEXT_PRODUCT_MANUFCACTURERS_URL) . '</a><a target="_blank" href="http://' . $product_info['products_url'] . '">' . TEXT_PRODUCT_MANUFCACTURERS_URL .'</a>'; } ?> </div></div> <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and reviews_status = 1"); $reviews = tep_db_fetch_array($reviews_query); ?> <div class="buttonSet"> <span class="buttonAction"><div class="bg_button22" onMouseOut="this.className='bg_button22';" onMouseOver="this.className='bg_button22-act';"><?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?></div></span> <div class="fl_right" align="right"><div class="bg_button2" onMouseOut="this.className='bg_button2';" onMouseOver="this.className='bg_button2-act';"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?> </div> </div> </div> </li> </div> </div> </div> </div> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } ?> </form> <?php } ?> <?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?> <?php echo tep_draw_content_bottom();?> <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
  16. Tried and failed!.... I´ll keep dreaming..I´ve burned days digging.... just pray for a full update soon!
  17. I will assume that this also applies to ASK A QUESTION - "SUBMIT" Cheers Jim -
  18. You missed an edit in products_info.php. Your forms are overlapping. Check that tep_draw_form() and </form> are in the correct places and there are no duplicates. Check that you have added all of the PS style classes to stylesheet.css. ---------------------------- SAME ISSUE: Product_info.php: the only reference to tep_draw_form() <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> ------------------------- modules/product_reviews the only reference to tep_draw_form() echo tep_draw_form ('product_review', tep_href_link (FILENAME_PRODUCT_INFO, 'action=process&tab=review&products_id=' . $_GET['products_id']), 'post', 'onSubmit="return checkForm();"'); ------------- NOTE: ALL PS style classes to stylesheet.css. ---- This is fast becomming the Best Contrib Ever - Great work & a huge thank you!
  19. Thanks Jim, The bas are wall working. I have used firebug to locate some code that control the look of the tabs. But i cannot find the class reference to it, My issue is that when the tabs are clicked the TEXT Grows in size - and disrupts the page layout.. See http://www.verdegia.com/BANO/product_info.php?cPath=16&products_id=323 (therby forcing the final tab to the next line. Firebug returns this: <div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all"> <ul class="ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"> <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active"> <a class="ptabs" style="color:#333;" href="#tabs-0">Description</a> </li> <li class="ui-state-default ui-corner-top"> <li class="ui-state-default ui-corner-top"> <li class="ui-state-default ui-corner-top"> <li class="ui-state-default ui-corner-top"> </ul> <div id="tabs-0" class="ui-tabs-panel ui-widget-content ui-corner-bottom"> Where is the CSS that controls this? where is the refernece to the class in the file pack? Thanks Jim!
  20. I have made some nice mods - just need to know, for example: I input xxxxxxx in the "warranty description" in product admin. save! How do i call that in products_tabs.php. echo $product_info['products_tab_2']; returns nothing
  21. includes/modules/products_tabs.php <?php // General tab #2 if ($product_info['products_tab_2'] > '') { ?> <div id="tabs-3"> <div class="inside_heading"><?php echo TEXT_TAB_2; ?></div> <br> <?php echo stripslashes ($product_info['products_tab_2']); ?> </div>
×
×
  • Create New...