Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by GLWalker

  1. I took the button group wrapper away from the "Back | New Category | New Product" buttons, I think it lays out a bit better and feel the space between buttons is really needed on an administration interface to avoid accidental clicks. Ive since updated the products_new area, and product_preview - still no actions on the product rows, its next. I have also added in 2 additional languages for demonstration of everything as a whole. New Product: http://bsadmin.wsfive.com/admin/categories.php?cPath=&action=new_product Edit Product: http://bsadmin.wsfive.com/admin/categories.php?cPath=21&pID=28&action=new_product Product Preview: http://bsadmin.wsfive.com/admin/categories.php?cPath=21&pID=28&action=new_product_preview demo demo1 I think it may need an additional set of save/cancel buttons elsewhere on the page - would be handy when editing existing products?
  2. The categories.php page is about 1/3rd done if anyone would like to check it out. Only the category listing area is formatted and all the actions that go along with categories. This page was a bit trickier than the configuration, but I believe I have it well underway. Feel free to edit and create any categories for testing.
  3. GLWalker

    Advanced TinyMCE

    This is the help thread for Advanced TinyMCE. Though it is not a true addon in the sense of what an addon is, I see a lot of users that wish to integrate a WYSIWYG editor into various places of their shop. I have went over a lot of places you can use this, and created the various functions and TinyMCE toolbars for use in each area. If you can think of another area to use it in, let the ideas flow. Please note that this implementation makes use of a CDN to serve the TinyMCE script to your website. If you feel the need to host the TinyMCE files yourself, upload them to your catalog/ext/ directory and change the path to the script within template_top(s). Addon found here: http://addons.oscommerce.com/info/9124
  4. GLWalker

    WS5 Wholesale Addon

    @@RMD27 Well its always good practice to go with the latest versions, as with osCommerce when there is a new version its not a bunch of fluff, but actually beneficial changes. If you have too much put into your existing site and wish not to upgrade, the code that is located in the content module can be ported over without toooo much hassle. Its basically the check for a wholesale id. You can compare the content module code to the similar code inside login.php on and see where the query should go. All other files that are modified are pretty much the same in any 2.3 version. You will run into one other hickup with the database tables and module setting though. You could convert everything to a header_tag module and install that way, or create a new group in the configuration table and import the configuration values there, and then manually dump the 2 new tables as well. Let me know which way you want to proceed so I can be of more help.
  5. @@Tsimi Thanks for feedback. It does seem that the sidebar does slide in a bit rough on mobile devices. Looks like it should also take the screen back to top of page as well. As for flot, it has to stay. I'm trying to keep everything as close to the default build, changing only what is needed for the theme. Now that Ive got everything wrapped in the theme and the configuration page working smoothly, I can move on to the other 40 pages. I do have current changes committed to github branch @ https://github.com/GLWalker/oscommerce2-bs-admin Before committing I weeded through the files that compromise the actual theme/template and corrected all HTML indention so that it renders perfectly balanced - with the exception of dashboard modules - thought it a bit anal retentive to add extra indention to the html on each module just for that.
  6. @@altoid Thanks for the feedback - thus far I have only been able to see it on a Mac and iPhone. I notice when resizing the screen that sometimes the flot charts text overflows, generally fixed with a refresh. Maybe I need to nest them in an additional wrapper. For everyone else - the primary page that I need input on is anything in the configuration menu, minus store_logo and admin. This is what I would like solid input on before continuing on, as that will be the basis of many, many, many pages.
  7. So in keeping with the community build, I have started on an initial admin makeover using the latest bootstrap, and the 23 Github branch, based on 2.3.4 It is an offcanvas layout, which makes viewing on small devices relatively painless, though we all know it is impractical to manage a shop and anything smaller than a tablet, there are those times you need a quick view. So far only a few files that must be changed to achieve the admins new look have been edited: template_top.php template_bottom.php header.php footer.php column_left.php New File: admin/ext/stylesheet.css In addition to those files, these have been modified to reflect how the overall theme will look and perform: index.php configuration.php login.php includes/functions/html_output.php includes/functions/general.php All dashboard modules The theme is based on Bootstrap but custom styles so not as to look like the blah blah basic BS. In creating the theme I kept in mind the history of the osCommerce admin - Simply header/footer - functional left column - those gray an blue shades! Changes I would like feedback on before moving to other pages: Overall rendering in different devices and OS systems. The new method of editing/viewing info as seen in configuration.php - I have bypassed the box class in favor of simply opening a new row where all actions may be carried out. The info previously loaded into the box still only loads once per row selected and only for that row selected. One main reason for removing the right box was for room on smaller devices. An online version is located here: http://bsadmin.wsfive.com/admin/login.php User: demo Pass: demo1 I will upload the changes to GIT as soon as I figure out how to make a branch of my fork.
  8. GLWalker

    Convert ADMIN Addons from 2.2x to 2.3.x

    Why not try pasting the content of the stylesheet inside the admins existing stylesheet, at the bottom?
  9. @@burt I agree with Jim - how about a new thread to work with to keep things clearer.
  10. GLWalker

    WS5 Wholesale Addon

    @@29gk As Gary mentioned, it is written for 2.3.4. It sounds like your going to reinstall 2.3.4 do you shouldn't have any issues on a fresh install. Please post if you do.
  11. Dreamed I rebuilt the affiliate system as a seperate application that linked VIA header_tags system. WTF?

    1. GLWalker


      Actually, yes I was. Horrible nights sleep. Laptop was warm too, but cant figure out why everything was wet.

    2. Mort-lemur


      You really need to get out more..... :)

    3. joli1811


      Guess that Texan beer was strong that night

    4. Show next comments  12 more
  12. I think Tsimi changes avatars more than underwear.

    1. Dan Cole

      Dan Cole

      He changes his underwear?

    2. Tsimi


      hahaha...:lol: you really mentioned that? the avatar thing i mean and not the underwear thing.

    3. Tsimi


      ....and changed again....:P


    4. Show next comments  12 more
  13. GLWalker

    using tep_remove_order

    I told you how to do it properly. Don't know why you would want to go about it wrong. But hey, what do I know, lets just pull all kinds of files from the admin and replicate and override existing classes the site needs to run properly. Go for it!
  14. GLWalker

    using tep_remove_order

    I'm not sure what your trying to do, but the easiest thing would be to copy that function as found in the admin into the catalog side, probably paste it into catalog/includes/functions/general.php ~ however, if the function has any dependencies of other classes or functions found only in the admin, you will have to port them over to the catalog side as well.
  15. GLWalker

    WS5 Wholesale Addon

    The above code has a small flaw. in checkout_shipping.php : /* WS5 Wholesale - skip free shipping */ if (tep_session_is_registered('wholesale_customers_id')) { $free_shipping = false; } else { $free_shipping = true; } /* end WS5 Wholesale */ Should be: /* WS5 Wholesale - skip free shipping */ if (tep_session_is_registered('wholesale_customers_id')) { $free_shipping = false; } /* end WS5 Wholesale */ In case of @@xChrysalisx set up, it would work as it was, but if one wants to charge shipping to retail customers, then they need to use the updated snippet above. Otherwise the free shipping will always be triggered for retail. @@xChrysalisx I still recommend changing yours to the above snippet in case you start charging retail shipping in the future. Its too easy to forget making small changes then wondering why something doesn't work later :)
  16. GLWalker

    WS5 Wholesale Addon

    Sorry for the delay. Ive checked out how your setup on my local, and this is what I came up with. Set up your flat rate shipping quote for any price you want (in fact I think you could also switch to table or any other method in the future) Next - set up your free shipping order_total module to allow free shipping for 0.00 in your case. Now open checkout_shipping.php; around line 101 find: // process the selected shipping method if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') && isset($HTTP_POST_VARS['formid']) && ($HTTP_POST_VARS['formid'] == $sessiontoken) ) { Above that add: /* WS5 Wholesale - skip free shipping */ if (tep_session_is_registered('wholesale_customers_id')) { $free_shipping = false; } else { $free_shipping = true; } /* end WS5 Wholesale */ Next open includes/modules/order_total/shipping.php and around line 40 find: if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) { $order->info['shipping_method'] = FREE_SHIPPING_TITLE; $order->info['total'] -= $order->info['shipping_cost']; $order->info['shipping_cost'] = 0; } Replace with this: /* WS5 Wholesale - skip free shipping */ if (!tep_session_is_registered('wholesale_customers_id')) { if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) { $order->info['shipping_method'] = FREE_SHIPPING_TITLE; $order->info['total'] -= $order->info['shipping_cost']; $order->info['shipping_cost'] = 0; } } /* end WS5 Wholesale */ The change in checkout_shipping.php file will set the free shipping quotes to false if logged in as a wholesale customer. The order_total module change will keep the free shipping quote from triggering on the checkout confirmation page. This should work for any store that does not want to give out free shipping VIA order_total module.
  17. GLWalker

    WS5 Wholesale Addon

    Thanks for your feedback. I set a new weight option to help deal with different shipping cost. Having free for retail and a price for wholesale could be worked out a few different ways, a lot depends on how you currently are set up to offer the retail free price. Using the wholesale session is the key though, if it exist - do this, if not then default action. It does make me think that many selling in bulk may also not want to offer free shipping for orders over a set amount that retail orders enjoy, so that would be a fairly straightforward change in checkout_shipping, looking for a wholesale session. Helpful snippets for varoius procedures that do not fall too far outside the boundaries of a default set up would be good to post here. Leave more details about how you are currently setup and we'll see what can be done.
  18. New wholesale addon uploaded. Takes advantage of content module system - though that part is actually pretty minimal :) http://addons.oscommerce.com/info/9086

  19. 2.3.4 - What can I say? It's great!

  20. @@burt /*http://pastebin.com/tyQ663Yf*/ Perfect.
  21. @@burt Tested on local, looks as your screenshot does, performs as expected. Just need the whole row to select the radio when when clicked. I think I pasted some code for the shipping and payment method tables somewhere a zillion pages back in this thread. I'll have to see if I can find it. I think that's about the time you said we were not going back to tables, though we are dealing with tabular data. (w00t)
  22. You could probably rip the mobile recognition out of the osc mobile build that has been around for a while now, and use that to redirect to your other folder, or just find another mobile detection script that is available, Ive seen lots of them in the past before responsive frameworks became popular. But you already know you'll need to make any contribution changes to the bootstrap version as you did your main site, especially if its a mod that involves certain keys being present in the database. Why not use a compare program and merge your current work into the bootstrap version? Theres nothing changed in the admin, so you'll be in good shape with your old one.
  23. I got the gout

    1. Dan Cole

      Dan Cole

      What did you name him?