Jump to content
Latest News: (loading..)

homewetbar

Members
  • Content count

    680
  • Joined

  • Last visited

Everything posted by homewetbar

  1. Please post questions regarding the Quickly Update Product Stock contribution in this forum instead of on the contribution page. Contribution: http://www.oscommerce.com/community/contributions,558
  2. Thanks Jack. Second issue I've been encountering is the session table becomes huge, slowing down the site dramtically and backing up mysql processing. We're on a dedicated server with 4 quad processors 16 gb ram so the hardware is likely not the fault. The session table has grown to 20mb One thing we're trying is setting the session to something smaller like 4 hours and the cart cookie to 30 days. In basic testing this seems fine, but I'm worried about other variables I might not be aware of. Will this have any adverse effects?
  3. GREAT PLUGIN! I've been waiting for something like this for years. THANK YOU! :thumbsup: The css that comes with it is a little bit broken though. You should add this class: .sf-menu ul ul { top: 0; left: 100%; } and upgrade to the newest 1.11.1 jquery for touch support (2nd level devices won't work without that in the css I found) Here is my entire CSS so far, for anyone that is having trouble with the included css, never could get the arrows to work though: /*** ESSENTIAL STYLES ***/ .sf-menu, .sf-menu * { margin: 0; padding: 0; list-style: none; } .sf-menu li { position: relative; } .sf-menu ul { position: absolute; display: none; top: 100%; left: 0; z-index: 99; } .sf-menu > li { float: left; } .sf-menu li:hover > ul, .sf-menu li.sfHover > ul { display: block; } .sf-menu a { display: block; position: relative; } .sf-menu ul ul { top: 0; left: 100%; } /*** DEMO SKIN ***/ .sf-menu { float: left; margin-bottom: 1em; } .sf-menu ul { box-shadow: 2px 2px 6px rgba(0,0,0,.2); min-width: 12em; /* allow long menu items to determine submenu width */ *width: 12em; /* no auto sub width for IE7, see white-space comment below */ } .sf-menu a { border-left: 1px solid #fff; border-top: 1px solid #dFeEFF; /* fallback colour must use full shorthand */ border-top: 1px solid rgba(255,255,255,.5); padding: .75em 1em; text-decoration: none; zoom: 1; /* IE7 */ } .sf-menu a { color: #13a; } .sf-menu li { background: #BDD2FF; white-space: nowrap; /* no need for Supersubs plugin */ *white-space: normal; /* ...unless you support IE7 (let it wrap) */ -webkit-transition: background .2s; transition: background .2s; } .sf-menu ul li { background: #AABDE6; } .sf-menu ul ul li { background: #9AAEDB; } .sf-menu li:hover, .sf-menu li.sfHover { background: #CFDEFF; /* only transition out, not in */ -webkit-transition: none; transition: none; } /*** arrows (for all except IE7) **/ .sf-arrows .sf-with-ul { padding-right: 2.5em; *padding-right: 1em; /* no CSS arrows for IE7 (lack pseudo-elements) */ } /* styling for both css and generated arrows */ .sf-arrows .sf-with-ul:after { content: ''; position: absolute; top: 50%; right: 1em; margin-top: -3px; height: 0; width: 0; /* order of following 3 rules important for fallbacks to work */ border: 5px solid transparent; border-top-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */ border-top-color: rgba(255,255,255,.5); } .sf-arrows > li > .sf-with-ul:focus:after, .sf-arrows > li:hover > .sf-with-ul:after, .sf-arrows > .sfHover > .sf-with-ul:after { border-top-color: white; /* IE8 fallback colour */ } /* styling for right-facing arrows */ .sf-arrows ul .sf-with-ul:after { margin-top: -5px; margin-right: -3px; border-color: transparent; border-left-color: #dFeEFF; /* edit this to suit design (no rgba in IE8) */ border-left-color: rgba(255,255,255,.5); } .sf-arrows ul li > .sf-with-ul:focus:after, .sf-arrows ul li:hover > .sf-with-ul:after, .sf-arrows ul .sfHover > .sf-with-ul:after { border-left-color: white; }
  4. Thank you, this helped a lot, I would never have caught you have to change to $nest = 1 instead of $nest = 0 Slight change I had to make adding the class name to make it display the same as the others and not off to the side for ($nest = 1; $nest <= $GLOBALS['this_level']; $nest++) { //if you need extra links uncomment out the lines below $output .= '</ul></li>'; $output .=' <li class="current_0"><a href="products_new.php" class="current sf-with-ul">NEW</a></li> <li class="current_0"><a href="specials.php" class="current sf-with-ul">Sale</a></li> '; $output .= '</ul>';
  5. Old topic I know, but this has been an issue with oscommerce since the beginning. Been testing this for a few hours, seems like a pretty good solution. Flaw I see though is the cookie expiration does not update when you visit the site again when I view my cookies in Chrome. The session expiration in mysql seems to be renewing, but not the cookie expiration. So, no matter if you visit the site again your session (and cart) is going to be lost after 7 days. I'm thinking of setting the cookie to expire 10 years from now so it is essentially never expires to fix this problem. Any drawbacks to my solution that anyone sees?
  6. [Contribution] .htaccess Optimisation V1.0

    You have to have mod mod_expires AND mod_headers enabled on your server. Also you may have cut and pasted incorrectly. Contact your friendly google search or system admin for further assistance enabling these. :)
  7. [Contribution] .htaccess Optimisation V1.0

    Interesting little mod, for whatever reason google page speed likes this better than the code I was previously using, however yslow rates it the same. One correction I would suggest is fixing the syntax, here is the fixed syntax along with a few more elements included for caching: <IfModule mod_headers.c> <FilesMatch "\.(js|css|xml|gz)$"> Header append Vary Accept-Encoding </FilesMatch> </IfModule> <IfModule mod_expires.c> ExpiresActive on <FilesMatch "\.(ico|jpg|jpeg|png|gif|swf)$"> ExpiresDefault "access plus 30 days" </FilesMatch> <filesMatch "\.(css)$"> ExpiresDefault "access plus 5 days" </filesMatch> <filesMatch "\.(js)$"> ExpiresDefault "access plus 5 days" </filesMatch> <filesMatch "\\.(xml|txt)$"> ExpiresDefault "access plus 1 hour" </filesMatch> <filesMatch "\\.(html|htm|php)$"> ExpiresDefault "access plus 1 hour" </filesMatch> Header unset ETag FileETag None </IfModule>
  8. Support forum for Sort Products By Dropdown WHAT THIS CONTRIB DOES: This contribution allows you to sort the products in a category by multiple methods, by best sellers, products name, and by price. The best sellers are updated daily by cron job and you can set the number of days back to look at sales to base your best sellers on. The way sort by price and name is pretty straightforward, the way best sellers works is each order counts as one sale so if someone orders 50 of item (A) and item ( B ) is ordered 5 times but only 1 each time, item ( B ) will show 5 sales and item (A) will show only 1 so the one that was more popular with multiple people will be ranked higher -- item B. This can be changed by modifying the code in cron_update_bestsellers.php slightly if you wish to count by total number of items sold instead it is noted how to do so in the code.
  9. This contribution gives you powerful data on your past product sales and estimated coming sales in an easy to read format that can also be printed in Landscape mode. Estimated installation time: less than 5 minutes.
  10. Low Stock Report v2.0

    Please post your questions regarding the Low Stock Report v2.0 contribution here. WHATS NEW IN 2.0? ------------------------- NEW FEATURES: * It now shows you your sales on this item in the last 30 days so you can really know if this item is really selling or not * Estimated days stock, this is based off of the last 30 days of your sales, if you have 0 in stock it will display NA in red, if you have 15 days or less it will display the days in red, if you have no sales but stock it will display +30 Days. Pretty niffty ehh? Much more accurate. NOTE: It will only display items that need restocked that are at or below your restock level set in admin -> Stock, regardless of how many estimated days stock you have. This is because it has to execute a DB query for every item it estimates days of stock for so this is a way of limiting the queries to the most relevant items (item below restock levels). Maybe someone can further optimize my queries if they know how... This should be a hugely helpful addition to your store, thanks to all the other authors who wrote the previous versions and the people who wrote the stats products purchased contrib, these two contrib are which this code is based on. Regards, -Keith W.
  11. The purpose of this contribution is to allow you to cross-sell matching or coordinating products to customers for almost any use such as completing an outfit, other books in a series, color matching items, etc.... This is done by simply adding product SKUs (product ids) to the product page in admin in the following fashion SKU, SKU, SKU, etc. Then on the catalog product page 3 of these SKUs are randomly selected to display as "matching" cross-sell items if they are in stock, allowing you to increase your cross sells and not have to micro-manage them. Can be easily added to even the most modified of stores.
  12. NEW! Complete Order Editing Tool!

    FYI for everyone having errors with this contribution (excluding custom installs) use version 5.0.7 by surfalot. It fixed the errors I was having with version 5.0.9 and works great. The other versions since have had errors introduced into them.
  13. Support forum for Simple Price Break Contribution: http://www.oscommerce.com/community/contributions,4658 This contribution allow prices break for products based upon the number of units ordered.
  14. We're trying to share our product images across multiple domains www.mystore1.com www.mystore2.com www.mystore3.com. Any idea on how to do this? We would like the images all stored on the www.mystore1.com to appear to come from www.mystore2.com www.mystore3.com when the user visits those sites, but really just store one copy of the images on the server. We are using the multi-store contribution
  15. need and easy thumbnail add on

    Unless that contrib has been revised in a newer version I would advise against using that one. It causes the server to check for new thumbnails everytime someone visits a products page, a lot of hits on your server checking for new images if you have any traffic at all. In fact it causes so many queries it triggered our spam/anti-virus software on the server and locked down one of our sites about a year and a half ago. A better solution would be one that thumbnails them when you upload it in admin so you don't have the excessive queries over and over everytime someone visits a products page. Maybe someone that knows more than I can suggest a contribution that thumbnails in the admin instead of the catalog side?
  16. PayPal WPP Direct Payments & Express Checkout Support

    I'm trying to install this but I'm having a strange error. When I click on the pay with paypal button from the shopping cart it goes to paypal and has me login. Then it goes to the review your information page on paypal. Then when I click continue it shoots me back to our site to the shipping page. What is causing this? Surely this is not correct?
  17. Paypal which to use?

    We are considering adding Paypal Pro and Express to our sites. For those of you that have tried them before... Are the two Paypal Pro and Express contributions "certified" by Harald himself the best way to go written back in 2008? http://addons.oscommerce.com/info/5659 http://addons.oscommerce.com/info/5658 OR This one that was last updated in Apr 2010 by Dynamoeffects? PayPal Pro Direct Payments & Express Checkout http://addons.oscommerce.com/info/3647 Which functions better, has more features, and less errors?
  18. Paypal which to use?

    Surely someone has used one or both of this contributions? Any input on how well they function would be most appreciated! :rolleyes:
  19. OSCOM v3.0 Framework Optimized For PHP v5.3

    Thanks Harald, that clears it up quite a bit! One other small question regarding the product images. The current v2.2 stores all product images in the main images directory. We've found once you get into the hundreds or thousands of products that directory becomes quite heavy and takes a really long time to even display the contents when you have to ftp in to upload new images or make adjustments. Our solution has been to rewrite the code so all of the product images are stored in their own directory aside from the rest of the images, like this images/products . Not a huge issue, but I thought I'd share our experience with running a larger store so maybe a simple solution like this or a more advanced one of your creation may be included in v3.0?
  20. OSCOM v3.0 Framework Optimized For PHP v5.3

    Great to hear the 3.0 project is alive again! I'm really looking forward to seeing the advances you have made since v2.2. Question about the url structure you were discussing yesterday, you did not say what the products name was, so I do not fully understand how the url will be structured. I assume proper url SEO will be built into the core of v3.0 as url SEO is a must and very common today. As I understand it, a proper SEO url for a products such as "Bright Orange Shirt in Large" would be: www.yoursite.com/bright-orange-shirt-in-large.html OR www.yoursite.com/bright-orange-shirt-in-large It's unclear from your example, (A) will the SEFU create urls such as this, and (B) will the "oscommerce" be appended to every url? If (B) is true, I would really hope the oscommerce team would reconsider, as having oscommerce as the first keyword of each SEFU will severely hurt keyword ranking for urls, as the first and last words tend to carry a lot of weight on search engines. Further, it would also be great if the SEFU url was configurable to filter out short words like a, an, the, or words less than say 3 characters so the url was not cluttered up with words that had no SEO value or if you could enter your own SEO url if you so chose to for individual products. Thanks Harald!
  21. Finally! I found it. You just need to remove the products_status = '1' in seo_cache.php to make the inactive products show. Thanks for all of your help and the contribution!
  22. Ahh I see! So can you point me in the right direction as to what section or function of the seo urls it calls to find out the seo link?
  23. Hard to say, I reset the seo cache as you said, and since the seo urls is enabled I can enter-whatever-i-like as long as it ends in the p-sku#.html as long as your contribution is disabled and it will send me to the page. However since it is out of stock it is not linked to in the categories, the only way you can get to the product would be if you knew the products sku and entered it into the url or via some other page that linked in to it or a search engine, kind like amazon.com does with out of stock products. Does this mean seo urls does not generate a link in the cache for it, so your contribution cannot pick up on it since the url is not likely stored in the cache?
  24. One more thing, I think I have SEO URLS 2.0b because I don't have seo.class.php, it is all in my html_output.php instead. Could this be causing the issue since I don't have seo.class.php referenced in your code snipet below? If so how can I work around to have your contrib look at html_output.php instead of seo.class.php? if (strpos($linktest, '-') == 0) { // If the link returned by seo.class.php has no text mysite.com/-c-xxx.html four_o_four_die(); // Product/category does not exist so die here with a 404
  25. It has something to do with the contribution.... When disable this contribution and go to the out-of-stock products page, the page is displayed correctly, with an seo url, I get the following url: this-is-the-product-p-1052.html when I renable this contribution and go to the out-of-stock page I get redirected to 404 page So it's something about how the contribution looks at the product, it must be checking the product_status == 1 or == 0 variable some how either directly or indirectly via a function or class you are using because if I have this contribution enabled and change the status to in-stock it shows properly, out-of-stock it redirects (and when this contribution is disabled the product page shows correctly). Alternatively it could have something to do with how this contribution determines if it is a valid link... Any ideas?
×