Jump to content

mickeymouse

Members
  • Content count

    99
  • Joined

  • Last visited

Everything posted by mickeymouse

  1. mickeymouse

    [contribution] Simple Template System (sts)

    Anybody who wishes to add the "Customers Also Purchased" module and/or "Cross Sell" module to your product info pages (you have to have the cross sell contrib already installed to use that particular part) Just add the following to your sts_user_code.php file: //Begin Also Purchased Module $sts_block_name = 'alsopurchased'; require(STS_START_CAPTURE); if ( (USE_CACHE == 'true') && !SID) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } require(STS_STOP_CAPTURE); $template['alsopurchased'] = strip_unwanted_tags($sts_block['alsopurchased'], 'alsopurchased'); // End Also Purchased Module //Begin Cross Sell Module $sts_block_name = 'xsell'; require(STS_START_CAPTURE); if ( (USE_CACHE == 'true') && !SID) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS); } require(STS_STOP_CAPTURE); $template['xsell'] = strip_unwanted_tags($sts_block['xsell'], 'xsell'); // End Cross Sell Module You can then call the appropriate variables w/ $alsopurchased and $xsell appropriately. Another little note: if you have no "also purchased" products or "cross sell" products associated w/ your product id, nothing will be displayed in your product info page. Hope you find this a little useful!! :D
  2. Steve and all, Found the problem... Near the end of the line: IMAGE_ORDERS_DIFFERENT SHIPPING Should Be : IMAGE_ORDERS_DIFFERENT_SHIPPING Notice the underscore between different and shipping Greg
  3. mickeymouse

    [contribution] Simple Template System (sts)

    You need to edit your configure.php file. Download the one off your server prior to editing or you will crash your shop
  4. mickeymouse

    [contribution] Simple Template System (sts)

    Anne, As with any HTML document and stylesheets, your template will use whichever stylesheet you link it to. I would suggest adding any new styles you define into the standard OSC stylesheet. This would probably make your life a little simpler. This should all be possible. You will probably have to create/define the tags in the sts_user_code.php file then add them to your product info pages. Not 100% positive on this one though. Greg
  5. mickeymouse

    [contribution] Simple Template System (sts)

    Dan, STS shouldn't interfere w/ googlebots, however because all the page titles are the same, google most likely isn't indexing those pages because they are considered duplicates. I suggest adding Linda's header tag controller contribution. This way you can change all the page titles, descriptions, and meta tags then google and others should be able to index your pages correctly and you should also get better search engine placement Greg
  6. mickeymouse

    [contribution] Simple Template System (sts)

    Flip, I don't think you followed the readme file completely, also check the faq's on Brians site. You probably didn't modify your configure.php file therefore OSC doesn't know about the file. Don't copy over your configure file. Download it from your server and modify it accordingly then re-upload and you should be all set! hth Greg
  7. mickeymouse

    [contribution] Simple Template System (sts)

    You can't really turn it on and off. If you don't want anything to appear just delete everything in between the quotes.
  8. mickeymouse

    [contribution] Simple Template System (sts)

    Brian.. Here's a suggestion for future versions (maybe this can already be done and I'm just a bonehead and can't figure it out) It would be great to be able to define a top level category template (such as index.php_3.html) and then all subsequent subcats default to the same top level cat template as well as product info pages unless there are specific templates defined for each subcat and product info page. For example: from a stock OSC install. Define your default template (sts_template.html) Develop a template for DVD movies, then all subcats of DVD movies (action, comedy, ....) will all use the overall DVD movie template, and all products will also utilize the same basic structure keeping the standard OSC product info output the stock output. Ideally, I would like to be able to develop a different theme for each top level category without having to develop a template for each subcat and product to match the theme. I hope I explained myself well enough. Thanks again for a wonder contribution. This is great work!!! Greg
  9. mickeymouse

    [contribution] Simple Template System (sts)

    While I'm still beginning to learn this system (which btw, appears to be extremely nice.....great job Brian) several pages back I found an answer to this...Here's what I did to get things working correctly around line 51 just before the following: ///////////////////////////////////////////// // Allow the ability to turn on/off settings from the URL // Set values to 0 or 1 as needed ///////////////////////////////////////////// add these 2 lines: $scriptname = getenv('SCRIPT_NAME'); $scriptbasename = substr($scriptname, strrpos($scriptname, '/') + 1); It seems that w/ the last 2 updates, the base script name was not being defined. I added these and all appears to be working correctly hth. Greg
  10. mickeymouse

    [contribution] XPricesPerProduct

    2 Questions: 1 - Does the user have to be logged in to see the prices, or does this default a "guest" user to price 1? Thanks, Greg
  11. mickeymouse

    RMA Returns error for 2.2 MS2

    Found a minor problem in the admin section. The Total (ex) and Total (inc) seem to be multiplied by the quantity of the products returned. For example: Order total = $71.98 with a quantity of 2 of the same products being returned So in the admin when processing the return is showing Total (ex) = $143.96 Total (inc) = $143.96 I can't seem to locate the coding section in the jungle of code :unsure: that determines these numbers. Any help would be greatly appreciated! Thanks, Greg
  12. mickeymouse

    Problem with RMA Return contribution

    Here's a problem I just encounter. When refunding a payment via gift voucher, I'm gettng the following errer message: I've got the lates version of Ian's Gift Voucher mod installed. I would like to make these 2 mods play well with each other. In the returns.php file, I think if we ditch the random number generator, and have that portion call Ian's gv_send.php file and pass all appropriate variables, theoretically, it should work properly, writing all data to the correct tables, email, etc....Unfortunatelly, I haven't got a clue as to how to accomplish this as I'm no wiz in php like many of you here are. Any ideas or help would be greatly appreciated!! :o Thanks, Greg
  13. mickeymouse

    Problem with RMA Return contribution

    The line in account_history_info is actually: for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { around line 143
  14. You can check with Ian on this but to the best of my knowledge this contrib isn't compatible with snapshots newer than 5/19 Check this thread: http://forums.oscommerce.com/viewtopic.php...der=asc&start=0 Greg
  15. mickeymouse

    Problem with RMA Return contribution

    yep. It works...at least for me it is.
  16. What a great mod. Thank you so much Andrew for all the hard work you have put into it. Got a question regarding it. Is it possible to have the price break be based on the product id and not the quantity. For example, I have a custom candle business. If I have a price break set up for quantities of 2 or more and my customer orders the following: Product A - Fragrance A, qty=1 Product A - Fragrance B, qty=1 I would like the price break to be applied to the products. Right now it works fine if they order: Product A - Fragrance A, qty=2 Thanks for any help! Greg
  17. mickeymouse

    Qty Price Break Mod Question

    One other thing.. Anybody got this working with the Separate Pricing per Customer mod???
  18. mickeymouse

    Looking for contribution help

    Try this....It's totally admin controlled! http://www.oscommerce.com/community/contributions,334 Greg
  19. mickeymouse

    Prompt for user Input In Product?

    http://www.oscommerce.com/community/contributions,160
  20. David, What mods do you have installed? Greg
  21. Just thought of one more thing.........with regards to shipping charges of this item. The customer is paying shipping charges for this even though it is going into their "GV account". This shouldn't be as this is not being shipped anywhere. Is there a workaround for this?? Thanks, Greg
  22. Ian, Thanks so much for such a great mod. It's fantastic. Just 1 tiny issue. When a customer sends a gift voucher, the email arrives as it should, however the "automated" link for redemption doesn't work. The url is correct, just that the customers can't click on it from the email. Any ideas?? As I said...tiny issue! Thanks, Greg
  23. David, Try here: http://www.oscommerce.com/community/contributions,282
  24. mickeymouse

    Problem with RMA Return contribution

    OK Problem #2 solved. Still could use a little help with problem #1 Thanks, Greg
  25. mickeymouse

    Problem with RMA Return contribution

    Oopps, forgot one other thing. When I installed this mod, in the catalog's left column at the top, I'm seeing the following: "if ( (USE_CACHE == 'true') && !defined('SID')) { echo tep_cache_information_box(); } else { " How do I make that go away?? Thanks again Greg
×