Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

Everything posted by DeathAdder

  1. DeathAdder

    [Contribution] Show Sub-categories

    I believe I fixed my own problem... in case anyone is interested. Not sure where this "nested" cPath issue came from or where it was introduce. But here's a little something I came up with to fix it. This change goes to catalog - includes - boxes - catagories.php approx. line 135. This is taken from bedfordch 30 Oct 2008 update. } // While Interno //start befordch fix (show category count) $cPath_myNewPath = explode('_',str_replace("cPath=", "", $cPath_new)); $cPath_new_fix = "cPath=" . $cPath_myNewPath[count($cPath_myNewPath)-1]; $buildtext = ' <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new_fix, 'NONSSL') . '" class="menucateg"><b>' . ' ' . tep_image(DIR_WS_IMAGES . 'cat_arrow_right.gif', '') . $categories['categories_name']; Hope that helps. I did not submit a contribution fix for this. -DA
  2. DeathAdder

    [Contribution] Show Sub-categories

    I am also having the same problem as outlined above. I did search the forums to try and find an answer. Perhaps this contrib has become outdated, but I am using it in my store and have noticed the same behavior mentioned in the quoted text. Anyone have any ideas? -S
  3. Hello everyone. I have an odditiy I would like to discuss. I originally installed: http://addons.oscommerce.com/info/888 QT Pro v4.3 for OSC v2.2 RC1 kcobler 5 Nov 2007 In this release, and all releases up to "qtpro 4 osC2.2rc2a Andyy 19 Mar 2008" contain the following: 14-11-05 - Fix to properly save all missing att lists from orders_products.products_stock_attributes mod was by Si - scranmer@consultant.com or simon@ibridge.co.uk //**si** 14-11-05 fix missing att list //**si** 14-11-05 end These tiems were found in the checkout_process.php file Now, in Andyy's release (mentioned above) and the releases later by Olof Larsson do not contain these entries. Was this intentional? What are these for? Are they still required? I'm attempting to do a diffmerge (beyond compare really) to update my installation of the QTPro mod to the latest and greatest, however, I discovered these differences which caused some concern and thought I should bring it up here. Thanks, - DeathAdder
  4. I believe I just answered my own question regarding the "all stock report" and the draw back on the front end store. I changed my 'Product Info Attribute Display Plugin' to 'sequenced_dropdown' and it no longer displays those options in the dropdown with a 0 stock level. On that note: It would still be nice to be able to get this report to work as previously descripbed without having to add the option(0) to the product....? -Steve (DeathAdder)
  5. All- I'm working on a "All Stock" report. Which will return all products and thier current stock levels. Pretty simple actually - I just took the stats_low_stock.php found in the contrib and removed the section that checks if the product is below the stock low count. However, I noticed, that while this report works as expected, it only includes those options that actually have stock. IE: I have a product with a size option small (5), medium (0), large (1). When the report is run, it returns results for small and large and omits the medium option b/c it's not part of the products_stock table. The work around, add medium (0) to the stock of the product - this cases a draw back however, now in the store, the option medium is available in the drop down/radio buttons even though the stock count is zero. I would like this report to be able to grab all options from a product, and if that option doesn't have a stock level, to still report it, but as zero - this way the report includes all options possible, but at the same time, doesn't "screw up" the front end store. If anyone can help me with this, I would be very thankful. PM me and I can send you the report. Thanks... Steve (DeathAdder)
  6. Simple little change... Updated the link for "Back to Products Category" at the bottom of the Products Stock page. Previously, using this link would return you back to the begining of the categories.php page (root catalog)... I thought it better if this link return you to the previous category level you were at prior to clicking the stock button. IE: Catagory\Lvl1\lvl2\lvl3 - Clicking link would return you to Lvl1, now, clicking the link will return you to lvl3 or whatever lvl the product was located when you clicked the stock button... Included: Just a text file with the required changes - NOT A FULL PACKAGE File: catalog\admin\categories.php Search For: tep_href_link("stock.php", 'product_id=' . $pInfo->products_id) . '">' Change To: tep_href_link("stock.php", 'cPath=' . $cPath . '&product_id=' . $pInfo->products_id) . '">' File: catalog\admin\stock.php Search For: <a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">Back to Products Category</a> Change To: <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $VARS['cPath'], 'NONSSL') . '" class="menuBoxContentLink">Back to Products Category</a> Search For: echo "<td class=dataTableHeadingRow><input type=text name=quantity size=4 value=\"" . $db_quantity . "\"><input type=hidden name=product_id value=\"" . $VARS['product_id'] . "\"> Change To: echo "<td class=dataTableHeadingRow><input type=text name=quantity size=4 value=\"" . $db_quantity . "\"><input type=hidden name=cPath value=\"" . $VARS['cPath'] . "\"><input type=hidden name=product_id value=\"" . $VARS['product_id'] . "\">
  7. Notification of a small modification to links_featured.php My web host is using MySql v4.0.25 - The 'ON DUPLICATE KEY UPDATE' Sql syntax is not available in versions of MySql prior to 4.1.0. This version should work with all MySql versions 4.0.25 and higher... 2 Changes: Modifications to the SQL query to support older versions of MySql (Versions prior to 4.1.0). Added to the Featured Links drop down, the links Experation date (simple display) next to the name of the featured link. This zip only contains an instructional text file with the required changes. Only one file is changed for this catalogadmininks_featured.php I included this file as well. NOT A COMPLETE PACKAGE http://www.oscommerce.com/community/contributions,1256 - DeathAdder
  8. Hey guys... I didn't like the way the admin/product_attributes.php page was displaying. So i've done a handful of reformatting, offering "tabs" for - options/values/attributes... however I'm running into some complications with the insert/edit/delete buttons... if anyone is interested in checking out what I've done and assisting in the remaining problems, shoot me a message and I'll send ya what I got. I really think it will make using this contrib a lot easier... -DeathAdder (Steve)
  9. I believe the section of code causing my imaging problem is below found in admin/catagories.php: <?php // ACA START DISPLAY IMAGE (folder path removed from this line as included now in $products_image_name. Original line commented out)) if ($products_modules->image_handler == '') $products_image_name2 = DIR_WS_CATALOG_IMAGES . $products_image_name; else $products_image_name2=$products_image_name; echo tep_image($products_image_name2, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->products_description; //echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->products_description; // ACA END DISPLAY IMAGE ?> </td>
  10. v2.4 2nd Ed solved the error I was getting in the admin section, however my image problem is still there. I noticed that if I edit a product and then click preview, it works no problem, however if I drill through the catagories and click on the product itself, which takes you to a product preview, it's broken. Looking into it now. -DeathAdder (Steve)
  11. Hey guys.. trying to get a little help, maybe you have the answer... I did search the forums and was unable to find what I was looking for. I'm getting the following error in the admin side.. right after I add a product or preview a product: Warning: Missing argument 2 for display_preview() in /www/xxx.yyy.com/admin/includes/classes/products.php on line 215 This warning appears right at the top in the admin side during a product preview... I believe it's being caused by ACA 2.4, it doesn't seem to affect the addition of the product. One other thing I'm having a problem with, same section, product preview, the product image (admin side only) is broken. Looking at the properties of the product image, typically it would be something like: image = "http://xxx.yyy.com/images/image.jpg" However, mine looks like this: image = "http://xxx.yyy.com/images//images/image.jpg" I don't recall this problem prior to installing ACA 2.4. Any help would be great... thanks.... - DeathAdder (Steve)