Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sardonic76

Pioneers
  • Posts

    97
  • Joined

  • Last visited

Everything posted by Sardonic76

  1. Hi! Can anyone tell me how I can get this add-onn to work with more than 1 language? I am assuming that I would have to make some changes to the catalog/admin/text_attributes.php...?? Any idea what those changes should be?
  2. Hi! I've managed to get it to work....BUT... the set up fee is not getting added during checkout with PayPal. Any ideas what I need to do??
  3. Thank you both for your reply. I resorted to using AJAX-AttributeManager-V2.8.10. Not quite what I was looking for, but it does speed up the process a lot!
  4. Hi! I am trying to get this to work. However, I am getting errors with the product_info page and the shopping_cart page. I have the following add-ons installed: -QPBPP -product setup fee -AJAX-AttributeManager-V2.8.10 -MPQ I don't know how to adapt the code in the 2 pages I mentioned. I'm totally stuck! Could someone help me please? This is my product_info.php code: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); if (!isset($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } 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); require(DIR_WS_INCLUDES . 'template_top.php'); if ($product_check['total'] < 1) { ?> <!-- // START Product Info Page Box --> <script type="text/javascript" src="includes/general.js"></script> <script type="text/javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=280,screenX=150,screenY=150,top=150,left=150') } //--></script> <!-- // END Product Info Page Box --> <div class="contentContainer"> <div class="contentText"> <?php echo TEXT_PRODUCT_NOT_FOUND; ?> </div> <div style="float: right;"> <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?> </div> </div> <?php } else { // BOF qpbpp 2.0 //Minimum quantity code $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, p.minorder, p.products_qty_blocks 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 . "'"); // EOF qpbpp 2.0 $product_info = tep_db_fetch_array($product_info_query); $manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image, mi.manufacturers_url from " . TABLE_MANUFACTURERS . " m left join " . TABLE_MANUFACTURERS_INFO . " mi on (m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int)$languages_id . "'), " . TABLE_PRODUCTS . " p where p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id"); if (tep_db_num_rows($manufacturer_query)) { $manufacturer = tep_db_fetch_array($manufacturer_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 . "'"); /*** BOF qpbpp 2.0 // if ($new_price = tep_get_products_special_price($product_info['products_id'])) { // $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; // } else { // $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); // } ***/ $pf->loadProduct((int)$_GET['products_id'], (int)$languages_id); $products_price=$pf->getPriceString(); // EOF qpbpp 2.0 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']; } //Minimum quantity code if (tep_not_null($product_info['minorder']) && MINIMUM_ORDERS == 'true') { $products_name .= '<br><span class="smallText">Minimum order: ' . $product_info['minorder'] . '</span>'; } //End: Minimum quantity code ?> <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?> <table width="100%" border="0"> <tr> <td height="30" valign="bottom" colspan="3"> <div align="left" class="headerNavigation"><?php echo ' ' . $breadcrumb->trail(' » '); ?></div> </td> </tr> <tr> <td ><table width="100%" border="0" cellpadding="10px" > <tr> <td height="25" colspan="3"><h2><?php echo ' ' . $products_name = $product_info['products_name']; ?></h2></td> </tr> <tr> <td rowspan="6" valign="top"> <!-- // ---------------- START images -----------------------------> <div> <div> <table width="280" align="left"> <tr> <td><?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"); if (tep_db_num_rows($pi_query) > 0) { ?> <div id="piGal"> <ul> <?php $pi_counter = 0; while ($pi = tep_db_fetch_array($pi_query)) { $pi_counter++; $pi_entry = ' <li><a href="'; if (tep_not_null($pi['htmlcontent'])) { $pi_entry .= '#piGalimg_' . $pi_counter; } else { $pi_entry .= tep_href_link(DIR_WS_IMAGES . $pi['image'], '', 'NONSSL', false); } $pi_entry .= '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $pi['image']) . '</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> <script type="text/javascript"> $('#piGal ul').bxGallery({ maxwidth: 260, maxheight: 260, thumbwidth: <?php echo (($pi_counter > 1) ? '75' : '0'); ?>, thumbcontainer: 260, load_image: 'ext/jquery/bxGallery/spinner.gif' }); </script> <?php } else { ?> <div align="" id="piGal"> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image'], '', 'NONSSL', false) . '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), null, null, 'hspace="5" vspace="5"') . '</a>'; ?> </div> <br /> <?php } ?> <script type="text/javascript"> $("#piGal a[rel^='fancybox']").fancybox({ cyclic: true }); </script> <?php } ?> <!-- // ---------------- END images -----------------------------> <!-- // ---------------- START review, ask question -----------------------------> <div class="buttonSet"> <div align="center" > <?php if (PRODUCT_INFO_PAGE_BOX_QUESTION_BUTTON == 'True') { echo '<a href="' . tep_href_link(FILENAME_ASK_A_QUESTION_POPUP) . '" target="_blank" onclick="$(\'#askaquestion\').dialog(\'open\'); return false;">'; echo tep_draw_button(TEXT_ASK_A_QUESTION_POPUP, 'help'); echo '</a>'; }?> <?php if (PRODUCT_INFO_PAGE_BOX_REVIEW_BUTTON == 'True') { echo '<a href="' . tep_href_link(FILENAME_REVIEWS_POPUP) . '" target="_blank" onclick="$(\'#reviews\').dialog(\'open\'); return false;">'; echo tep_draw_button(TEXT_REVIEWS_POPUP, 'comment'); echo '</a>'; }?> </div> </div> </div> <!-- // ---------------- END review, ask question -----------------------------> </td> </tr> </table> </td> <td colspan="2" width="100%" ><table align="left" border="0"> <tr> <td class="product-title" ><?php echo TEXT_PRICE; ?></td> <td class="heads" ><?php echo $products_price; ?><?php echo ""; ?></td> </tr> </table></td> </tr> <!-- // ----------------START share (facebook,pinterest,twitter,email)--------------------> <tr> <td colspan="2"> <table align="left" border="0"> <tr> <td class="product-title" ><?php echo TEXT_SHARE; ?></td> <td> <script language="javascript"> var win = null; function NewWindow(mypage,myname,w,h,scroll){ LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable' win = window.open(mypage,myname,settings) } </script> <div> <a href="http://www.facebook.com/sharer/sharer.php?u=" onclick="NewWindow(this.href,'Facebook','550','300','no');return false"><img src="images/social_bookmarks/facebook.png" height="25" width="25" alt="Share on Facebook!" border="0" /></a> <a href="http://twitter.com/share?original_referer=" onclick="NewWindow(this.href,'Twitter','450','300','no');return false" ><img src="images/social_bookmarks/twitter.png" height="25" width="25" alt="Tweet it!" border="0" /></a> <a href='javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());'><img src='images/social_bookmarks/PinEx.png' height="25" width="25" alt="Pinterest" border="0" /></a> <?php if (PRODUCT_INFO_PAGE_BOX_TELL_BUTTON == 'True') { echo tep_draw_form('email_friend', tep_href_link(FILENAME_TELL_A_FRIEND, 'action=process&products_id=' . (int)$HTTP_GET_VARS['products_id']), 'post', '', true); echo '<a href="' . tep_href_link(FILENAME_TELL_A_FRIEND_POPUP) . '" target="_blank" onclick="$(\'#tellafriend\').dialog(\'open\'); return false;">'; echo tep_image('images/social_bookmarks/email.png'); echo '</a>'; } ?> </div> </td> </tr> </table></td> </tr> <!-- // ----------------END share (facebook,pinterest,twitter,email)--------------------> <tr> <td colspan="2"><table align="left" border="0"> <tr> <td class="product-title" ><span style="float: left;"> <?php if (PRODUCT_INFO_PAGE_BOX_PRODUCT_STOCK == 'True') { echo TEXT_STOCK_LEVEL . '<br />'; } ?> </span></td> <td><?php if (PRODUCT_INFO_PAGE_BOX_PRODUCT_STOCK == 'True') { echo tep_get_products_stock($product_info['products_id']) . '<br />'; } ?></td> </tr> </table><div align="justify"><?php echo stripslashes($product_info['products_description']); ?></div></td> </tr> <tr> <td><!-- Attributes Start --> <?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="product-title alternative" style="padding: 5px" > <div class="titles"><?php echo TEXT_PRODUCT_OPTIONS; ?></div> <p> <?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') { //bof product setup fee // $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 ($products_options['price_prefix'] == '#') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } else $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'])) .') '; //eof } } 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; } ?> <br /> <table width="100%" border="0"> <tr> <td colspan="2" class="options-titles"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> </tr> <tr> <td width="40"> </td> <td><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td> </tr> </table> <?php } ?> <?php } ?> <!-- Attributes End --> </p> <p> </p></div></td> </tr> <tr> <td colspan="2"><table border="0" width="100%" cellspacing="1" cellpadding="2" > <tr> <td><table border="0" width="100%" cellspacing="5" cellpadding="2"> <tr> <?php /* start Remove Prices and buy now and add to cart if price = 0.00 V2 <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>*/ ?> <!----------------START add to cart, min box ----------> <td align="right"> <?php if ($product_info['products_price'] < 0.01){ //echo 'Please Phone For Information'; //echo 'Click Link Above to Buy'; } else { if (tep_not_null($product_info['minorder']) && MINIMUM_ORDERS == 'true') { echo TEXT_MINIMUM_ORDER; } ?> <?php echo TEXT_ENTER_QUANTITY . tep_draw_input_field('cart_quantity', $product_info['minorder'], 'size="6"') . tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_separator('pixel_trans.gif', '10', '1') . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); } ?> </td> <!----------------END add to cart, min box ----------> <?php // EOF qpbpp ?> </tr> </table></td> </tr> </table> <div id="reviews" title="<?php echo 'Reviews for '; echo tep_get_products_name($product_info['products_id']); ?>"> <?php include(FILENAME_REVIEWS_POPUP); ?> </div> </form> <div id="tellafriend" title="<?php echo 'Tell a Friend About '; echo tep_get_products_name($product_info['products_id']); ?>"> <?php include(FILENAME_TELL_A_FRIEND_POPUP); ?> </div></form> <div id="askaquestion" title="<?php echo 'As Us a Question About '; echo tep_get_products_name($product_info['products_id']); ?>"> <?php include(FILENAME_ASK_A_QUESTION_POPUP); ?> </div></form> <script type="text/javascript"> $('#reviews').dialog({ autoOpen: false, width: 700, buttons: { 'Close Dialog Box': function() { $(this).dialog('close'); } } }); </script> <script type="text/javascript"> $('#tellafriend').dialog({ autoOpen: false, width: 400, buttons: { 'Close Dialog Box': function() { $(this).dialog('close'); } } }); </script> <script type="text/javascript"> $('#askaquestion').dialog({ autoOpen: false, width: 500, buttons: { 'Close Dialog Box': function() { $(this).dialog('close'); } } }); </script> <!-- // ---------------- END review, ask question -----------------------------> </div> <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' and reviews_status = 1"); $reviews = tep_db_fetch_array($reviews_query); ?> </div> <!--</form>--></td> </tr> </table></td> </tr> <tr> <td><?php //added for cross -sell if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_xsell_products(3600); //added for Xsell } else { include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS); //added for Xsell } ?></td> </tr> </table> <?php } require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Here's my shopping_cart.php code: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ require("includes/application_top.php"); if ($cart->count_contents() > 0) { include(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment; } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOPPING_CART); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHOPPING_CART)); require(DIR_WS_INCLUDES . 'template_top.php'); ?> <table border="0"> <tr> <td height="30" valign="bottom" colspan="3"> <div align="left" class="headerNavigation"><?php echo ' ' . $breadcrumb->trail(' » '); ?></div> </td> </tr> </table> <h1><?php echo HEADING_TITLE; ?></h1> <?php if ($cart->count_contents() > 0) { ?> <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?> <div class="contentContainer"> <div class="contentText"> <?php $info_box_contents = array(); $info_box_contents[0][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_PRODUCTS); $info_box_contents[0][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_QUANTITY); $info_box_contents[0][] = array('align' => 'center', 'params' => 'class="productListing-heading"', 'text' => TABLE_HEADING_TOTAL); $any_out_of_stock = 0; $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { // Push all attributes information in an array if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { while (list($option, $value) = each($products[$i]['attributes'])) { echo tep_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value); $attributes = tep_db_query("select popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa where pa.products_id = '" . (int)$products[$i]['id'] . "' and pa.options_id = '" . (int)$option . "' and pa.options_id = popt.products_options_id and pa.options_values_id = '" . (int)$value . "' and pa.options_values_id = poval.products_options_values_id and popt.language_id = '" . (int)$languages_id . "' and poval.language_id = '" . (int)$languages_id . "'"); $attributes_values = tep_db_fetch_array($attributes); $products[$i][$option]['products_options_name'] = $attributes_values['products_options_name']; $products[$i][$option]['options_values_id'] = $value; $products[$i][$option]['products_options_values_name'] = $attributes_values['products_options_values_name']; $products[$i][$option]['options_values_price'] = $attributes_values['options_values_price']; $products[$i][$option]['price_prefix'] = $attributes_values['price_prefix']; } } } for ($i=0, $n=sizeof($products); $i<$n; $i++) { if (($i/2) == floor($i/2)) { $info_box_contents[] = array('params' => 'class="productListing-even"'); } else { $info_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($info_box_contents) - 1; $products_name = '<table border="0" cellspacing="2" cellpadding="2">' . ' <tr>' . ' <td class="productListing-data" align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . tep_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>' . ' <td class="productListing-data" valign="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"> <strong>' . $products[$i]['name'] . '</strong></a>'; if (STOCK_CHECK == 'true') { $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; $products_name .= $stock_check; } } if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { reset($products[$i]['attributes']); while (list($option, $value) = each($products[$i]['attributes'])) { //bof product setup fee if ($products[$i][$option]['price_prefix'] == '#') { $products_name .= '<br> - ' . $products[$i][$option]['products_options_name'] . ': ' . $products[$i][$option]['products_options_values_name'] . ' (' . $currencies->format($products[$i][$option]['options_values_price'], true, $order->info['currency'], $order->info['currency_value']) .')'; } else $products_name .= '<br> - ' . $products[$i][$option]['products_options_name'] . ': ' . $products[$i][$option]['products_options_values_name'] . ''; //eof } } $products_name .= ' </td>' . ' </tr>' . '</table>'; //Minimum quantity code if(MINIMUM_ORDERS == 'true'){ $min_order_query = tep_db_query("select p.minorder as min_quant FROM " . TABLE_PRODUCTS . " p where p.products_id = '".$products[$i]['id']."'"); while ($min_order = tep_db_fetch_array($min_order_query)) { if ($products[$i]['quantity'] < $min_order['min_quant'] ) { $products[$i]['min_quant']=$min_order['min_quant']; } } if ($products[$i]['quantity'] < $products[$i]['min_quant'] ) { $products[$i]['quantity']=$products[$i]['min_quant']; $cart->add_cart($products[$i]['id'],$products[$i]['quantity'],$products[$i]['attributes']); $cart_notice = sprintf(MINIMUM_ORDER_NOTICE, $products[$i]["name"], $products[$i]["min_quant"]); } } //End Minimum quantity code $info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"', 'text' => $products_name); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="center"', 'text' => tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) . ' ' . tep_draw_button(IMAGE_BUTTON_UPDATE, 'refresh') . '<br>' . TEXT_OR . '<a href="' . tep_href_link(FILENAME_SHOPPING_CART, 'products_id=' . $products[$i]['id'] . '&action=remove_product') . '">' . TEXT_REMOVE . '</a>'); $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="center"', //bof product setup fee 'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], tep_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity'], $products[$i]['setup_price']) . '</b>'); //eof } new productListingBox($info_box_contents); ?> </table></br> <p><strong><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $currencies->format($cart->show_total()); ?></strong></p> <?php if ($any_out_of_stock == 1) { if (STOCK_ALLOW_CHECKOUT == 'true') { ?> <p class="stockWarning" align="center"><?php echo OUT_OF_STOCK_CAN_CHECKOUT; ?></p> <?php } else { ?> <p class="stockWarning" align="center"><?php echo OUT_OF_STOCK_CANT_CHECKOUT; ?></p> <?php } } //Minimum quantity code if ($cart_notice) { ?> <tr> <td class="stockWarning" align="center"><br><?php echo $cart_notice; ?></td> </tr> <?php } //End Minimum quantity code ?> </div> <div class="buttonSet"> <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary'); ?></span> </div> <?php $initialize_checkout_methods = $payment_modules->checkout_initialization_method(); if (!empty($initialize_checkout_methods)) { ?> <p align="right" style="clear: both; padding: 15px 50px 0 0;"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></p> <?php reset($initialize_checkout_methods); while (list(, $value) = each($initialize_checkout_methods)) { ?> <p align="right"><?php echo $value; ?></p> <?php } } ?> </div> </form> <?php } else { ?> <div class="contentContainer"> <div class="contentText"> <?php echo TEXT_CART_EMPTY; ?> <p align="right"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></p> </div> </div> <?php } require(DIR_WS_INCLUDES . 'template_bottom.php'); require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Thank you!!
  5. Hi! Any idea if there is an add-on that will allow me to select multiple attributes and place them with one click to all the products under the same category? For example: Under the category "wedding favours" I wish to add about 3 attributes (each with about 5 or 6 different options) to ALL the products in there. Like for each favour one has the option to choose a colour (choice of 5), almond flavour (choice of 7), a charm (choice of 2) etc etc. If I have to do that manually for EACH product I will most likely go nuts (even more than what I am!). So, any ideas if there is an add-on that will do this? If so, which one??? Pleeeeease help! Thank you in advance, D
  6. Hi! :) I'm trying to get the x-sell products to display a certain way on the product info page, but I can't seem to figure out what I need to do. Basically I want them displayed like in the "what's new" page (have a look here: http://dory.gr/2013h/index.php). Pink boxes symmetrically divided and with spacing between them. What I am getting at the moment is this: http://dory.gr/2013h/product_info.php?cPath=26&products_id=30. Any ideas as to what I need to change??? :wacko: ------------------ Never mind!!!! I got it. Switched the file with a file that was posted in a previous post and tweaked it a little.
  7. Fixed it! I had added this (while adding some code for a slide/fade thingy) <script type="text/javascript" src="jquery.js"></script> to "template_top.php" which I shouldn't have!
  8. Hi! I seem to have some kind of conflict with java and I have no idea how to solve it. I have a simple image fade slideshow on my index page which needs some java on the "template.top" page. This is the code: <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="fadeSlideShow.js"></script> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#slideshow').fadeSlideShow(); }); </script> If I remove that code, then this contribution works fine (apart from a problem with the image! I have messed up somewhere, but that's another issue!!). But if that code stays there, then the product page gets totally messed up. Here's the page with all java code: http://dory.gr/2013ff/product_info.php?products_id=29 Any ideas?? P.S. I'm a mere mortal (not a programmer or anything), so please forgive me if this seems like a silly question.
  9. Ooooh! I just found this: http://addons.oscommerce.com/info/8308 It says that the Pinterest button has been added with the latest update!
  10. I am also interested in putting a Pinterest button to my shop. Help anyone?
  11. I'm interested in this too! Any ideas???
  12. actually.... the problemos this: If you change the quantity in the cart and hit "update", the setup fee does not get added. Example: (100 invitations x 1$) + 60$ setup fee = 160$ Then if you make chages once you go to the cart to 50 invitations, you get a total: 50 invitations x 1$ = 50$ Whereas it should be: (50 invitations x 1$) +60$ setup fee = 110$ The setup fee is nowhere to be seen.
  13. Great contribution!!! However... I messed up! :blush: I installed the Set up fee contribution and then I installed the One Page checkout. The problem now is that the setup fee is not showing up in the cart. The text for the set up fee shows up, but the amount is not added to the cart. Any clues what I need to do??? :huh: Pleeeeeease please help!
  14. I messed up! :blush: I installed the One Page Checkout contribution and now the setup fee is not showing up in the cart. The text for the set up fee shows up, but the amount is not added to the cart. Any clues what I need to do??? :huh: Pleeeeeease please help!
  15. Maybe this contribution is useful to you: options as images
  16. I still can't get this to work :( PLEASE someone help!
  17. I'm so happy!! :lol: I finally got this contrib to work and it is EXCELLENT!!!!! Thank you!!!
  18. I don't know where I have gone wrong, but my shop will not add the setup fee once. If I add to cart qty 100 then it will automatically SUBTRACT 100 set up fees!!! What have I done wrong??? :blink:
  19. Thanks, I made the changes. My problem now though is that I have installed the additional images contrib and I can't get them both to work simultaniously. So far I can only seem to have EITHER additional images and pop up function OR zoom function for only 1 image. I don't know what parameters to change to make them work together. Any ideas?
  20. I have figured out how to assign the script to a specific image. So far so good. My problem though is I do not know how to implement it on the various images that show up on product info page. Any clues?
  21. I found this free javascript image magnifier: jqZoom How do I implement it in my shop? :blink: (note: I have added the additional images contrib)
  22. I tried changing from 744 to 755 and then to 777. Nothing's changed. Argh... this is so frustrating! What am I doing wrong?
×
×
  • Create New...