Jump to content

Jack_mcs

Members
  • Content count

    30,133
  • Joined

  • Last visited

  • Days Won

    137

Everything posted by Jack_mcs

  1. Jack_mcs

    Category into a link

    @LeeFoster You will need to code that. Below are a few ways to do it that I can think of at the moment. But unless there is some reason to have the link be a category, I would just delete that category and add the link manually, which is similar to the second method below. Leaving it as a category will always be a potential problem because if you install an addon that lists or uses categories, its code may require changing. And if you forget, it could cause a problem on your site. - Edit the classes/categories_tree.php and change the code to look for that categories ID and add the url you want for it. Something like if (categories_id = 33) { url = somehwhere else; } else { original code goes here } - Edit the above file and change the database query not to include the category in the result. Then in the categories infobox, add a link after the rest of the categories for the one you want.
  2. Jack_mcs

    Admin : categories.php slow loading

    I've seen similar in many shops over the years and there have been many posts in these forums about it. I haven't seen one that slow but you have more categories than in the sites I've seen. The first thing I always try is to add this command to the top of the admins application_top file ob_start("ob_gzhandler"); The above should help a little but probably not enough to make it fast enough to live with. You can try the MySQL cache but I don't think that is a good solution. First, if this is a shared server, the host probably won't enable cache option. If it does get enabled, it is only useful if the data is not changed much and that is probably not the situation for products. I tried a local cache years ago and it did help but it had the same problem. Each time something was changed the cache had to be rewritten and that slowed things down again. But on hindsight, I think this might work if the layout of the page was changed. So just the main categories could be cached at first. Then as the sub-categories are loaded, they could be cached and so on. That would allow individual caches to be re-built and not be too bad. Last year I started a project to use ajax to load that section. I didn't get very far since it is a huge job and I didn't have the time to get back to it. But the tests I made with what I did showed a tremendous decrease In load time. I'm sure you have probably thought of these options already but maybe they will give you some ideas.
  3. Jack_mcs

    HoneyPot Captcha

    The previous versions of Phoenix used the $error variable to allow an account to be created or not. The code in Honey Pot relies on that variable. So maybe using the function you mentioned will work. As mentioned, I haven't had time to go though that. But even if it does, the addon would still fail with 1.0.5.4 because the HP code checks the variables by name, like $postcode. Those are now in the customer details code so the HP code can't work as it is.
  4. Jack_mcs

    HoneyPot Captcha

    @PedrosI tested in a 1.0.5.0 shop and it worked as expected so it is due to something in your setup. I also tested it in 1.0.5.4 and Honey Pot will not work in that version, at least as far as create account checks are concerned since the customer handling code has changed in that version. I haven't had time to figure out how to check for failures but will eventually. Until then, this addon will only fully work with 1.0.5.3 or before.
  5. The shipping methods are sent when the Instant Update option is enabled. You can try disabling that instead of changing the text, as long as you don't mind not having the choices show up at paypal.
  6. Jack_mcs

    HoneyPot Captcha

    I don't have that version of shop setup but I tried it in an older version of Phoenix and it worked. I will install that version when I have the time and test it.
  7. Jack_mcs

    HoneyPot Captcha

    If the setting is Blank or Both and the entered post code entry is blank, then no blocking should be done. If the setting is Numbers, then if the post code entry is blank or does not contain number, it should block. Only once those tests are done is the country checked. If that is how you have it set up, then I don't have an answer for you at this point. I've installed this addon into several shops and it works as expected. And I would assume others here would say something if they are having the same problem. So it seems to be a problem in your installation or maybe some unique situation just to your site that I can't reproduce. I'm sorry I can't be more helpful.
  8. Jack_mcs

    HoneyPot Captcha

    The code checking the postal code is, among other things, comparing what is entered against known formats for certain countries. If you are checking a country that is not in the countries being checked, the code will not fail. This page shows the countries being checked. If the country you are checking is in that list, then the code is not working for some reason. In that case, please let me know the country so I can check it.
  9. Jack_mcs

    Header Tags SEO

    @dewarsco2You can skip that step. Its purpose is to load in the new fields added by this addon. But in the newer versions of Phoenix, the code loads in all of the fields already so doing this step is not needed.
  10. Jack_mcs

    HoneyPot Captcha

    I'm sorry I missed that part of the question. The code posted by @ecartzshould do what you want.
  11. Jack_mcs

    Header Tags SEO

    No, it's probably the code since the button has not been tested. You could try running the included cron file since that files empty tags and doesn't need a button. I don't recall if it will run manually but you could quickly setup a cron job for it. As for the button, I may work on that at some point. The problem is that every other version of Phoenix breaks code that has always worked and, as a developer, it just takes too much time to keep up with the changes.
  12. Jack_mcs

    HoneyPot Captcha

    @PedrosThank you for the kind words. They are appreciated. The country-state problem is a known one and has been fixed in the next, unreleased version. I'm not sure when that will be released but here is the fix for the country-state problem. In includes/functions/honeypot.php, find function CheckCountryState($state, $country) { $db_query = tep_db_query("select 1 from zones where zone_country_id = '" . tep_db_input($country) . "' and (zone_code = '" . tep_db_input($state) . "' or zone_name = '" . tep_db_input($state) . "')"); return (tep_db_num_rows($db_query) ? false : true); } and replace it with function CheckCountryState($state, $country) { if (MODULE_HEADER_TAGS_HONEYPOT_VERIFY_STATE_COUNTRY_MATCH == 'True') { $db_query = tep_db_query("select 1 from zones where zone_country_id = '" . tep_db_input($country) . "' and (zone_code = '" . tep_db_input($state) . "' or zone_name = '" . tep_db_input($state) . "')"); return (tep_db_num_rows($db_query) ? false : true); } return false; }
  13. Jack_mcs

    Header Tags SEO

    @Rollo44 I don't have that version setup here so I can't test it but the following may work. In admin/header_tags_fill_tags.php, find <td align="center"><?php echo (tep_image_submit('button_update.gif', IMAGE_UPDATE) ); ?></td> and replace it with <td align="center"><?php echo tep_draw_bootstrap_button(IMAGE_UPDATE, 'fas fa-save', null, 'primary', null, 'btn-success btn-block btn-lg'); ?></td>
  14. There shouldn't be a problem using the cache options. I think the problem may have been caused by the previous mistakes you had. Keep an eye on it and if happens again you can turn the cache options off.
  15. That's how it is supposed to work. When you set it to true, it runs the code to clear the cache and then resets the setting to false. So it sounds like clearing cache took care of the problem.
  16. Your previous reply said it was working. Is it that you didn't notice this problem or was it working and now doesn't? One thing you can try is turn off all of the settings except for the first one to see if that helps.
  17. Jack_mcs

    Phone Orders

    Or replace the block of code from my previous post.
  18. Jack_mcs

    Phone Orders

    This addon makes it very easy to create orders using the customers account. It is access in admin with one click, which takes you to the shop. There you search for the customer. When that customers entry is clicked on, you are automatically logged into his account and can start ordering. There are two built-in security options to make this as secured as possible. This addon will work with Phoenix and Frozen. It can also work with other versions of oscommerce but would require a few modifications. It has been tested with php 7.3 without warnings or errors.
  19. Jack_mcs

    Recover Cart Sales for Phoenix

    I apologize to everyone for the confusion about the buttons. I was testing different options when I did those and forgot to clean that up. The delete button doesn't do anything. The save button, which should be named delete, will delete the entry from the customers basket. Make the following change to correct this. Replace the following in the admin/recover_cart_sales.php file tep_draw_button(IMAGE_SAVE, 'fas fa-save', tep_href_link('recover_cart_sales.php',"action=delete&customer_id=" . $curcus . "&tdate=" . $tdate . "&sdate=" . $sdate. "&dateadded=" . $curcus_date_added)) . tep_draw_button(IMAGE_DELETE, 'trash', tep_href_link('recover_cart_sales.php')) . " with tep_draw_button(IMAGE_DELETE, 'fas fa-trash', tep_href_link('recover_cart_sales.php',"action=delete&customer_id=" . $curcus . "&tdate=" . $tdate . "&sdate=" . $sdate. "&dateadded=" . $curcus_date_added)) . "
  20. This is a version of Recover Cart Sales that only works on Phoenix. Recover Cart Sales is a very simple tool which looks at shopping carts left on your site that were abandoned by customers/visitors. The only carts it works with are those where the person visiting your site actually put something in their shopping cart, either already had or created a customer account on the system, and didn't complete the purchase of the cart contents. You can then send an email to those visitors to try and convince them to complete the order. I've found that people like being asked and will, in some cases, complete the order due to that. This version is mostly the same as previous versions. It fixes a large number of security holes and adds an option to send a coupon code in the email (a coupon addon is required for this). I've tested it manually and didn't see any problems but I haven't tested the cron code so that may need some changes. Please post here any problems found with this version.
  21. Jack_mcs

    Phone Orders

    @toughmamaThis might do it. Change the following <div class="main"> <?php echo tep_draw_form('search_customers', tep_href_link('phone_orders.php','','SSL'), 'post') . tep_draw_hidden_field('search_form', 'active'); ?> <div style="display:inline-block"> <?php echo TEXT_PHONE_ORDERS_SEARCH_EMAIL.' '. tep_draw_input_field('search_email').'<br>'. TEXT_PHONE_ORDERS_SEARCH_LASTNAME.' '. tep_draw_input_field('search_lastname').'<br>'. TEXT_PHONE_ORDERS_SEARCH_PHONE.' '. tep_draw_input_field('search_phone'); ?> </div> <div class="buttonSet"> <div class="text-left"><button type="submit" class="btn btn-info btn-search">Search</button></div> </div> </forum> </div> to this <?php echo tep_draw_form('search_customers', tep_href_link('phone_orders.php','','SSL'), 'post') . tep_draw_hidden_field('search_form', 'active'); ?> <div class="form-group row"> <label for="entryEmail" class="col-form-label col-sm-3 text-left text-sm-right"><?php echo TEXT_PHONE_ORDERS_SEARCH_EMAIL; ?></label> <div class="col-sm-9"> <?php echo tep_draw_input_field('search_email', '', 'id="entryEmail"'); ?> </div> </div> <div class="form-group row"> <label for="entryNameLast" class="col-form-label col-sm-3 text-left text-sm-right"><?php echo TEXT_PHONE_ORDERS_SEARCH_LASTNAME; ?></label> <div class="col-sm-9"> <?php echo tep_draw_input_field('search_lastname', '', 'id="entryNameLast"'); ?> </div> </div> <div class="form-group row"> <label for="entryPhone" class="col-form-label col-sm-3 text-left text-sm-right"><?php echo TEXT_PHONE_ORDERS_SEARCH_PHONE; ?></label> <div class="col-sm-9"> <?php echo tep_draw_input_field('search_phone', '', 'id="entryPhone"'); ?> </div> </div> <div class="buttonSet"> <div class="text-left"><button type="submit" class="btn btn-info btn-search">Search</button></div> </div> </form>
  22. Sounds like a mistake I would make. Glad to hear you got it going.
  23. @mrsmarterA number of years ago, maybe 4 or 5, google decided they wanted all of the sites on the web to start using https for all links. They initially asked that it be done but the response was small. They then decided to enforce it by displaying a non-secure warning in Chrome. But the response was still not as high as they wanted. So they changed Chrome again to display an obvious message saying the page is not secure. It didn't matter that a page didn't have anything that needed to be secured. The message is still displayed. That caused the response they wanted. Web-surfers don't understand that a page not be non-secure even though the web browser says it is. If they see a non-secure warning on the page, many will go away. And, as @Dan Colementioned, they also rank pages differently based on whether it has a secure url or not. FF is also increasing their warnings as a result. You can run the site the old way by editing the configure file and removing redirects in the .htaccess file, if present. But you would just be hurting your site since it will cause some visitors to go away.
  24. Be sure that you are uploading the files from the Not_Phoenix directory. Also, is SEO URLs now showing in the admin->Configuration section? If so, try turning the top setting off and then upload the files to see if it still fails. If none of that helps, try uploading the files in the previous version of this addon (_18).
  25. @RosywebI suggest changing your .htaccess file to what I show below. But before you do that, for the live server, remove all of the entries for this addon and see if your site will load. If it doesn't, then the problem is either in the application_top or html_output file changes. Those have not changed for many years for the most part so it is unlikely the code itself is at fault. You may have copied something wrong, like missing a closing bracket or something like that. Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTPS} !on [NC] RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^mysite\.co.uk$ [NC] RewriteRule ^(.*)$ https://www.mysite.co.uk/$1 [R=301,L] ErrorDocument 404 /404.shtml <Files 403.shtml> order allow,deny allow from all </Files> deny from 65.19.141.114 # Begin Ultimate SEO V2.2d RewriteBase /test2/ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-(.*).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-(.*).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-by-(.*).html$ all-products.php?fl=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-(.*).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-(.*).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-au-(.*).html$ articles.php?authors_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-(.*).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-(.*).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-f-(.*).html$ faqdesk_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fc-(.*).html$ faqdesk_index.php?faqPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-fri-(.*).html$ faqdesk_reviews_info.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-fra-(.*).html$ faqdesk_reviews_article.php?faqdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-(.*).html$ information.php?info_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-links-(.*).html$ links.php?lPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-pm-([0-9]+).html$ info_pages.php?pages_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-n-(.*).html$ newsdesk_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nc-(.*).html$ newsdesk_index.php?newsPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-nri-(.*).html$ newsdesk_reviews_info.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-nra-(.*).html$ newsdesk_reviews_article.php?newsdesk_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-po-([0-9]+).html$ pollbooth.php?pollid=$2&%{QUERY_STRING} # End Ultimate SEO V2.2d
×