Jump to content
Latest News: (loading..)

puddlec

Members
  • Content count

    181
  • Joined

  • Last visited

  • Days Won

    4

puddlec last won the day on April 2 2015

puddlec had the most liked content!

4 Followers

Profile Information

  • Real Name
    Craig
  • Gender
    Male
  • Location
    UK

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. puddlec

    IIS report php-cgi exited unexpectedly

    What you can do in plesk is have a different PHP version for each domain. E.g. my server shipped with PHP 5.3 but I installed PHP 5.6 and then later PHP 7.1 Tools & Setting Updatesand Upgrades . Add/remove components web hosting Php interpreter version it will now provide a list of available PHP versions you can install Click on the which version(s) you want to install Plesk will then download and install them for you For the domain you want to change the PHP for you will need to click on PHP settings Near the top you get two drop-down one for PHP version and the second for how it should run. In my case it says fastcgi application server by Apache Those steps where based on plesk 17.8 on Linux, you may get slightly different options I did get PHP 5 from is vendor and a separate PHP 5.3 I could install What you can do is have PHP 5.2 on your current site setup a sub domain for it and have that run on a newer version of PHP. Plesk will also keep any PHP installed this way up to date with any updates.
  2. Just some features that I have put in my checkout Select2 https://select2.org/getting-started/basic-usage, which can be used in the country / state drop down menus. This allows you to either the drop-down as normal, or you can start to type in and it will filter the results As I only got one shipping method I skip. The shipping page the same can be done for the payment method page Use jQuery validation https://jqueryvalidation.org for real time validation of the fields instead of after clicking on continue
  3. I changed to using the css version a few weeks ago, in the tests i did it did cut down on the amount that needs to be downloaded (the amount depends on what icons "packs that get used"), have not see any problems using the css version so far.
  4. puddlec

    sage pay & php 7.2

    with the Sage pay payment gateways (other payment gateways may also be effected), which requires MCrypt on the PHP website it says that. The mcrypt extension has been abandonware for nearly a decade now, and was also fairly complex to use. It has therefore been deprecated in favour of OpenSSL, where it will be removed from the core and into PECL in PHP 7.2. Whilst my server admin panel allows me to install any version of PHP that i want. is it likely that the Sage pay payment modules would get updated to work with the current / future versions of PHP.
  5. Better, still some screen sizes it will cut some of the text off, just an idea, on the product page you got the special price in red, but not in any of the product boxea same on the product page (well the Samsung Galaxy Tab at least), the right hand menu will cover over the last digit. also just a question is the link to the reviews meant to be that far away from the actual reviews, e.g. you have the you may also like boxes, and then modal etc info, then the review
  6. On the specials. When I had a look on my tablet in portrait, the price goes under the view/buy now buttons,so it looks like everything is either, $2 or $3
  7. @burt I would like to thank you for your work on improving osCommerce. in terms of modernizing it to work with newer versions of PHP, making it work better on mobiles, and most importantly making it easier to install add-ons. As most can now be installed without touching any core files. This makes any updates easier to install, both the addon itself and any updates to the core. To me it does not matter how many times you post something on the forum, it is more about what you have done/will do with the code. To me it is a shame that more people are not interested in helping in making osCommerce better in some shape or form.
  8. From the fixer.io GitHub account https://github.com/fixerAPI/fixer
  9. something i have just noticed. it is possible for the list of categories to go all over the place, if one or two of them, go over two lines (e.g. if you use a category width of 2 and have a category with a long title) i seemed to fix it at least on the quick test on my site it was doing it on and on the clean frozen version in the tpl_cm_in_category_listing.php, I just added to the second line class="row list-group" and that's all.
  10. puddlec

    MATC

    in regards to disabling the button if the user has JavaScript enabled of course in MATC.php file you can always add <script> $(document).ready(function(){ $('.TheSubmitButton').prop('disabled',true); $('#TermsAgree').click(function(){ if($(this).is(':checked')) { $('.TheSubmitButton').prop('disabled',false); } else { $('.TheSubmitButton').prop('disabled',true); } }); }); </script> and just change the submit button to <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'fa fa-angle-right', null, 'primary', null, 'btn-success TheSubmitButton'); ?> i've only quickly tested this, and seemed to work.
  11. puddlec

    MATC

    this is how i got it working on my bootstrap v2.3.4.1 in checkout_payment.php put just before the continue button <?php //----- BEGINNING OF ADDITION: MATC -----// if($_GET['matcerror'] == 'true'){ ?> <div class="contentText"> <div class="alert alert-danger"> <div class="row"> <div class="col-xs-8"> <i class="fas fa-exclamation-circle"></i> <?php echo MATC_ERROR; ?> </div> </div> </div> </div> <?php } //----- END OF ADDITION: MATC -----// ?> <!-- BEGINNING OF ADDITION: MATC --> <?php if(MATC_AT_CHECKOUT != 'false'){ require('includes/modules/'. 'matc.php'); } ?> in checkout confirmation put near the top //----- BEGINNING OF ADDITION: MATC -----// if (tep_db_prepare_input($_POST['TermsAgree']) != 'true' and MATC_AT_CHECKOUT != 'false') { tep_redirect(tep_href_link('checkout_payment.php', 'matcerror=true', 'SSL')); } //----- END OF ADDITION: MATC -----// replace the includes/modules/matc.php file with <?php if(MATC_SHOW_TEXTAREA != 'false'){ //START "show the textarea if" if(MATC_TEXTAREA_FILENAME != ''){//There is a file we should require require('includes/languages/' . $language . '/' . MATC_TEXTAREA_FILENAME); } if(MATC_TEXTAREA_MODE == 'Returning code'){ eval('$textarea_contents_material ='.MATC_TEXTAREA_RETURNING_CODE.';'); }elseif(MATC_TEXTAREA_MODE == 'SQL'){ eval('$contents_query = tep_db_query('.MATC_TEXTAREA_SQL.');'); $contents_query_array = tep_db_fetch_array($contents_query); $textarea_contents_material = $contents_query_array['thetext']; }else{ die('No mode was catched! Search for "qwetyqouty34657+234" in matc.php fo find the place where the error occured.'); //Just for error checking. }; if(MATC_TEXTAREA_HTML_2_PLAIN_TEXT_CONVERT != 'false'){ //Use the conversion tool require_once('includes/classes/'.'html2text.php');// Include the class definition file. $h2t =& new html2text(html_entity_decode($textarea_contents_material,ENT_QUOTES,'ISO8859-1'));// Instantiate a new instance of the class. Passing the string variable automatically loads the HTML for you. $h2t->width=0; //Do not use word wrap $textarea_contents = $h2t->get_text();// Simply call the get_text() method for the class to convert the HTML to the plain text. Store it into the variable. }else{//Use the "raw material", that is we do not convert it to plain text $textarea_contents = $textarea_contents_material; }; ?> <b><?php echo MATC_HEADING_CONDITIONS; ?></b> <textarea name="conditions" class="small" rows="14" cols="60" readonly ><?php echo $textarea_contents; ?></textarea> <?php }//End "show the textarea if" ?> <?php if(MATC_SHOW_LINK != 'false'){ echo '<label class="container"> ' . sprintf(MATC_CONDITION_AGREEMENT, tep_href_link(MATC_FILENAME, MATC_PARAMETERS)); }else{ echo strip_tags(MATC_CONDITION_AGREEMENT); } echo tep_draw_checkbox_field('TermsAgree','true', false, 'id="TermsAgree"') . '<span class="checkmark"></span> </label>'; ?> if you want MATC on the checkout confirmation page then just copy the code provided for checkout_payment.php and in checkout_process.php (near the top put //----- BEGINNING OF ADDITION: MATC -----// if (tep_db_prepare_input($_POST['TermsAgree']) != 'true' and MATC_AT_CHECKOUT != 'false') { tep_redirect(tep_href_link('checkout_confirmation.php', 'matcerror=true', 'SSL')); } //----- END OF ADDITION: MATC -----// whilst they can click on the button they get redirected back to the previous page anyway, and told they must agree to the terms and condiations in regards to what it says then just change the text in the language file. simples
  12. puddlec

    MATC

    remove the // you have added to the checkout_payment.php as where you added it is fine to have the tables it is just in the matc.php file where it seems to be causing the issue - below is what i am using <?php if(MATC_SHOW_TEXTAREA != 'false'){ //START "show the textarea if" if(MATC_TEXTAREA_FILENAME != ''){//There is a file we should require require('includes/languages/' . $language . '/' . MATC_TEXTAREA_FILENAME); } if(MATC_TEXTAREA_MODE == 'Returning code'){ eval('$textarea_contents_material ='.MATC_TEXTAREA_RETURNING_CODE.';'); }elseif(MATC_TEXTAREA_MODE == 'SQL'){ eval('$contents_query = tep_db_query('.MATC_TEXTAREA_SQL.');'); $contents_query_array = tep_db_fetch_array($contents_query); $textarea_contents_material = $contents_query_array['thetext']; }else{ die('No mode was catched! Search for "qwetyqouty34657+234" in matc.php fo find the place where the error occured.'); //Just for error checking. }; if(MATC_TEXTAREA_HTML_2_PLAIN_TEXT_CONVERT != 'false'){ //Use the conversion tool require_once('includes/classes/'.'html2text.php');// Include the class definition file. $h2t =& new html2text(html_entity_decode($textarea_contents_material,ENT_QUOTES,'ISO8859-1'));// Instantiate a new instance of the class. Passing the string variable automatically loads the HTML for you. $h2t->width=0; //Do not use word wrap $textarea_contents = $h2t->get_text();// Simply call the get_text() method for the class to convert the HTML to the plain text. Store it into the variable. }else{//Use the "raw material", that is we do not convert it to plain text $textarea_contents = $textarea_contents_material; }; ?> <b><?php echo MATC_HEADING_CONDITIONS; ?></b> <textarea name="conditions" class="small" rows="14" cols="60" readonly ><?php echo $textarea_contents; ?></textarea> <?php }//End "show the textarea if" ?> <?php if(MATC_SHOW_LINK != 'false'){ echo '<label class="container"> ' . sprintf(MATC_CONDITION_AGREEMENT, tep_href_link(MATC_FILENAME, MATC_PARAMETERS)); }else{ echo strip_tags(MATC_CONDITION_AGREEMENT); } echo tep_draw_checkbox_field('TermsAgree','true', false, 'id="TermsAgree"') . '<span class="checkmark"></span> </label>'; ?>
  13. puddlec

    MATC

    problem 1 could possibly be that you left in all the table tags in checkout payment and in the matc file e.g. <table> <tr> <td> </td> </tr> </table> i took all those out, then just put some div tags with the relevant bootstrap class names i wanted 2 in checkout confirmation you will need to change the MATC code to //----- BEGINNING OF ADDITION: MATC -----// if (tep_db_prepare_input($_POST['TermsAgree']) != 'true' and MATC_AT_CHECKOUT != 'false') { tep_redirect(tep_href_link('checkout_payment.php', 'matcerror=true', 'SSL')); } //----- END OF ADDITION: MATC -----//
  14. puddlec

    MATC

    i got a hunch on what it could be. in the includes/modules/matc.php file their are references to DIR_WS_CLASSE and DIR_WS_LANGUAGES those would need to be changed to 'includes/classes/' and 'includes/languages/' and in checkout_payment or wherever you installed it to change whatever you got to <?php //----- BEGINNING OF ADDITION: MATC -----// if($_GET['matcerror'] == 'true'){ ?> <div class="contentText"> <div class="alert alert-danger"> <div class="row"> <div class="col-xs-8"> <i class="fas fa-exclamation-circle"></i> <?php echo MATC_ERROR; ?> </div> </div> </div> </div> <?php } //----- END OF ADDITION: MATC -----// ?> <!-- BEGINNING OF ADDITION: MATC --> <?php if(MATC_AT_CHECKOUT != 'false'){ require('includes/modules/'. 'matc.php'); } ?>
×