Jump to content

ygor1980

Members
  • Content count

    9
  • Joined

  • Last visited

Profile Information

  1. Hi guys, I have installed CCGV5.15a2 then i got that messages when i try to purchase : CCGV works great. But that fatal error mess up osc template. how can i fix that problem. Site works well but this mess up very bad. Someone please helpme? Error Messages : Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/orga/public_html/store/includes/boxes/categories.php:13) in /home/orga/public_html/store/includes/footer.php on line 33 code on categories.php 13 function tep_show_category($counter) { 14 global $tree, $categories_string, $cPath_array; code on footer.php.php 33 function tep_show_category($counter) { 34 global $tree, $categories_string, $cPath_array; Please help me.thanks.
  2. Hi guys, I have installed CCGV5.15a2 then i got that messages. CCGV works great. But that fatal error mess up osc template. how can i fix that problem. Site works well but this mess up very bad. Someone please helpme? Error Messages : Fatal error: Cannot redeclare tep_show_category() (previously declared in /home/orga/public_html/store/includes/boxes/categories.php:13) in /home/orga/public_html/store/includes/footer.php on line 33 code on categories.php 13 function tep_show_category($counter) { 14 global $tree, $categories_string, $cPath_array; code on footer.php.php 33 function tep_show_category($counter) { 34 global $tree, $categories_string, $cPath_array; Please help me.thanks.
  3. hi guys I just have installed CCGV5.15 version on my site. I did everything well. but i cant reach my website now( Admin area too). could somebody help me please, What i can do for this error. thanks. I see this messages ON ADMIN: Fatal error: Cannot redeclare create_coupon_code() (previously declared in /home/orga/public_html/store/admin/includes/functions/general.php:18) in /home/orga/public_html/store/admin/includes/add_ccgvdc_application_top.php on line 25 I see this message on Catalog : Fatal error: Cannot redeclare create_coupon_code() (previously declared in /home/orga/public_html/store/includes/functions/general.php:17) in /home/orga/public_html/store/includes/add_ccgvdc_application_top.php on line 36 code for general.php: / // ########### Added CCGV #################### //// // Create a Coupon Code. length may be between 1 and 16 Characters // $salt needs some thought. function create_coupon_code($salt="secret", $length = SECURITY_CODE_LENGTH) { $ccid = md5(uniqid("","salt")); $ccid .= md5(uniqid("","salt")); $ccid .= md5(uniqid("","salt")); $ccid .= md5(uniqid("","salt")); srand((double)microtime()*1000000); // seed the random number generator $random_start = @rand(0, (128-$length)); $good_result = 0; while ($good_result == 0) { code for add_ccgc ...php // Create a Coupon Code. length may be between 1 and 16 Characters // $salt needs some thought. function create_coupon_code($salt="secret", $length = SECURITY_CODE_LENGTH) { $ccid = md5(uniqid("","salt")); $ccid .= md5(uniqid("","salt")); $ccid .= md5(uniqid("","salt")); $ccid .= md5(uniqid("","salt")); srand((double)microtime()*1000000); // seed the random number generator $random_start = @rand(0, (128-$length)); $good_result = 0; while ($good_result == 0) { $id1=substr($ccid, $random_start,$length); $query = tep_db_query("select coupon_code from " . TABLE_COUPONS . " where coupon_code = '" . $id1 . "'"); if (tep_db_num_rows($query) == 0) $good_result = 1; } return $id1; } //// // Update the Customers GV account function tep_gv_account_update($customer_id, $gv_id) { $customer_gv_query = tep_db_query("select amount from " . TABLE_COUPON_GV_CUSTOMER . " where customer_id = '" . $customer_id . "'"); $coupon_gv_query = tep_db_query("select coupon_amount from " . TABLE_COUPONS . " where coupon_id = '" . $gv_id . "'"); $coupon_gv = tep_db_fetch_array($coupon_gv_query); if (tep_db_num_rows($customer_gv_query) > 0) { $customer_gv = tep_db_fetch_array($customer_gv_query); $new_gv_amount = $customer_gv['amount'] + $coupon_gv['coupon_amount']; // new code bugfix $gv_query = tep_db_query("update " . TABLE_COUPON_GV_CUSTOMER . " set amount = '" . $new_gv_amount . "' where customer_id = '" . $customer_id . "'"); // original code $gv_query = tep_db_query("update " . TABLE_COUPON_GV_CUSTOMER . " set amount = '" . $new_gv_amount . "'"); } else { $gv_query = tep_db_query("insert into " . TABLE_COUPON_GV_CUSTOMER . " (customer_id, amount) values ('" . $customer_id . "', '" . $coupon_gv['coupon_amount'] . "')"); } } //// // Get tax rate from tax description function tep_get_tax_rate_from_desc($tax_desc) { $tax_query = tep_db_query("select tax_rate from " . TABLE_TAX_RATES . " where tax_description = '" . $tax_desc . "'"); $tax = tep_db_fetch_array($tax_query); return $tax['tax_rate']; } ?>
  4. hi, how are you? i installed pwa 1.01 contribution today. I did everything what you say. But after that pwa and other create account is not working. error messages : Parse error: parse error, unexpected T_REQUIRE in /home/modern/public_html/store/create_account.php on line 18 i dont understand what happend. on line 18 : require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT); Could you help me please i need yours advise.thanks. my site : www.moderntesettur.com. Waiting your respond shortly. Thanks.
  5. hi, Does anyone have an answer or help for this problem? As I installed CC&GV last night and Im getting the parse error. Any help would be appreciated, thanks. error message : Parse error: parse error, unexpected $ in /home/hititde/public_html/dd/admin/coupon_admin.php on line 247 but problem is there is no line 247 in /home/hititde/public_html/dd/admin/coupon_admin.php thanks for help..
×