Jump to content

Supertex

Members
  • Content count

    309
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Supertex

  1. Just want to make sure I've done this correctly: I opened includes/modules/shipping/usps.php and changed the following lines: // Connect to the USPS server and retrieve a quote $body = ''; $http = new httpClient(); if ($http->Connect('production.shippingapis.com', 80)) { $http->addHeader('Host', 'production.shippingapis.com'); $http->addHeader('User-Agent', 'osCommerce'); $http->addHeader('Connection', 'Close'); if ($http->Get('/shippingapi.dll?' . $request)) { $response = http_chunked_decode( $http->getBody() ); } $http->Disconnect(); substituting "stg-secure.shippingapis.com" in for "production.shippingapis.com" per this email: I saw no changes either in services offered, or prices pulled, so we're good for another six months?
  2. Hrm...well then I suppose my next question would be: Is my testing method correct, per above?
  3. Supertex

    Low Order Fee: International vs. Domestic

    I duplicated the module and named "LOWORDERFEE" to "DOMESTIC_LOWORDERFEE" in one, and "INTERNATIONAL_LOWORDERFEE" in the other. Seems to be working fine, but wouldn't mind stripping out the case checks, since they are not needed now...just for cleanliness.
  4. I know this module has a case check for domestic and international. I'd like to have separate thresholds and fees for both cases: $10.00 for international orders under $100.00 $5.00 for domestic orders under $25.00 Anyone care to steer me in the right direction? Is this simply adding a snippet to existing? Would I need to add DB fields? V2.3.1
  5. Supertex

    Sitemap SEO

    @@Jack_mcs I've modified the category_tree_no_products in the following way, but I get a blank page: $spacer_string = '', $spacer_multiplier = 1; $products_in_category = tep_count_products_in_category($counter); function osC_CategoryTree($catID = 0, $load_from_database = true) { global $languages_id; $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c left join " . TABLE_CATEGORIES_DESCRIPTION . " cd on c.categories_id = cd.categories_id where cd.language_id = '" . (int)$languages_id . "' order by c.parent_id, c.sort_order, cd.categories_name"); $this->data = array(); $this->root_category_id = $catID; while ($categories = tep_db_fetch_array($categories_query)) { $this->data[$categories['parent_id']][$categories['categories_id']] = array('name' => $categories['categories_name'], 'count' => 0);} } //end class osC_CategoryTree function buildBranch($parent_id, $level = 0, $p_category_link = false) { if ($products_in_category < 1){ return '';}else{ $result = $this->parent_group_start_string; //starts the <ul> tag Am I even close?
  6. Supertex

    Sitemap SEO

    No change in "hide products" page, which is my default, but that caused the category tree in "show products" to be blank on the category side....still messing around with it.
  7. Supertex

    Sitemap SEO

    @@Jack_mcs How difficult is it for the sitemap omit/exclude categories that contain 0 products? My site does not display empty categories in the category box, but they do still show in the sitemap. It's not an addon, exactly...more like a short snippet added to the bm_categories.php shown here: // DISABLE CATEGORY WITH NO PRODUCT $bShowCategory = false; $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0){ for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; /*alters the offset of subcategories*/ } $categories_string .= '<a href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">'; /* if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<strong>'; } commented out original before "easier categories in 2.3.1.*/ if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<span class="categoryBox-active">'; } else { $categories_string .= '<span class="categoryBox">'; } // display category name $categories_string .= $tree[$counter]['name']; /* if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</strong>'; }*/ $categories_string .= '</span>'; /*if (tep_has_category_subcategories($counter)) { $categories_string .= '->'; }*/ $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br />'; } //End Hide Empty Category I assume mimicking this behavior on the sitemap isn't quite as simple?
  8. Supertex

    Sitemap SEO

    @@Jack_mcs The lastest version has the option in Admin>Configuration>Sitemap SEO "show products in categories" true/false. I have it set to false as default, so it just shows categories. However, at the top of the sitemap, right next to "Categories," there is also (show products) which when I mouseover, it shows the link as: "javascript:document.sitemap.submit()" . There are no forms on the page at all. This isn't a huge detraction from the sitemap, but it may lead some customers to think they've made a mistake or that there is a security risk. If there's a way to avoid the prompt, I'd like to, but I can also live with it, if it presents a large hurdle. Please forgive my ignorance. I don't know, so I must ask :)
  9. Supertex

    Sitemap SEO

    @@Jack_mcs Anytime I click "(show products)," and then click on a product, and then hit the "back" button, I get a re-submission prompt from my browser. Is this intended, or have I made a mistake with installation?
  10. Supertex

    Product Sort osc 2.3

    Add to cart is, in fact getting pushed off the right side. I re-weighted the column and it will show up in column 5, but not 6. I'll toy around with it and see if I can't get the column spacing set to show everything correctly.
  11. Supertex

    Product Sort osc 2.3

    That did in fact make the links work correctly again on the test site. Thank you very much. Could you perhaps take a moment though, and explain what caused that setting + this addon to break the site in such a way? The live site still has 'safe URL's' active (but not the product sort addon), and it seems to work fine. When I looked over the code changes in the addon, I just didn't see what it was that caused the substitution of the catalog group in place of the index. I'm going to nose around and see what I can learn about the safe URL setting in general. Any idea what happened to the "Buy Now" image column? Is the Product Sort an invisible column to the storefront but somehow bumping that off ?
  12. Supertex

    Product Sort osc 2.3

    I've recently installed the Sept 2012 version of this addon on my 2.3.1 test server, and I'm thrilled to have found it. I only had minor issues installing it, one being when I used CTRL+F to find a code segment to replace. My code used the "strong" tag, while the segment specified in the instructions used "bold" tags, or vice versa. The sorting itself works like a dream, and I've had no issues with either the admin or the storefront, as far as errors, but I do have one problem with it that I can't seem to work out. At first, I thought it was just the links for the "Result Pages:" links, but after poking around a bit, I find that it's also the column header links. The breadcrumb and individual product links work fine. The problem is that the column header and result pages links all 403. The reference to the index is replaced with what I assume is the category structure provided by cPath. When I mouseover the "next page" link, I see the following path: domain.com/catalog/23_163_35_204/cPath/23_163_35_204/sort/6a/page/2 This link will 403. After comparing the link to the live site, which has not undergone the Product Sort / Order mod, I immediately realized what the error was: domain.com/catalog/index.php/cPath/23_163_35_204/sort/2a/page/2 I went back to the test server and replaced the first "23_163_35_204" with "index.php", left everything else alone, and the resulting page worked, including the retention of the Product Sort weighting. I understand almost enough about OSC to be dangerous to myself. I've got an idea of what it's doing, but I don't know enough to fix this. I'm assuming the fix would be in the index, and I've looked at it carefully, but I lack the knowledge to move any further. I've got a PM in to geoffreywalton, and if resolution comes there, I will copy it to this thread.
  13. Supertex

    who i can sort my product?

    I'm in the process of adding this to my site. Perhaps I can help. The latest version of that contribution is for osCommerce v 2.3.1. What version of OSC are you using? Are you looking for the code visually, or are you using CTRL+F? I noticed a few segments where the code to be replaced used tags for "bold", where the code in my installation used tags for "strong", or vice versa. Also...if you've added other contributions, the target code segment may not be exactly line 76.
  14. Supertex

    Add More Fields

    Will this contrib add a sortable column to the store-side product list, similar to Image, Product Name, Model, etc?
  15. Did not find a support thread for this contrib. _____________________________________________ When applying discount by category, any product within category with status set "inactive" causes: "Warning: Division by zero in (path).../special_by_category.php on line 541" _____________________________________________ Easily dealt with by selecting "X" to remove discount condition from that line. Need to add a check for inactive products, and exclude them from the list.
  16. v1.1 update fixed functionality, but this only adds a field to the name (or a hidden field). Is there an addon that actually adds a column in the product listing that someone knows of?
  17. I've installed this addon, and had only one problem with code addition/deletion/modification. This is a barebones 2.3.1 osC installation, freshly created today. No addons whatsoever. The problem I found is with step "15d" 15d) Around line 251 find the code that reads as follows: $products_name = $HTTP_POST_VARS['products_name']; $products_description = $HTTP_POST_VARS['products_description']; $products_url = $HTTP_POST_VARS['products_url']; Immediately AFTER these lines ADD the following: // begin Extra Product Fields $extra = array(); foreach ($xfields as $f) { $extra[$f] = $HTTP_POST_VARS[$f]; } // end Extra Product Fields I read elsewhere that this was a mistake in the instructions, and can be skipped. However, when I go to my site's admin panel and click on the "Extra Product Fields" link, it references a page that does not exist: "extra_fields.php" This file is not in the contrib package.
  18. Supertex

    [Contribution] Product Sort Order

    Any chance that a 2.3.1-compatible version is on the horizon? This would solve a huge problem for me, but after using winmerge to compare, my guess is that this won't work with 2.3.1 in current form.
  19. Supertex

    Making a Product sort Field

    Does this work for 2.3.1?
×