Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

JrrSIN

Pioneers
  • Posts

    16
  • Joined

  • Last visited

Everything posted by JrrSIN

  1. On oscommerce 2.2 I added a Quantity dropdown box to product_info.php as instructed here http://www.oscommerce.com/forums/topic/109977-pull-down-quantity-box/#entry654612 However, when a product has attributes, the dropdown menu in the quantity box shows the total of all the attribute's quantities, disregarding which attribute is selected. Is there a way to show the quantity for the selected attribute in the Quantity dropdown box? Any help will be greatly appreciated
  2. We have SPPC 4.2.2 installed. Our problem: We do extensive use of 'Attribute prices for groups', which is accessible by going to to Admin --> Catalog --> Products Attributes --> click the 'group prices' button for the attribute of the desired product. The store has over 2200 products with 5070 attributes in total, assigned to them. The page mentioned above only shows 10 assigned attributes, which makes for 507 pages to find the attribute for a particular product, to modify it's 'Attribute prices for groups'. Quiet a daunting task, as one can imagine. Solutions we looked for: We do have installed this addon: New Attribute Manager http://addons.oscommerce.com/info/1119 and looked into: AJAX Attribute Manager http://addons.oscommerce.com/info/4063 These provide an easier method to assign attributes to products, however neither of these support assigning 'Attribute prices for groups' to these attributes, that we know of. Somebody must have run into this. Maybe there is a similar 'Attribute Manager' that supports this SPPC 'Attribute prices for groups' feature. Maybe someone came up with an easier way to do this. Any suggestion on how to simplify this task would be greatly appreciated. Thanks
  3. Hello, I am using the latest version 5.0 (14 Aug 2010) of New Attribute Manager. Here is the problem I am experiencing: In the .../new_attributes.php screen let's say I have a list of 20 "Size" attributes. If I add to a product any amount of the first 10 attributes in the list, the attributes are added. If I add to a product any amount of the last 10 attributes in the list, the attributes are NOT added. I reverted the sort of the list, and still the problem remains the same. This start happening after a 5.3 PHP upgrade on my host. Therefore I changed all files to New Attributes Manager 5.0 to no avail. All other files were not changed as everything seems to work fine. Any ideas or suggestion on how to troubleshoot this? Thanks
  4. Hello there, I need to make a custom title attributes for each of the category links, instead of the default which is the category name. So I created this field categories_title_attr in the categories_description table. Now I need to incorporate the contents of this field into the title attribute for the links. Any help is greatly appreciated. Here is the code of dm_categories.php in my installation ________________________________ <?php /* $Id: ul_categories.php,v 1.00 2006/04/30 01:13:58 nate_02631 Exp $ Outputs the store category list as a proper unordered list, opening up possibilities to use CSS to style as drop-down/flyout, collapsable or other menu types. osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2006 Nate Welch http://www.natewelch.com Released under the GNU General Public License */ // BEGIN Configuration options // Set to false to display the unordered list only. Set to true to display in // a regular box. The former is useful for better integrating the menu with your layout. $show_ulcats_as_box = false; // Indicates whether or not to render your entire category list or just the root categories // and the currently selected submenu tree. Rendering the full list is useful for dynamic menu // generation where you want the user to have instant access to all categories. The other option // is the default oSC behaviour, when the subcats aren't available until the parent is clicked. $show_full_tree = false; // This is the CSS *ID* you want to assign to the UL (unordered list) containing // your category menu. Used in conjuction with the CSS list you create for the menu. // This value cannot be blank. $idname_for_menu = 'navlist'; // This is the *CLASSNAME* you want to tag a LI to indicate the selected category. // The currently selected category (and its parents, if any) will be tagged with // this class. Modify your stylesheet as appropriate. Leave blank or set to false to not assign a class. $classname_for_selected = 'selected'; // This is the *CLASSNAME* you want to tag a LI to indicate a category has subcategores. // Modify your stylesheet to draw an indicator to show the users that subcategories are // available. Leave blank or set to false to not assign a class. $classname_for_parent = false; // This is the HTML that you would like to appear before your categories menu if *not* // displaying in a standard "box". This is useful for reconciling tables or clearing // floats, depending on your layout needs. $before_nobox_html = ''; // This is the HTML that you would like to appear after your categories menu if *not* // displaying in a standard "box". This is useful for reconciling tables or clearing // floats, depending on your layout needs. // $after_nobox_html = '<div style="clear: both;">'; // END Configuration options // Global Variables $GLOBALS['this_level'] = 0; // Initialize HTML and info_box class if displaying inside a box if ($show_ulcats_as_box) { echo '<tr><td>'; $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, true, false); } // Generate a bulleted list (uses configuration options above) $categories_string = tep_make_cat_ullist(); // Output list inside a box if specified, otherwise just output unordered list if ($show_ulcats_as_box) { $info_box_contents = array(); $info_box_contents[] = array('text' => $categories_string); new infoBox($info_box_contents); echo '</td></tr>'; } else { echo $before_nobox_html; echo $categories_string; echo $after_nobox_html; } // Create the root unordered list function tep_make_cat_ullist($rootcatid = 0, $maxlevel = 0){ global $idname_for_menu, $cPath_array, $show_full_tree, $languages_id; // Modify category query if not fetching all categories (limit to root cats and selected subcat tree) if (!$show_full_tree) { $parent_query = 'AND (c.parent_id = "0"'; //COMMENT BELOW TO SHOW ONLY TOP CATEGORIES /* if (isset($cPath_array)) { $cPath_array_temp = $cPath_array; foreach($cPath_array_temp AS $key => $value) { $parent_query .= ' OR c.parent_id = "'.$value.'"'; } unset($cPath_array_temp); } */ //END COMMENT FOR SHOW TOP CATEGORIES $parent_query .= ')'; } else { $parent_query = ''; } $result = tep_db_query('select c.categories_id, cd.categories_name, c.parent_id from ' . TABLE_CATEGORIES . ' c, ' . TABLE_CATEGORIES_DESCRIPTION . ' cd where c.categories_id = cd.categories_id and cd.language_id="' . (int)$languages_id .'" '.$parent_query.' order by sort_order, cd.categories_name'); while ($row = tep_db_fetch_array($result)) { $table[$row['parent_id']][$row['categories_id']] = $row['categories_name']; } $output .= '<ul id="'.$idname_for_menu.'">'; $output .= tep_make_cat_ulbranch($rootcatid, $table, 0, $maxlevel); // Close off nested lists for ($nest = 0; $nest <= $GLOBALS['this_level']; $nest++) { $output .= '<!-- <li><img src="images/bulleted_short.gif"></li> --></ul>'; } return $output; } // Create the branches of the unordered list function tep_make_cat_ulbranch($parcat, $table, $level, $maxlevel) { global $cPath_array, $classname_for_selected, $classname_for_parent; $list = $table[$parcat]; while(list($key,$val) = each($list)){ if ($GLOBALS['this_level'] != $level) { if ($GLOBALS['this_level'] < $level) { $output .= "\n".'<ul>'; } else { for ($nest = 1; $nest <= ($GLOBALS['this_level'] - $level); $nest++) { $output .= '</ul></li>'."\n"; } /* if ($GLOBALS['this_level'] -1 == $level) $output .= '</ul></li>'."\n"; elseif ($GLOBALS['this_level'] -2 == $level) $output .= '</ul></li></ul></li>'."\n"; elseif ($GLOBALS['this_level'] -3 == $level) $output .= '</ul></li></ul></li></ul></li>'."\n"; elseif ($GLOBALS['this_level'] -4 == $level) $output .= '</ul></li></ul></li></ul></li></ul></li>'."\n"; */ } $GLOBALS['this_level'] = $level; } if (isset($cPath_array) && in_array($key, $cPath_array) && $classname_for_selected) { $this_cat_class = $classname_for_selected . ' '; } else { $this_cat_class = ''; } $output .= '<li class="'.$this_cat_class.'cat_lev_'.$level.'"><a class="link_lev_' .$level.'" href="'; if (!$level) { unset($GLOBALS['cPath_set']); $GLOBALS['cPath_set'][0] = $key; $cPath_new = 'cPath=' . $key; } else { $GLOBALS['cPath_set'][$level] = $key; $cPath_new = 'cPath=' . implode("_", array_slice($GLOBALS['cPath_set'], 0, ($level+1))); } if (tep_has_category_subcategories($key) && $classname_for_parent) { $this_parent_class = ' class="'.$classname_for_parent.'"'; } else { $this_parent_class = ''; } $output .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '"'.$this_parent_class.'title="' . ucwords(strtolower($val)) . '">'.$val; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($key); if ($products_in_category > 0) { $output .= ' ' .'</a>'. '(' . $products_in_category . ')'; } } $output .= ''. '</a></li>'."\n"; if (!tep_has_category_subcategories($key)) { $output .= ''.""; } if ((isset($table[$key])) AND (($maxlevel > $level + 1) OR ($maxlevel == '0'))) { $output .= tep_make_cat_ulbranch($key,$table,$level + 1,$maxlevel); } } // End while loop return $output; } ?>
  5. One more thing, The 'Date Ordered' in the e-mail that notifies the customer, does not come up, it is empty Thanks
  6. Thanks for the contribution. The Export button does not show.
  7. Hello there, Does this contribution allow to control inventory of a product that is sold in different stores? Example: If I have 10 items of Product A and I sell 1 in Store1 and 2 in Store2, then the stock report should show 7 in stock for that product. Is this one of the things this contribution can do? If so, will both stores show to the user "7 in stock" in the attributes menu? Thanks
  8. When a customer does not reach the minimum I would like the show a message that says: "You can spend $x more to get free shipping" instead of "You get free shipping if you spend $x" The $x should be MODULE_SHIPPING_FREEAMOUNT_AMOUNT - $cart_total. But I do not know how to do this in php. Any help? Thanks
  9. Hello, I would like to know if there is a way to sort the how the 'Products Options' appear in the product_info page. For example: I have 'Color' and 'Size' options. So 'Available Options' in the Product info page will be: First choose 'Colors', then choose 'Size'. The options are sort alphabetically. How can I make the customer choose 'Size' first and then 'Color'? QTPro.v4.25 is installed Thanks
  10. Hello, I would like to know if there is a way to sort the how the 'Products Options' appear in the product_info page. For example: I have 'Color' and 'Size' options. So 'Available Options' will be: First choose 'Colors', then choose 'Size'. The options are sort alphabetically. How can I make the customer choose 'Size' first and then 'Color'? Thanks
  11. Hello, I am using Ultimate SEO URLs 2.2.2 and I get this url for products: http://www.mysite.com/my-nice-product-p-99.html Is it possible to get this url instead without the p-99?: http://www.mysite.com/my-nice-product.html Thanks
  12. Hello there, These finally worked, thank you very much. However I get these error in the following 2 files: XML Parsing Error: mismatched tag. Expected: </br>. Location: http://www.my_site.com/googleSitemapTopics.php Line Number 18, Column 98: articles_last_mod ASC<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font> XML Parsing Error: mismatched tag. Expected: </br>. Location: http://my_site.com/googleSitemapArticles.php Line Number 9, Column 111: articles_date_added DESC<br><br><small><font color="#ff0000">[TEP STOP]</font></small><br><br></b></font> I do not have articles yet and I do not know what are topics. Does that matter? Thanks
  13. I uploaded the file several times with no success. The last time I opened the file and saw an extra return character at the end of the file. Deleted that last return character and uploaded the file manually to Google Base. This time 'Success'. Is it possible to modify the googlefeeder.php to eliminate this last return? Also there is an extra space at the end of each line. No problems with that for now, but you never know. Thanks
×
×
  • Create New...