Jump to content

ecartz

♥Ambassador
  • Content count

    3,582
  • Joined

  • Last visited

  • Days Won

    61

Everything posted by ecartz

  1. ecartz

    [Contribution] Ship In Cart

    It looks like it needs to have the $customer object created. $customer = new customer($customer_id); You may have to find a way to make it work with a fake customer ID when the customer is not logged in. Possibly would require shipto and billto to be stored in the session (as arrays of information).
  2. ecartz

    SMTP with authentication on Phoenix 1.0.5.0

    You might post what code used to need to be changed. Because I don't think that things have changed that significantly. You may just need to have it rewritten. Or you may need to have someone write an adapter for the previous version of the code. And you might also want to be careful with your terms. Reading your post, it seems that what you actually want is SMTP Authentication but you keep talking about SMTP. That's two different things. As far as I know, SMTP works fine now if you have your server configured for it. It's just that most people don't go through the effort to configure their servers to work with basic SMTP. So you want a workaround that uses another server for the SMTP. But to do that, you need the authentication. What you want is not properly described as SMTP but as authenticated SMTP or remote SMTP. Anyway, my point is that if there are instructions that you don't know how to follow, you could get more help if you posted them. As is, if I wanted to try to help, I'd have to go download the App. And frankly, I'm too lazy to do that.
  3. Or just duplicate the create_account page. The new, not core, file could have completely arbitrary logic.
  4. ecartz

    error 500 Admin HTTP Authentication

    You want the username/password that you set in your host server panel to be the same as the username/password set in the store admin. Because when you authenticate through the host method, it will try to apply the same username/password to the store admin. If they are set the same in both places, it will log you in. If not, you have to log in twice. Once with each credentials. Then you are on the second part of the advice: "contact your host to do it for you" since they won't let you do it yourself.
  5. ecartz

    error 500 Admin HTTP Authentication

    Yes. It's safer for the files not to be writable. But then you have to manually keep them in synch. Try 444.
  6. ecartz

    error 500 Admin HTTP Authentication

    It wants you to make the admin/.htaccess and admin/.htpasswd_oscommerce files writable. If you don't do that, don't click the checkbox.
  7. ecartz

    Customize colors and shipping on the site

    The error is saying that you can't do const FOO = array( ); in older versions of PHP. I strongly recommend against trying to edit Phoenix to work prior to PHP 7. It's not going to be just one or even a hundred problems. It's a constant battle to keep pace. Because we will keep making changes using the new PHP functionality. If PHP 5.5 or older is a real requirement, you're better off with some version of 2.3.4. But really, the better solution is almost certainly just to use PHP 7. Then you can use the code as written.
  8. ecartz

    Customize colors and shipping on the site

    I'm not specifically familiar with that error, but my first guess would be that you are using an older version of PHP. Phoenix is PHP 7+. Note that you seem to be looking at the wrong file. The error is talking about the language file but you are posting code from the code file.
  9. ecartz

    Lost styling in Catalog

    Maybe. But are the directories? Try this link: https://www.folkmusic.net/catalog/ext/bootstrap/css/bootstrap.min.css
  10. ecartz

    Lost styling in Catalog

    Looking in your HTML, one problem is <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> The // should have an https: in front. There's also something wrong with how your Javascript is loading. Did you perhaps delete or otherwise modify permissions of the ext directory? It either needs to be readable or you need to move the Javascript out of it.
  11. The point of the way that the wishlist module does things is that both modules require the same parameters. You just want a different behavior depending on which button is clicked. Add it as a footer script. Either with a separate header tag module or simply by adding the appropriate block directly. An example of adding modal HTML as a footer script directly: https://github.com/gburton/CE-Phoenix/blob/65ba42f1d45be6b2e34b5af549812057dc4bb102/includes/modules/content/product_info/templates/tpl_cm_pi_gallery.php#L80
  12. ecartz

    Remove Contact Us

    That was specifically for Phoenix (1.0.5.6 but any version). In older versions, it might appear somewhere else. You might be better off posting a new thread along with the version of osCommerce that you have.
  13. It looks like an App, so probably never there. There are only five configuration entries in the current base version, and that looks familiar to me. I.e. I think it has been that way for a while. Eight years seems quite possible.
  14. A previously working email system that stops working is usually the result of a change at the hosting level. I.e. ask your host what changed since (last time you received an email). One common problem is using a sending email address with a different domain than your store. Many hosts restrict that. Before doing that, you may want to find out if it is sending emails to customers or through Contact Us. And you might try Harald's test script:
  15. ecartz

    Google reCAPTCHA v3

    This error says that your module_hooks page is trying to use a DIR_WS_INCLUDES constant that has not been defined. You could try adding define('DIR_WS_INCLUDES', 'includes/'); At the top of the module_hooks.php page (even before it includes application_top.php but anywhere before template_top.php would probably do). Of course, that might just get it to the next error.
  16. The easy solution would be to force cookie use. The cookie should persist through the redirects. The more difficult solution would be to get the *hosted* page to include the session ID when sending back. For that you'd need to find out from the payment gateway how to pass and get back the session ID.
  17. This is saying that there are more closing } than opening {. In the code that I posted, there isn't. If you have working code: if ( (!isset($_GET['sort'])) || (!preg_match('/^[1-8][ad]$/', $_GET['sort'])) || (substr($_GET['sort'], 0, 1) > count($column_list)) ) { $listing_sql .= " ORDER BY RAND()"; for ($i=0, $n=count($column_list); $i<$n; $i++) { if ($column_list[$i] == 'PRODUCT_LIST_ID') { $_GET['sort'] = $i+1 . 'RANDOM'; Then to add the code that I posted to it, you would change those lines to if ( (!isset($_GET['sort'])) || (!preg_match('/^[1-8][ad]$/', $_GET['sort'])) || (substr($_GET['sort'], 0, 1) > count($column_list)) ) { if (!isset($_SESSION['RANDOM_SEED'])) { $_SESSION['RANDOM_SEED'] = mt_rand(); } $listing_sql .= " ORDER BY RAND(" . (int)$_SESSION['RANDOM_SEED'] . ")"; for ($i=0, $n=count($column_list); $i<$n; $i++) { if ($column_list[$i] == 'PRODUCT_LIST_ID') { $_GET['sort'] = $i+1 . 'RANDOM'; That's just replacing one line of code from the first block with four lines of code from the second block.
  18. ecartz

    Express checkout 1_2 pages

    That's probably me rather than the App. I.e. the core 1.0.5.6 has that problem.
  19. ecartz

    Remove Contact Us

    There are two places where Contact Us might appear. One is actually called the Contact Us Footer Module. You could simply uninstall that in admin > Modules > Content. The other is the Information Links Footer Module. You change that in the language file: includes/languages/english/modules/content/footer/cm_footer_information_links.php -- remove the line that says 'contact_us.php' => 'Contact Us' Or you could uninstall that module as well, although that would remove more than just the Contact Us link.
  20. I would think that that would make the page not work properly. You might be better off replacing it with AND products_date_available IS NOT NULL And higher in the page, replace tep_db_query("update products set products_date_available = '' where to_days(now()) > to_days(products_date_available)"); with tep_db_query("UPDATE products SET products_date_available = NULL WHERE NOW() > products_date_available");
  21. For the moment, you could just leave the PI modules turned off in admin > Layout Modules > Product Info. As they're the only new translations that I can see in includes/languages. https://github.com/gburton/CE-Phoenix/compare/1.0.5.5...master A few more in admin/includes/languages but those shouldn't be blocking.
  22. admin > Modules > Content > List of Testimonials > View Testimonials Change from All to Language Specific.
  23. Are you running OSCOM CE Phoenix 1.0.5.1 or later? If not, you should probably use the older version.
  24. Not the current year. Not without changing how the constant is used. The alternatives are 1. Add the year after the const is defined (e.g. with sprintf). 2. Define a constant to hold the year and use that. define('CURRENT_YEAR', date('Y')); // in a different file const WHATEVER = 'Blah ' . CURRENT_YEAR . ' blah'; 3. Hard code the year rather than produce it automatically. 4. Change the const to define. I think that #2 will work, although I haven't used it that way. But note that both #2 and #4 use a define. I'm not sure that one is necessarily better than the other. Are you sure that Your Personal Information, etc. is localized properly at admin > Localization > Customer Data Groups?
  25. Line 21 in the original: const MATC_PRIVACY_MODAL_TEXT = '<p>Put here your Privacy Text...</p>'; I would not expect that to give that error. That error is more the kind of thing that you'd get if that line were something like const MATC_PRIVACY_MODAL_TEXT = 'Blah ' . tep_href_link('privacy.php') . ' blah'; Is that your actual text for that line? A workaround for that would be to change the line to something like define('MATC_PRIVACY_MODAL_TEXT', 'Blah ' . tep_href_link('privacy.php') . ' blah');
×