Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

godino1

Archived
  • Posts

    177
  • Joined

  • Last visited

Everything posted by godino1

  1. <div> <?php // Sort columns by ??? You may need to rearrange the numbers in order of your columns in product listing echo SORT_BY . tep_create_sort_heading($HTTP_GET_VARS['sort'], 2, TABLE_HEADING_MODEL) . ' | ' . tep_create_sort_heading($HTTP_GET_VARS['sort'], 1, TABLE_HEADING_PRODUCTS) . ' | ' . tep_create_sort_heading($HTTP_GET_VARS['sort'], 2, TABLE_HEADING_MANUFACTURER) . ' | ' . tep_create_sort_heading($HTTP_GET_VARS['sort'], 5, TABLE_HEADING_PRICE); ?> </div> This is the bit that ain't working it just appears as text not clickable links
  2. Hi there, Can anyone help me out? Installed this add on great contribution every shows up fine but Sort items by : Model | Product Name | Manufacturer | Price [+] part is not clickable it's just words not links. Can anyone tell me whats wrong?
  3. You talk about my wording I used what about You can transform yourself into a "contributor I am already so please check before you speak. I've helped in the past and I've contributed.
  4. If you say so??? There was no point saying anything if it was nothing to do about this thread or contribution. This way there is no confussion. So I believe I did the right thing and thats the main thing :D
  5. When i said all sorted I didn't say that I had installed lightbox. I at the end gave up and used a different add on.
  6. Hi again, Is there anyway of adding lightbox to all the additional images instead of having a standard popup window and still have large images come up in lightbox?
  7. 1146 - Table 'internat_extinction.TABLE_ADDITIONAL_IMAGES' doesn't exist select additional_images_id, images_description, thumb_images, medium_images, popup_images from TABLE_ADDITIONAL_IMAGES where products_id = '29' [TEP STOP] It the above error when i install this add on. Can anyone help me out.
  8. Do you use images in your product description as this can cause no description to show up. This happens on my website as a use a html editor and if i insert an image then no short description will show up in product listing but if no image was used then it shows up.
  9. Graphical Boxes contribution only does the boxes generally the ones on the left and right columns you need to add the below coding to center pages as the other contribution your using states in the instructions. Contribution] Individual boxes for products in central modules http://www.oscommerce.com/forums/index.php?sho...mp;#entry986604 * 11.1. OPEN File and FIND: * <!-- body_text //--> * * ADD AFTER: * <?php echo mws_header (''); ?> * * 2. FIND: * <!-- body_text_eof //--> * * ADD BEFORE: * <?php echo mws_footer (''); ?>
  10. I've got this contribution installed but its in an i frame but which you have it in an infobox like all the other left and right column boxes. Can any one help me out?
  11. also trying to add it to the cross_sell module got as far as adding all the borders etc but would like to limit the quantity of words in description at present uploads the whole description to module. Here is my file $Id: cross_sell_products.php, v1 2002/09/11 osCommerce, Open Source E-Commerce Solutions <http://www.oscommerce.com> Copyright © 2002 osCommerce Released under the GNU General Public License */ if ($HTTP_GET_VARS['products_id']) { $cross_sell_query = tep_db_query("select distinct p.products_id, p.products_image, pd.products_name, pd.products_description, p.products_tax_class_id, products_price from " . TABLE_PRODUCTS_CROSS_SELL . " xp, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where xp.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and xp.cross_sell_id = p.products_id and p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' and p.products_status = '1' order by pd.products_name asc limit " . MAX_DISPLAY_ALSO_PURCHASED); $num_products_cross_sell = tep_db_num_rows($cross_sell_query); if ($num_products_cross_sell >= 1) { ?> <!-- cross_sell_products //--> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => TEXT_CROSS_SELL_PRODUCTS); new noborderBox($info_box_contents); //new infoBoxHeading($info_box_contents, false, false); $row = 0; $col = 0; $info_box_contents = array(); while ($cross_sell = tep_db_fetch_array($cross_sell_query)) { $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" cellspacing="0" width="33%" valign="top"', 'text' => '<table width="100%" border="0" cellspacing="0" bgcolor="#ffffff" cellpadding="0"> <tr> <td align="right" valign="bottom" bordercolor="0"><img src="images/infobox_grey/upper_left.gif" alt="1" width="12" height="33" /></td> <td colspan="2" background="images/infobox_grey/top.gif"><center><FONT SIZE=2><b><a class=productTitle href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $cross_sell['products_id']) . '">' . substr($cross_sell['products_name'], 0, 50) . '</a></b></font></center></td> <td align="left" valign="bottom"><img src="images/infobox_grey/upper_right.gif" alt="2" width="14" height="33" /></td> </tr> <tr> <td background="images/infobox_grey/left.gif"> </td> <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $cross_sell["products_id"]) . '">' . tep_image(DIR_WS_IMAGES . $cross_sell['products_image'], $cross_sell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br> </td> <td align="center" class="smallText">'. strip_tags($cross_sell['products_description']) . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, "products_id=" . $cross_sell["products_id"]). '">' . DESCR_READ_MORE . '</a><br><br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $cross_sell['products_id']) . '">' . tep_image_button('cart_buy.gif', IMAGE_BUTTON_MORE_INFO) . '</a> <strong>' . $currencies->display_price($cross_sell['products_price'], tep_get_tax_rate($cross_sell['products_tax_class_id'])).'</strong></td> <td background="images/infobox_grey/right.gif" class="smallText"><img src="images/infobox_grey/right.gif" width="14" height="149" /></td> </tr> <tr> <td align="right" valign="top"><img src="images/infobox_grey/lower_left.gif" alt="5" width="12" height="12" /></td> <td colspan="2" background="images/infobox_grey/bot.gif"><img src="images/infobox_grey/bot.gif" alt="5" width="2" height="12" /></td> <td align="left" valign="top" class="smallText"><img src="images/infobox_grey/lower_right.gif" alt="2" width="14" height="12" /></td> </tr> </table>'); $col ++; if ($col > 1) { $col = 0; $row ++; } } new noborderbox($info_box_contents); ?> <!-- cross_sell_products_eof //--> <?php } } ?>
  12. has anyone added this mod to star products? http://www.oscommerce.com/community/contri...h,star+products Is so i would be grateful for a copy of the module so i can use it.
  13. I get this error - Fatal error: Call to undefined function: tep_draw_date_selector() in /home/craftyli/public_html/craftstore/admin/coupon_admin.php on line 763 undefined function: tep_draw_date_selector() what file is this function in? can anyone help me out???????
  14. Fatal error: Call to undefined function: tep_get_return_reason_name() in /home/craftyli/public_html/craftstore/admin/returns_reasons.php on line 223 Fatal error: Call to undefined function: tep_get_refund_method_name() in /home/craftyli/public_html/craftstore/admin/refund_methods.php on line 223 Fatal error: Call to undefined function: tep_get_returns_status_name() in /home/craftyli/public_html/craftstore/admin/returns_status.php on line 224 I'm getting these errors can anyone help me out?
  15. Is there a way of getting the calendar into a info box? so it looks the same as the rest of the site Can anyone help me out?
  16. Sorry the above only works when model is in use but if not in use it doesn't so here is a fix so it now works on both Find these lines: $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_price1,p.products_price2,p.products_price3,p.products_price4,p.produc ts_price1_qty,p.products_price2_qty,p.products_price3_qty,p.products_price4_qty,p .products_qty_blocks, 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 . "'"); //qty discount GoddardHewett.com $product_info = tep_db_fetch_array($product_info_query); Add below: $manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image from " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS . " p where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id"); $manufacturer = tep_db_fetch_array($manufacturer_query); Find these lines: 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']; } Replace with these lines: // MOD - Category & Manufactureres Name in Product_info if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<br><span class="smallText">' . $product_info['products_model'] . ' </span>' . ' <span class="smallText"> ' . $category['categories_name'] . '</span>'; if (tep_not_null($manufacturer ['manufacturers_name'])) { $products_name = $products_name . ' <span class="smallText">[' . $manufacturer['manufacturers_name'] . ']</span>'; } } else { $products_name = $product_info['products_name'] . '<br><span class="smallText">' . ' <span class="smallText"> ' . $category['categories_name'] . '</span>'; if (tep_not_null($manufacturer['manufacturers_name'])) { $products_name = $products_name . ' <span class="smallText">[' . $manufacturer['manufacturers_name'] . ']</span>'; } } // END
  17. Here you go a fix use the following Find these lines: $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_price1,p.products_price2,p.products_price3,p.products_price4,p.produc ts_price1_qty,p.products_price2_qty,p.products_price3_qty,p.products_price4_qty,p .products_qty_blocks, 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 . "'"); //qty discount GoddardHewett.com $product_info = tep_db_fetch_array($product_info_query); Add below: $manufacturer_query = tep_db_query("select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image from " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS . " p where p.products_id = '" . $HTTP_GET_VARS['products_id'] . "' and p.manufacturers_id = m.manufacturers_id"); $manufacturer = tep_db_fetch_array($manufacturer_query); Find these lines: 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']; } Replace with these lines: // MOD - Category & Manufactureres Name in Product_info if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<br><span class="smallText">' . $product_info['products_model'] . ' </span>' . ' <span class="smallText"> ' . $category['categories_name'] . '</span>'; if (tep_not_null($manufacturer ['manufacturers_name'])) { $products_name = $products_name . ' <span class="smallText">[' . $manufacturer['manufacturers_name'] . ']</span>'; } } else { $products_name = $product_info['products_name'] . '<br><span class="smallText">' . ' <span class="smallText"> ' . $category['categories_name'] . '</span>'; if (tep_not_null($product_info['manufacturers_name'])) { $products_name = $products_name . ' <span class="smallText">[' . $manufacturer_info['manufacturers_name'] . ']</span>'; } } // END and that it all other parts of original contribution are fine. the above works for me. tell me how it goes please.
  18. I get the same no manufacturer name shows up added kjolebutikken code fix no change still doesn't show up.
  19. all my errors sorted out - all working fine now
  20. 1136 - Column count doesn't match value count at row 1 insert into cancelled_orders_products select * from orders_products where orders_id = '321' [TEP STOP] can anyone help me out please
  21. does the cancelled_orders & orders DB table have to have all the same lines? I've added new contribs which added new lines to the order table so do i need to add them to the cancelled_orders table?????
  22. 1146 - Table 'craftyli_osc1.TABLE_CANCELLED_ORDERS_STATUS' doesn't exist select orders_status_name from TABLE_CANCELLED_ORDERS_STATUS where orders_status_id = '2099' and language_id = '1' [TEP STOP] i'm getting this error can anyone help me out?
×
×
  • Create New...