台灣最大程式設計社群網站
線上人數
1509
 
會員總數:246478
討論主題:189985
歡迎您免費加入會員
討論區列表 >> PHP >> oscommerce add agree box
[]  
[我要回覆]
回應主題 加入我的關注話題 檢舉此篇討論 將提問者加入個人黑名單
oscommerce add agree box
價值 : 10 QP  點閱數:2084 回應數:0
樓主

lap
門外漢
0 28
218 19
發送站內信

這程式是oscommerce modult,but if i use paypal payment checkout 就有問題
如何寫我要click box ,下一步的按鈕先出現?


This mod enables the store owner to force customers to agree to the terms of use in order to purchase.
It will work only with the new checkout procedure (1st nov. snapshots or later)

enjoy....


here are the changes

in catalog/checkout_process.php roughly line 39 add the following before // load selected payment module

// check for terms and conditions agreement

if ($HTTP_POST_VARS['agree'] != 'true') {
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(ERROR_NO_CONDITIONS), 'SSL'));
}


in catalog/checkout_confirmation.php right after the line which reads

echo tep_draw_form('checkout_confirmation', $form_action_url, 'post');

add

echo CONDITION_AGREEMENT;
echo tep_draw_checkbox_field('agree','true');
?><br>
<?php
echo ERROR_NO_CONDITIONS;
in catalog/includes/languages/english.php add the following around line 205


// Agreement to conditions
define('CONDITION_AGREEMENT', '<center><b>I read the <a href="conditions.php" target="_blank">conditions of use</a> and I agree to them</b>');
define('ERROR_NO_CONDITIONS', 'Pleaser read our conditions of use and agree to them. If you do not so, your order will not be processed.');


for additional languages, please just put the last lines into your german.php / italian.php ect. and translate...


rock on!

本篇文章發表於2006-04-05 16:51
目前尚無任何回覆
   

回覆
如要回應,請先登入.