Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dbasch

Archived
  • Posts

    18
  • Joined

  • Last visited

Everything posted by dbasch

  1. Everyone might want to know that onMouseover Javascript redirects are now being penalized by google. :ph34r: :angry: Google Cracks Down Google has always stated that they take attempts to manipulate their rankings by purposely providing deceptive information to their spiders very seriously and that they are always on the lookout for new techniques employed by Web site owners to artificially inflate rankings. According to threads taking place in several popular search engine marketing forums, it seems that Google has adjusted their algorithms to catch a batch of sites using a JavaScript technique known as "onmouseover." The idea behind this technique is to create a keyword stuffed Web page that will rank well, but that doesn't really contain readable content. A JavaScript command is placed within the body tag of the Web page and works to redirect the user to another Web site the second their mouse rolls over any portion of the page. The redirect happened so quickly that few Internet users would notice the change. Site visitors that are savvy enough to suspect the technique was being used could take the time to navigate through the browser with their keyboard and view the page's source code, where the JavaScript command could quickly be recognized. More www.searchengineguide.com/laycock/001614.html
  2. Everyone, Here are a few things that I have discovered about uploading and downloading Easy Populate files. Stuff that doesn't seem to be in the instructions. :ph34r: :ph34r: :ph34r: :ph34r: 1 The first time that a product is added to the DB, the v_products_name_1 field must contain a name. Otherwise, the product will be added to the DB but will not show up in your OSCommerc admin panel. 2 A product must be contained within a category. Otherwise, the product will not show up in the "Download Complete tab-delimited .txt file to edit" file format. However, it will show up in the other file formats. I hope this helps somebody because it sure drove me nuts for a while. If anyone else has some EP tips to contribute post them and I will put together an FAQ somewhere. I am sure I will have more to add to this soon. Oh yeah, please feel free to tell me I am wrong about either of the above. Cheers, Derek :D
  3. Hello Don, 1. This is not really a limitation of this code, but you could try my latest code update, which has this option to handle just the product models and attributes. That would probably save a few columns. If you still have excess columns, you could try to hack the code to make it handle 1 language or 1 attrib set, at a time (just a thought!). 2. Well, attributes are not actually assigned to every single product. Attributes are assigned to a product, only if the corresponding value price cell contains a "non-empty" value. Otherwise, the attribute options/values are listed beside each product, but are not assigned to them. HTH, VJ Hello All, I am trying to set up a store with T-shirts of various sizes and colors and have run into the 256 column limit, same as quoted above. I am a python programmer so I probably wouldn't be able to hack the code as suggested above either. Has anyone dealt with the column limit? Any simple solutions? Could I add attributes in batches of 256 or does EP expect the attributes all at once? Thanks, Derek ;)
  4. Just to double check, the installation should consist cutting and pasting the files and running the sql aqainst the DB, correct? :huh:
  5. I replaced it and I am still getting the same behavior. Here is the code requested: case 'add_slave' : while ( list( $key, $val ) = each( $HTTP_POST_VARS ) ) { if (substr($key,0,11) == "Qty_ProdId_") { $prodId = substr($key,11); $qty = $val; if ($qty <= 0 ) continue; $cart->add_cart($prodId, $cart->get_quantity(tep_get_uprid($prodId, $HTTP_POST_VARS['id']))+($qty), $HTTP_POST_VARS['id']); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; Thanks ;)
  6. Here is the whole shebang. I have not altered anything from the original file (to my knowledge). B) Thanks for the help! <?php /* $Id: master_listing.php osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Master Products MS2 - JOHNSON - 05/07/2003 [email protected] Copyright (c) 2003 Suomedia - Dynamic Content Management Released under the GNU General Public License */ $listing_split = new splitPageResults($master_sql, MAX_DISPLAY_SEARCH_RESULTS, 'products_master'); if ( ($listing_split->number_of_rows > 0) && ( (MASTER_PREV_NEXT_BAR_LOCATION == '1') || (MASTER_PREV_NEXT_BAR_LOCATION == '3') ) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } $list_box_contents = array(); for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { switch ($column_list[$col]) { case 'MASTER_LIST_MODEL': $lc_text = TABLE_HEADING_MODEL; $lc_align = ''; break; case 'MASTER_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'MASTER_LIST_DESCRIPTION': $lc_text = TABLE_HEADING_DESCRIPTION; $lc_align = 'center'; break; case 'MASTER_LIST_ATTRIBUTES': $lc_text = TABLE_HEADING_ATTRIBUTES; $lc_align = 'center'; break; case 'MASTER_LIST_MANUFACTURER': $lc_text = TABLE_HEADING_MANUFACTURER; $lc_align = ''; break; case 'MASTER_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; case 'MASTER_LIST_QUANTITY': $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'right'; break; case 'MASTER_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; break; case 'MASTER_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; case 'MASTER_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; } if ( ($column_list[$col] != 'MASTER_LIST_BUY_NOW') && ($column_list[$col] != 'MASTER_LIST_IMAGE' && ($column_list[$col] != 'MASTER_LIST_MULTIPLE' && ($column_list[$col] != 'MASTER_LIST_DESCRIPTION'))) ) { $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text); } $list_box_contents[0][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' '); } if ($listing_split->number_of_rows > 0) { $rows = 0; $master_query = tep_db_query($listing_split->sql_query); while ($listing = tep_db_fetch_array($master_query)) { $rows++; if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $lc_align = ''; $lc_params = ''; switch ($column_list[$col]) { case 'MASTER_LIST_MODEL': $lc_align = ''; $lc_text = ' ' . $listing['products_model'] . ' '; break; case 'MASTER_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>'; } else { $lc_text = ' ' . $listing['products_name'] . '</a> '; } break; case 'MASTER_LIST_DESCRIPTION': $lc_align = ''; $lc_text = ' ' . osc_trunc_string(strip_tags($listing['products_description'], '<a><b><em><font><i><s><span><strong><sub><sup><u>'), MASTER_LIST_DESCRIPTION_LENGTH) . ' '; break; case 'MASTER_LIST_MANUFACTURER': $lc_align = ''; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a> '; break; case 'MASTER_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } break; case 'MASTER_LIST_QUANTITY': $lc_align = 'center'; $lc_text = ' ' . $listing['products_quantity'] . ' '; break; case 'MASTER_LIST_WEIGHT': $lc_align = 'right'; $lc_text = ' ' . $listing['products_weight'] . ' '; break; case 'MASTER_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; case 'MASTER_LIST_BUY_NOW': $lc_align = 'center'; $lc_valign = 'top'; if ((STOCK_CHECK == 'true')&&(tep_get_products_stock($listing['products_id']) < 1)) { $lc_text = TEXT_STOCK; } elseif ((STOCK_CHECK == 'false')&&(tep_get_products_stock($listing['products_id']) < 1)) { $qty_array = array(); for ($i=0; $ns = 20, $i <= $ns; $i++) { $qty_array[] = array('id' => $i, 'text' => $i); $lc_text = tep_draw_pull_down_menu('Qty_ProdId_' . $listing['products_id'], $qty_array); } } else { $quantity = tep_get_products_stock($listing['products_id']); $qty_array = array(); for ($i=0; $ns = (($quantity < 20) ? $quantity : 20), $i <= $ns; $i++) { $qty_array[] = array('id' => $i, 'text' => $i); $lc_text = tep_draw_pull_down_menu('Qty_ProdId_' . $listing['products_id'], $qty_array); } } break; } $list_box_contents[$cur_row][] = array('align' => $lc_align, 'valign' => $lc_valign, 'params' => 'class="productListing-data"', 'text' => $lc_text); } } new productListingBox($list_box_contents); } else { $list_box_contents = array(); $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); new productListingBox($list_box_contents); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> </table> <?php if ( ($listing_split->number_of_rows > 0) && ((MASTER_PREV_NEXT_BAR_LOCATION == '2') || (MASTER_PREV_NEXT_BAR_LOCATION == '3')) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } ?>
  7. Products that are neither master or slave can only be added if you select the 'buy now' button. Otherwise, they display the same behavior as the others. Items that are masters with no slaves display the same behavior. Weird huh? I don't know why I would have this problem with the default installations? <_<
  8. Yes, they are the only ones. I made a new products with a yellow color just to be sure and it did not work either. :angry: :(
  9. I removed the qty and price from the master. That removed the qty pulldown from the master but the selected colors are still not being added to the cart. Any other suggestions? :(
  10. I was quoting from someone else's posting before. In my case, I have installed a fresh copy of OSCommerce and then installed Master Products - 1.1.5. I have created a sample master and slave products: Hanes XL T-Shirt: Blue Red I have hidden the slaves which gives me: If I select a quantity of 1 for Red and Blue and the master product and then select 'Add to Cart' the items are not added to the cart. That is where I am stuck. Does v1.1.5 not work as released? Thanks everyone :ph34r:
  11. I would say you are right! It took me a while to find it, but once I pasted in the updated logic everything worked just as I had hoped. Thank you! I must say, it seems a bit strange to me that in the 6 months that have passed since this patch was posted, no one has seen fit to add an updated application_top.php to the contribution stack. Would it make sense for someone to do that? If not, why not? If so, should I go ahead and do it? (Am I allowed to do it?) :blink: Thanks again, Haephestus Hello Again, I installed Master Products - 1.1.5 and am getting the same behavior. I can create Master products and Slaves but I can't add any of them to my cart. I dug through this thread for an hour but could not find the aplication_top.php solution that is referred to. Can anyone help me? Thanks!
  12. Nevermind, I found the answer here: http://www.oscommerce.com/community/contributions,500 :huh:
  13. Quick question. Does Master Products work with Easy Populate?
×
×
  • Create New...