themilkman Posted February 16, 2008 Posted February 16, 2008 I am trying to install the Must agree contrib: Must agree to Terms for osCommerce Online Merchant v2.2 The "Must Agree To Terms" contribution enhances standard OSC Checkout logic by forcing the customer to agree to the store's terms in order to place a new order. After extracting the package in the checkout_confirmation_chg.php file it says: ========================================================================== = FIND =================================================================== ========================================================================== <?php } ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="right" class="main"> <?php if (isset($$payment->form_action_url)) { $form_action_url = $$payment->form_action_url; } else { $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'); } echo tep_draw_form('checkout_confirmation', $form_action_url, 'post'); if (is_array($payment_modules->modules)) { echo $payment_modules->process_button(); } echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n"; ?> </td> </tr> </table></td> </tr> ========================================================================== = REPLACE THE LINES ABOVE BY ============================================= ========================================================================== <?php } ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="right" class="main"> <?php if (isset($$payment->form_action_url)) { $form_action_url = $$payment->form_action_url; } else { $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'); } echo tep_draw_form('checkout_confirmation', $form_action_url, 'post', 'onsubmit="return check_agree(this);"'); if (is_array($payment_modules->modules)) { echo $payment_modules->process_button(); } ?> <table width="100%" class="infobox" border="0" style="border-collapse: collapse"><tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse"> <tr class="infoBoxContents"> <td align="right" border="0" colspan="2"> <tr class="infoBoxContents"><b><td align="right" class="main"><b><?php echo CONDITION_AGREEMENT; ?></b></td><td onclick="window.document.checkout_confirmation.agree.checked = !window.document.checkout_confirmation.agree.checked;" align="right" width="20px"><?php echo tep_draw_checkbox_field('agree','true', false, 'onclick="window.document.checkout_confirmation.agree.checked = !window.document.checkout_confirmation.agree.checked;"'); ?></td> </tr><tr class="infoBoxContents"><td align="right" colspan="2"><a href="java script:void(0);" onclick="NewWindow('<?php echo tep_href_link('popup_conditions.php'); ?>','tech','800','600','yes');return false"><u style="main"><u style="main"><?php echo CONDITIONS; ?></u></a></td> </td> </tr></table> </table></td> </tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td align="right"><?php echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> </form></table></td> </tr> ========================================================================== = END REPLACE ============================================================ But the code that it is asking to find does not exist, I have: <?php } ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="right" class="main"> <?php if (is_array($payment_modules->modules)) { echo $payment_modules->process_button(); } echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . "\n"; ?> </td> </tr> </table></td> </tr> <tr> As you can see the main difference is: if (isset($$payment->form_action_url)) { and if (is_array($payment_modules->modules)) { What should I do? I was thinking of installing a different contrib instead. Any idea of what to do@? Thanks Whats the point of a signature?
ItsAllGood Posted February 21, 2008 Posted February 21, 2008 I have just installed this contribution (by Olaf) and i can't get it work. I've updated my sql database to include the new option in admin 'terms & Conditions' but this is not showing. Also, when i click on create new account the page comes up blank? I've check the instructions multiple times and everything seems ok... Has anyone managed to get this working?
themilkman Posted February 28, 2008 Author Posted February 28, 2008 I have just installed this contribution (by Olaf) and i can't get it work. I've updated my sql database to include the new option in admin 'terms & Conditions' but this is not showing. Also, when i click on create new account the page comes up blank? I've check the instructions multiple times and everything seems ok... Has anyone managed to get this working? Hi for this module Agree2Terms_v1.67, does any one have the solution to this? The following code which must be found and replaced does not exist in my checkout_confirmation file: ========================================================================== = FIND =================================================================== ========================================================================== <?php } ?> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align="right" class="main"> <?php if (isset($$payment->form_action_url)) { $form_action_url = $$payment->form_action_url; } else { $form_action_url = tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL'); } echo tep_draw_form('checkout_confirmation', $form_action_url, 'post'); if (is_array($payment_modules->modules)) { echo $payment_modules->process_button(); } echo tep_image_submit('button_confirm_order.gif', IMAGE_BUTTON_CONFIRM_ORDER) . '</form>' . "\n"; ?> </td> </tr> </table></td> </tr> How to instal this contribution? Whats the point of a signature?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.