Jump to content
Latest News: (loading..)

puddlec

Members
  • Content count

    179
  • 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
  1. 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.
  2. 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
  3. 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
  4. @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.
  5. From the fixer.io GitHub account https://github.com/fixerAPI/fixer
  6. 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.
  7. 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.
  8. 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
  9. 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>'; ?>
  10. 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 -----//
  11. 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'); } ?>
  12. MATC

    Check your error log, to see what it says. it will tell you where the error is. i did get the MATC addon working on my BS Frozen site
  13. just had a look, and it does not disable any cookies (Google Analytics) when i click on refuse cookies, looking at the documentation of the cookie script you, have to add some extra code to disable any cookies.
  14. MATC

    Personally I got mine on checkout payment, however you can also put it on create account. So that your customers are also agreeing to it when they create an account as well.
  15. Could you include the information in the email either as text or in a pdf. and tell the customer on the phone that they would have to reply back saying that they accept the t&c's / privacy policy before you can go ahead with completing the order. and that the details you have are correct don't know if you have read this https://ico.org.uk/for-organisations/guide-to-the-general-data-protection-regulation-gdpr/consent/how-should-we-obtain-record-and-manage-consent/
×