Jump to content

my3sons

Members
  • Content count

    24
  • Joined

  • Last visited

  1. my3sons

    Shadowbox For Product_Info.php

    I didn't want the Shadowbox images just dumped into the /images directory so I moved them to images/shadowbox/ and edited src/js/shadowbox.js and src/css/shadowbox.css to reflect the new directory. I use images from suppliers and need to clear them out from time to time. There were two instances in shadowbox.js and one in shadowbox.css. Pretty easy. So far, so good.
  2. my3sons

    Shadowbox For Product_Info.php

    Just an FYI to others having a problem with IE7 and layout... Instead of using <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> which caused layout problems in my store, but was needed for shadowbox to work with IE7 I used... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> now Shadowbox works with IE6,7, Firefox and Safari and my layout is the same as before.
  3. Using PWA 1.2.5 I noticed that when checking out using PWA, "Logoff" and "My Account" still showed in the breadcrumb trail. If I clicked on My Account, it showed every purchase made using PWA. They would be other people's orders with their order details. Not good. If I then clicked "Show all orders" it would show every order made using PWA. So I edited /includes/header.php so that if PWA was selected, "My Account" would not show, and "Logoff" would be changed to "End Session". Some customers were wondering how it was possible to log off if they had not created an account in the first place. End Session seems more reasonable if using PWA. The "End Session" can be changed to whatever you want. It probably should be a variable declared in english.php, but I have multiple shops to update and this was easier for me. I am not a php pro, so if you find errors, let me know as I'd like the fix myself. I'm using a heavily modified 2.2MS2. I wanted to post this code in case someone else needed it. In /includes/header.php Find <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> Replace with <td align="right" class="headerNavigation"> <?php if (tep_session_is_registered('pwa_array_customer')) { ?> <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo 'End Session'; ?> </a> | <?php } elseif (tep_session_is_registered('customer_id')) { ?> <a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?> </a> | <?php } ?> <?php if (tep_session_is_registered('pwa_array_customer')){}else { ?> <a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?> </a> | <?php } ?> <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?> </a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?> </a> </td>
  4. Ok, I tried stripping the INSERT INTO table_categories_descriptions at about line 2300 back to the older pre-language selection code. That helped by at least writing to that table, but it was writing the language_id in as 0 instead of 1. I only use English. When I edited the 0 to a 1 on a product, it would show the category. So I hacked in a line $epdlanguage_id = "1"; to force it to use a 1. It is working now, but it is a kludge.
  5. I should add... CentOS Linux, Mysql 4.1, register globals ON, PHP 4.3.9, dedicated server.
  6. Would anyone know why my categories are not being created? Easy Populate 2.76e-MS2 (with attributes) r1 If I manually create them in the admin, then the products go into the correct categories. At this point, if I make a complete download, the categories show up in the csv. Now if I truncate all the products and categories tables, and reupload the same file, the products will go in but it will not create the categories. If I look at the tables, the categories table has data, but the categories_descriptions is empty and that must be the problem. It does not throw any errors when uploading, and finishes like it went ok. but the categories didn't make it once again. Ideas? Thanks!
  7. my3sons

    Who's Online Enhancement 1.4

    I am also getting "Warning: gethostbyaddr(): Address is not a valid IPv4 or IPv6 address in /admin/whos_online.php on line 401 It doesn't always give the error. It cleared up after a few hours, so whomever was on that was apparently causing this must have left.
  8. Find this code in /admin/includes/functions/general.php and delete it or comment it out with a /* at the beginning and a */ at the end. As the error says, it is now in the /admin/whos_online.php file and cannot be declared twice. Since I would guess future updates will keep it in the who_online.php file, it is probably best to remove or comment it out of the general.php since in the older versions it had to be added to this file. function tep_get_ip_address() { if (isset($_SERVER)) { if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } elseif (isset($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } else { $ip = $_SERVER['REMOTE_ADDR']; } } else { if (getenv('HTTP_X_FORWARDED_FOR')) { $ip = getenv('HTTP_X_FORWARDED_FOR'); } elseif (getenv('HTTP_CLIENT_IP')) { $ip = getenv('HTTP_CLIENT_IP'); } else { $ip = getenv('REMOTE_ADDR'); } } return $ip; }
  9. my3sons

    SiteMonitor

    Is this safe? Without doing this I get an openbase dir error, but I'm a bit concerned about 777ing the admin directory. Thanks... very nice and simple contrib.
  10. my3sons

    fast easy checkout

    Disregard my above question, as I decided to go with PWA for now. But I do think the addition, or ability to add the comment box on the combined checkout page would be a good idea. Very nice contrib, though. Many things I like better than PWA. I will be keeping an eye on it. :thumbsup:
  11. my3sons

    fast easy checkout

    Does anyone know if it would be possible to add an Order Comment box to checkout_shipping.php? I compared the code and it is so different I wouldn't know where to start. I need a comment box for certain orders. Thanks!
  12. my3sons

    fast easy checkout

    Ok, I figured out the "Get New Total" box color. It is in checkout_shipping.php where it calls infoBox at line 398. I made it call info2Box, then in stylesheet.css I copied infoBox and created an info2Box with the color I wanted.
  13. my3sons

    fast easy checkout

    So far so good. It installed nice and seems to be playing nice on my dev. My question is how do I change the color of the "Get New Total" box that appears after hitting the button on checkout_shipping.php? Since it seems to be using the box colors, I can't see the text very well as it ends up being a dark blue box with black text.. I suppose it would be a css change, but I'm fairly clueless there. I wouldn't have a problem hard coding the color either. Any ideas?
  14. my3sons

    Official PayPal IPN Support Thread

    Good question. Anyone?
  15. my3sons

    Attribute Sets Plus

    Chris, Thank you so much for this very nice upgrade to At Sets. It does fix many issues and is much easier to use. I agree that the ability to add an item to an existing set would be great. Your bug fix for existing attributes does in fact work. I had a few very nervous hours as all attributes stopped working on over 1400 products. Yes, shame on me for not upgrading on my dev server, but I had database issues caused by a supposedly "Easy" contrib so I didn't. I also had the database issue that was posted about. I would like to suggest that you incorporate the attribute fix and relist it as a slightly newer revision. I think your install instructions were fine. I think Chemo set the standard for install instructions, but that does take time. Thanks again! Scott
×