Jump to content

dreamscape

Members
  • Content count

    1,499
  • Joined

  • Last visited

Everything posted by dreamscape

  1. dreamscape

    MOECTOE Suite public BETA 1 Support

    the browser cannot see the PHP code. It just sees the output of the code. You have to open the page with the error, and then view the source from the browser and look at line 127 of that.
  2. dreamscape

    [Contribution] Login Page a la Amazon

    a nice little mod. One suggestion I would have is, use a little javascript so if the user starts typing in the password field (tabs to it, or points the mouse there and starts typing, etc), the radio button by "I have a password" is auto-selected.
  3. dreamscape

    [Contribution] Dynamic MoPics

    well I would resize them with a graphics application so they look nice, but hey that is just me ;) anyways, Admin -> Configuration -> Images: Small Image Width & Small Image Height sets up the constraints for thumbnails... I generally leave the 2 fields blank and use a graphic application to resize the thumbnails to the size I want.
  4. dreamscape

    [Contribution] Dynamic MoPics

    I do not have the popup file in front of me at the moment, but in popup_image.php is where it is echoed... you can tell because it says something like "// uncomment to see path" followed by the line that spits the path out. In later versions I uncommented it by default so people could see the path it was trying to use. So just comment it out again with "//".
  5. dreamscape

    [Contribution] Dynamic MoPics

    that has already been answered in this thread numerous times. once again, there is a problem with search engine friendly URLS where the $_GET does not work like it should. in the popup_image.php file, find all instanced of $_GET and replace with $HTTP_GET_VARS. Please read the existing replies rather than being "trigger happy" and reposting the same problem that has been asked and answered a number of times in this thread alone.
  6. dreamscape

    [Contribution] Dynamic MoPics

    nextwave, I see you are using popup_add_images.php to display the larger images and from the way the URL is structured, it looks like it is another multi-image contrib and not dynamic mopics.
  7. dreamscape

    Faster Page Loads

    well as this contribution is, it writes all of the configuration information to the cache file. It only updates the cache though on configuration.php and not modules.php (both of which modify the configuration in the database). Personally I do not modify configuration or installed modules on our live store very often either. But on the local development install, I quite often do play around with both. I was a bit confused at 1st when I tried to install a new payment module and it did not take, but then realized the cache needed to be updated on the modules.php page as well.
  8. dreamscape

    Faster Page Loads

    the code to write the file should also be placed in admin/modules.php under the installing, removing, & saving areas.
  9. dreamscape

    moectoe won't work on my client's pc

    it stands for Manual Order Entry, Customer Tools, & Order Editing Suite. It is only in Beta 1 and there is much more planned for the future. Hopefully I can get Beta 2 out soon.
  10. dreamscape

    MOECTOE Suite public BETA 1 Support

    yes IE 5+ windows does not recognize CSS table-row as a display value. If you go back to page 1 of this thread, there is a pretty long post of javascript code that fixes IE windows problem until I can get the next version released.
  11. dreamscape

    Manual Point-of-Sale Contribution

    Thats actually a step backwards. osCommerce used to allow hidden categories, but it had such a bad impact on the performance of the cart, that it was removed. Not that you don't have a good idea, but I don't think using hidden categories is a good way to go.
  12. the problem is not with authorize.net it is with checkout_process. it processes the payment module before_process() (which direct connection modules use to send payment info) before it processes the order_total modules (so any ot_modules besides the standard subtotal, tax, shipping, & total will not be processed prior to sending payment information). ok actually the authorize.net AIM module places a call to authorize_direct.php; however that placing is based on the location of the call to before_process() (which other modules use to direct connect), which is logically incorrect. And actually if you want to get right to it, the contents of authorize_direct should be inside the authorize AIM module's before_process() function. Otherwise, an attempt to send the transaction data to auth.net is made everytime checkout_process is called.
  13. dreamscape

    MOECTOE Suite public BETA 1 Support

    it is resizable and has been resizable in every browser I have tested in. What browser/version are you running might I ask? EDIT: I see. instead of `resize=yes` it should be `resizable=yes`. the browsers I've tested in must have just graciously accepted `resize` and assumed I meant `resizable`. sorry about that.
  14. dreamscape

    MOECTOE Suite public BETA 1 Support

    Yes at the time I didn't even think of these type of situations. This WILL be in the next release (that I hope is soon) and also it will better support adding/editing multiple orders at one time. The main problem I see with just making a regular language pulldown is that both the entire admin & catalog portions included in MOECTOE (ie order total modules & shipping modules) would use the new language. The problem comes that we do not want all of the admin switched to the language for the order. We'd want it to stay the same and switch only at certain points. This could be addresses by holding the admin language in a temp value, and where necessary, switch to the new value (for the order), then after done needing it in the code, switch back to the temp value, so that the admin tool stays german in your example, but the order can be input as english. Again I hope to be able to get the next version out soon and it will address this (I wanted to get it out sooner, but at the time there were very few testers using this and I got little feedback, so I decided to keep BETA 1 going for a little while longer to see if I could get more feedback, and then got busy with other things that I haven't had time to get BETA 2 finished up.) Well the main thing here is, everything should be customizable. So if I were to put in a drop-down list of the installed payment modules to select from, you would not be able to customize the payment method. Also I can see some people accepting different payment methods over the phone than they would on their store-front. I thought about putting in a list of installed payment modules to select from that would update that field (similar to shipping); however, with the payment methods, there are no quotes to get, so it seems like a waste of space to me to do that. The payment method is only one line to type in (whether it is Money Order, COD, Credit Card, etc). Then if you put in "Credit Card", you will see additional fields for the cc info that can be stored in the database. The next version will allow for "credit card" to be the equivalent of "credit card" in the chosen language. I'm not really sure what you mean by "I can't choose other methods than CC."
  15. dreamscape

    MOECTOE Suite public BETA 1 Support

    Hello Michael, I'm sorry but BETA 1 is not programmed to be able to use a language for an order different from the current language of the admin tool. When you say everything but the product options is in English for US customers, I am a little confused. The name of the order total modules (subtotal, total) and shipping quotes should be in german as well, because they would be using the admin tool language as well. I want to thank you for reporting this though, as I actually did not think that someone may want to enter an order in a language different from either the default language or current language of the admin tool (I thought to add support for multiple currencies but not language). Hey but that is what betas are for: finding and fixing errors. I will be sure to include support for an order language different from the language of the admin tool in BETA 2. In the meantime, a work-around is to change the admin tool's language to english if you need an order entered in english.
  16. dreamscape

    MOECTOE Suite public BETA 1 Support

    hello Michael, for the time being I would suggest going to the MOECTOE configuration and turning off ot_tax. the tax is not fully functional, so until I can get it so, I'd reccomend just turning tax off for MOECTOE and using the custom OT fields if you need to add tax to an order (existing order, tax will remain intact). for the size of the popup, I just guessed a decent width based on the products & categories in a default OSC install. Anyways to change it, open admin/moectoe_edit_order.php and around line 426 find this in the javascript (or just search for it in the file): function openWindow(file, windowName) { msgWindow = window.open(file, windowName,'top=250,left=250,width=550,height=400,location=no,status=yes,toolbar=no,resi ze=yes'); if (!msgWindow.opener) msgWindow.opener = self; } the width=550 sets the width. BTW, it is resizable, or should be as the resize option is set to yes (meaning allow popup to be resized). In future versions though, I will take the size too small into consideration and quite possibly allow the width & height to be defined in the configuration.
  17. dreamscape

    MOECTOE Suite public BETA 1 Support

    this doesn't really make sense. You did not alter anything until line 24 or so. Would it be possible for you to post your full configuration.php or pm it to me?
  18. dreamscape

    MOECTOE Suite public BETA 1 Support

    hello Doris. Can you please post the full PHP parse error you are getting?
  19. dreamscape

    MOECTOE Suite public BETA 1 Support

    ok, I've found the problem with IE6. It seems IE for windows does not yet support the display: table-row; property. IE5 for Mac does, so I had assumed its windows counterpart would as well... but I was wrong. Ok I have fixed the javascript for IE for windows and it will be fixed in BETA 2, but I really have no idea when that will come, as I am busy with other things, so BETA 2 has been delayed for awhile. However, I do want to get a fix to all BETA 1 users, so here it is. In admin/moectoe_edit_order.php, replace the javascript with this (inlcuding all JS to avoid confusion as to what to replace): <script language="javascript" src="includes/general.js"></script> <script language="javascript" type="text/javascript"><!-- function update_customer_zone(theForm) { var NumState = theForm.update_customer_zone_id.options.length; var SelectedCountry = ''; while(NumState > 0) { NumState--; theForm.update_customer_zone_id.options[NumState] = null; } SelectedCountry = theForm.update_customer_country_id.options[theForm.update_customer_country_id.selectedIndex].value; <?php echo moectoe_js_zone_list('SelectedCountry', 'theForm', 'update_customer_zone_id', 'customerStateInput', 'customerStateMenu'); ?> } function update_delivery_zone(theForm) { var NumState = theForm.update_delivery_zone_id.options.length; var SelectedCountry = ''; while(NumState > 0) { NumState--; theForm.update_delivery_zone_id.options[NumState] = null; } SelectedCountry = theForm.update_delivery_country_id.options[theForm.update_delivery_country_id.selectedIndex].value; <?php echo moectoe_js_zone_list('SelectedCountry', 'theForm', 'update_delivery_zone_id', 'deliveryStateInput', 'deliveryStateMenu'); ?> } function update_billing_zone(theForm) { var NumState = theForm.update_billing_zone_id.options.length; var SelectedCountry = ''; while(NumState > 0) { NumState--; theForm.update_billing_zone_id.options[NumState] = null; } SelectedCountry = theForm.update_billing_country_id.options[theForm.update_billing_country_id.selectedIndex].value; <?php echo moectoe_js_zone_list('SelectedCountry', 'theForm', 'update_billing_zone_id', 'billingStateInput', 'billingStateMenu'); ?> } function openWindow(file, windowName) { msgWindow = window.open(file, windowName,'top=250,left=250,width=550,height=400,location=no,status=yes,toolbar=no,resi ze=yes'); if (!msgWindow.opener) msgWindow.opener = self; } function myName() { window.name = 'manualEntry'; } function selectRowEffect(object, buttonSelect) { if (document.edit_order.select_shipping[0]) { document.edit_order.select_shipping[buttonSelect].checked=true; } else { document.edit_order.select_shipping.checked=true; } } function rowOverEffect(object) { object.className = 'dataTableRowSelected'; } function rowOutEffect(object, oldClass) { object.className = oldClass; } function setVisibility(ID, checkID) { if (document.getElementById) { // gecko(NN6); IE5+ var obj = document.getElementById(ID); if (checkID.checked) { obj.style.visibility = "visible"; } else { obj.style.visibility = "hidden"; } } else if (document.all) { // IE4 if (checkID.checked) { document.all[ID].style.visibility = "visible"; } else { document.all[ID].style.visibility = "hidden"; } } else if (document.layers) { // NN4+ if (checkID.checked) { document.layers[ID].visibility = "show"; } else { document.layers[ID].visibility = "hide"; } } } function setAddressVisibility(ID, checkID) { if (document.getElementById) { // gecko(NN6) + IE 5+ var obj = document.getElementById(ID); if (checkID.checked) { obj.style.visibility = "hidden"; obj.style.display = "none"; } else { obj.style.visibility = "visible"; try { obj.style.display = "table-row"; } catch(e) { obj.style.display = "inline"; } } } else if (document.all) { // IE4 if (checkID.checked) { document.all[ID].style.visibility = "hidden"; document.all[ID].style.display = "none"; } else { document.all[ID].style.visibility = "visible"; document.all[ID].style.display = "inline"; } } else if (document.layers) { // NN4+ if (checkID.checked) { document.layers[ID].visibility = "hide"; document.layers[ID].display = "none"; } else { document.layers[ID].visibility = "show"; document.layers[ID].display = "inline"; } } } function setStateVisibility(ID, vis, ID2) { if (document.getElementById) { // gecko(NN6) + IE 5+ var obj = document.getElementById(ID); var obj2 = document.getElementById(ID2); if (vis == "hidden") { obj.style.visibility = "hidden"; obj.style.display = "none"; obj2.style.visibility = "visible"; obj2.style.display = "inline"; } else { obj.style.visibility = "visible"; obj.style.display = "inline"; obj2.style.visibility = "hidden"; obj2.style.display = "none"; } } else if (document.all) { // IE 4 if (vis == "hidden") { document.all[ID].style.visibility = "hidden"; document.all[ID].style.display = "none"; document.all[ID2].style.visibility = "visible"; document.all[ID2].style.display = "inline"; } else { document.all[ID].style.visibility = "visible"; document.all[ID].style.display = "inline"; document.all[ID2].style.visibility = "hidden"; document.all[ID2].style.display = "none"; } } else if (document.layers) { // NN4+ if (vis == "hidden") { document.layers[ID].visibility = "hide"; document.layers[ID].display = "none"; document.layers[ID2].visibility = "show"; document.layers[ID2].display = "inline"; } else { document.layers[ID].visibility = "show"; document.layers[ID].display = "inline"; document.layers[ID2].visibility = "hide"; document.layers[ID2].display = "none"; } } } function setCustomOTVisibility(ID, vis, ID2) { var thisForm = document.edit_order; thisForm[ID+"[title]"].value = ''; thisForm[ID+"[value]"].value = ''; if (document.getElementById) { // gecko(NN6) + IE 5+ var obj = document.getElementById(ID); var obj2 = document.getElementById(ID2); if (vis == "hidden") { obj.style.visibility = "hidden"; obj.style.display = "none"; obj2.style.visibility = "visible"; obj2.style.display = "inline"; } else { try { obj.style.display = "table-row"; } catch(e) { obj.style.display = "inline"; } obj.style.visibility = "visible"; obj2.style.visibility = "hidden"; obj2.style.display = "none"; } } else if (document.all) { // IE 4 if (vis == "hidden") { document.all[ID].style.visibility = "hidden"; document.all[ID].style.display = "none"; document.all[ID2].style.visibility = "visible"; document.all[ID2].style.display = "inline"; } else { document.all[ID].style.visibility = "visible"; document.all[ID].style.display = "inline"; document.all[ID2].style.visibility = "hidden"; document.all[ID2].style.display = "none"; } } else if (document.layers) { // NN4+ if (vis == "hidden") { document.layers[ID].visibility = "hide"; document.layers[ID].display = "none"; document.layers[ID2].visibility = "show"; document.layers[ID2].display = "inline"; } else { document.layers[ID].visibility = "show"; document.layers[ID].display = "inline"; document.layers[ID2].visibility = "hide"; document.layers[ID2].display = "none"; } } } function setShipping(method) { var thisForm = document.edit_order; thisForm["update_totals[<?php echo $shippingKey; ?>][title]"].value = thisForm["update_shipping["+method+"][title]"].value; thisForm["update_totals[<?php echo $shippingKey; ?>][value]"].value = thisForm["update_shipping["+method+"][value]"].value; } //--></script> This should make the JS working correctly in IE for windows now.
  20. dreamscape

    MOECTOE Suite public BETA 1 Support

    That is because this sections is not functional yet. I commented the entire section out for BETA1. If you look in the code it says "to be implemented in BETA 2". I'm not sure I completely understand, but are you saying that they worked for english but are not working for spanish? Or they do not work at all (do not work for english or spanish)? What browser are you using?
  21. dreamscape

    MOECTOE Suite public BETA 1 Support

    Here is the fix for that error in configuration.php. I posted this in the announcement thread, but didn't re-post it here. Actually because the error was 1st posted there and should have been posted here. Ah well... anyways that code you pasted in configuration.php, replace with this: ? ? ? ?if ((isset($_POST['configuration'])) && ($_POST['configuration'] != '')) { ? ? ? ? ?while (list($key, $value) = each($_POST['configuration'])) { ? ? ? ? ? ?if (is_array($_POST['configuration'][$key])) $configuration_value = implode(", ", $_POST['configuration'][$key]); ? ? ? ? ?} ? ? ? ?} so that it now looks like this: ? ? ?case 'save': ? ? ? ?$configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']); ? ? ? ?$cID = tep_db_prepare_input($HTTP_GET_VARS['cID']); ? ? ? ?if ((isset($_POST['configuration'])) && ($_POST['configuration'] != '')) { ? ? ? ? ?while (list($key, $value) = each($_POST['configuration'])) { ? ? ? ? ? ?if (is_array($_POST['configuration'][$key])) $configuration_value = implode(", ", $_POST['configuration'][$key]); ? ? ? ? ?} ? ? ? ?}
  22. dreamscape

    MOECTOE Suite public BETA 1 Support

    This is already an included function. In fact, when "adding a new order", what you are actually doing is editing a blank order that was inserted into the database. In the contribution package you download, there is an "Extras" folder. In there are directions for adding 2 buttons to the admin to compliment this contribution. One is a button to add to the admin/customers.php page for creating new orders for existing customers from that page if you wish. The other is a button to add to admin/orders.php to send existing orders to the module for editing. ;) Using the button & code in the "Extras" folder, as mentioned above, you can edit the order and add the discounts to the order total section and it will alter the Grand Total. You could probably then use the regular admin/orders.php page to send the notification to the customer. Future versions of the MOECTOE Suite I plan to have an optional notification email in the order editing section similar to the one of the regular orders page. To withdraw the amount from the submitted CC, you would need to do this at your merchant account's virtual terminal. I do have plans to write an OSC admin virtual terminal for authorize.net, so one can easily do these types of things from within the OSC admin. I do not have a time frame for this, and I guess 1 to 2 months, but it could be longer as I am busy with many other projects. I will only be doing an authorize.net terminal but will be trying to do so in a way that it can easily be followed as an example for making terminals for other gateways that allow it (like ECHO for example).
  23. dreamscape

    [Contribution] Dynamic MoPics

    you do not upload the extra images through the osCommerce admin. If you want to do that, you'll be wanting the regular MoPics contribution. With my "Dynamic MoPics" contribution, you just upload the products main thumbnail via the admin. The extra images, you have to upload yourself via FTP or whatever. Some may think this is dumb, retarded, or counter-intuitive; but for some of us, it is a huge time saver especially when we have many images per product. It also allows for adding and removing of product images -days, weeks, months, or years later- on-the-fly without having to edit the product or alter anything in the database. Just add or remove the images to the server and they will automatically show up or stop showing up.
  24. dreamscape

    Buy Now Button?

    Hello Dec, We are using a custom featured products script to replace the "whats new" box on the front page. There are some featured product scripts available in the contributions. I think the "cieto Featured Products" has a "buy now" button: http://www.oscommerce.com/community/contributions,505
  25. dreamscape

    MOECTOE Suite public BETA 1 Support

    Hey Burt, This is already included in the "Extras" folder. There is a button & the code for that (button says "New Order"), as well as the code to place a button on the admin/orders.php page to edit the order with the mod (I used the update button for now since the edit one was already being used, but before final release I will probably make a "manual edit" button or something).
×