Jump to content

fruchtge

Members
  • Content count

    15
  • Joined

  • Last visited

About fruchtge

  • Birthday 01/04/1992

Profile Information

  • Real Name
    Jens Honda
  • Gender
    Male
  • Location
    Berlin
  1. fruchtge

    ULTIMATE Seo Urls 5 - by FWR Media

    Hello... in (and in all other page modules) page_modules/product_info.php just comment out Line 89 to 94: // if ( false !== $final_text_array = Usu_Main::i()->getVar( 'registry' )->retrieve( $this->key, $this->keys_index[$this->key] ) ) { // if ( Usu_Main::monitorPerformance() ) { // Usu_Main::$performance['queries_saved']++; // } // return $final_text_array; // } Robert, could you please explain me the use of this if clause so I can exclude any negative effects?
  2. Yup, same with me... ...but I tried only a few minutes. I have no time since next weekend. maybe someone is faster with an answer. So...
  3. Hi, I like to have the option buy x items get the cheapest for free in my shop. I like to change the $products_price variable in function calculate() und function get_products() of includes/classes/shopping_cart.php with this code (now it is basic and just an idea) if ( ($this->count_contents() > 3) && ($products_id == $this->cheapestproduct())) { $products_price = '0'; } my Problem is to get the cheapest item in cart, my function cheapestproduct() does not work: function cheapestproduct() { if (is_array($this->contents)) { reset($this->contents); while (list($products_id, ) = each($this->contents)) { $product_special_query = tep_db_query("select products_id, products_price from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'"); if ($product_special = tep_db_fetch_array($product_special_query)) { $pr_special_id = $product_special['products_id']; $products_special_price = $product_special['products_price']; $specials_special_query = tep_db_query("select specials_new_products_price from " . TABLE_SPECIALS . " where products_id = '" . (int)$prid . "' and status = '1'"); if (tep_db_num_rows ($specials_special_query)) { $specials_special = tep_db_fetch_array($specials_special_query); $products_special_price = $specials_special['specials_new_products_price']; } // $this->total += $currencies->calculate_price($products_price, $products_tax, $qty); // $this->weight += ($qty * $products_weight); } if (tep_not_null($cheapestproduct)) { if ($products_special_price < $cheapestprice) { $cheapestproduct = $products_id; $cheapestprice = $products_special_price; } else { } } else { $cheapestproduct = $products_id; $cheapestprice = $products_special_price; } } } return $cheapestproduct; } Maybe someone could help.
  4. fruchtge

    Automatically send data feed to Froogle

    Thank your for the quick answer. But this seems not to be a solution. It looks like the language file connot be found?!? Could htaccess protection of the admin directory could be the reason? I tried also to call the file external via wget command... same result.
  5. fruchtge

    Automatically send data feed to Froogle

    Hi there, I have a Problem with the cronjob. it says: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent in /myserver/htdocs/catalog/includes/functions/sessions.php on line 102 PHP Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent in /myserver/htdocs/catalog/includes/functions/sessions.php on line 102 PHP Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /myserver/htdocs/catalog/includes/functions/sessions.php:102) in /myserver/htdocs/catalog/includes/functions/sessions.php on line 102 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /myserver/htdocs/catalog/includes/functions/sessions.php:102) in /myserver/htdocs/catalog/includes/functions/sessions.php on line 102 Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /myserver/htdocs/catalog/includes/application_top.php on line 291 Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/opt/RZphp5/includes') in /myserver/htdocs/catalog/includes/application_top.php on line 291 PHP Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /myserver/htdocs/catalog/includes/application_top.php on line 291 PHP Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/opt/RZphp5/includes') in /myserver/htdocs/catalog/includes/application_top.php on line 291 It seems to be that files are not accesible. Plaease Help me.
  6. fruchtge

    News Blog V1.0

    How can i get $date['month_date'] to display month name in correct language. ??? it is always displayed in english. anyone has an idea? Thanks.
  7. fruchtge

    NEW! Complete Order Editing Tool!

    Hi there, i have a question to this part of the code in edit_orders.php // For each available payment module, check if enabled for ($i=0, $n=sizeof($directory_array); $i<$n; $i++) { $file = $directory_array[$i]; include(DIR_FS_CATALOG_LANGUAGES . $language . '/modules/payment/' . $file); include($module_directory . $file); $class = substr($file, 0, strrpos($file, '.')); if (tep_class_exists($class)) { $module = new $class; if ($module->check() > 0) { // If module enabled create array of titles $enabled_payment[] = array('id' => $module->title, 'text' => $module->title); //if the payment method is the same as the payment module title then don't add it to dropdown menu if ($module->title == $order->info['payment_method']) { $paymentMatchExists='true'; } } } } //just in case the payment method found in db is not the same as the payment module title then make it part of the dropdown array or else it cannot be the selected default value if ($paymentMatchExists !='true') { $enabled_payment[] = array('id' => $order->info['payment_status'], 'text' => $order->info['payment_method']); } $enabled_payment[] = array('id' => 'bar', 'text' => 'Bar'); $enabled_payment[] = array('id' => 'terminal', 'text' => 'Terminal CC/EC'); //draw the dropdown menu for payment methods and default to the order value if (ORDER_EDITOR_USE_AJAX == 'true') { echo tep_draw_pull_down_menu('update_info_payment_method', $enabled_payment, $order->info['payment_method'], 'id="update_info_payment_method" style="width: 150px;" onChange="init(); updateOrdersField(\'payment_method\', this.options[this.selectedIndex].text)"'); } else { echo tep_draw_pull_down_menu('update_info_payment_method', $enabled_payment, $order->info['payment_method'], 'id="update_info_payment_method" style="width: 150px;" onChange="init();"'); } } else { //draw the input field for payment methods and default to the order value ?> <input name="update_info_payment_method" size="35" value="<?php echo $order->info['payment_method']; ?>" id="update_info_payment_method" onChange="init();<?php if (ORDER_EDITOR_USE_AJAX == 'true') { ?> updateOrdersField('payment_method', encodeURIComponent(this.value));<?php } ?>"> <?php } //END for payment dropdown menu use this by quick_fixer ?> in this part $enabled_payment[] = array('id' => $module->title, 'text' => $module->title); the payment module title is read and if i change it to $enabled_payment[] = array('id' => $module->code, 'text' => $module->title); the payment module code is read and in this part $enabled_payment[] = array('id' => $order->info['payment_status'], 'text' => $order->info['payment_method']); } $enabled_payment[] = array('id' => 'bar', 'text' => 'Bar'); $enabled_payment[] = array('id' => 'terminal', 'text' => 'Terminal CC/EC'); //draw the dropdown menu for payment methods and default to the order value if (ORDER_EDITOR_USE_AJAX == 'true') { echo tep_draw_pull_down_menu('update_info_payment_method', $enabled_payment, $order->info['payment_method'], 'id="update_info_payment_method" style="width: 150px;" onChange="init(); updateOrdersField(\'payment_method\', this.options[this.selectedIndex].text)"'); } else { echo tep_draw_pull_down_menu('update_info_payment_method', $enabled_payment, $order->info['payment_method'], 'id="update_info_payment_method" style="width: 150px;" onChange="init();"'); } } else { //draw the input field for payment methods and default to the order value ?> <input name="update_info_payment_method" size="35" value="<?php echo $order->info['payment_method']; ?>" id="update_info_payment_method" onChange="init();<?php if (ORDER_EDITOR_USE_AJAX == 'true') { ?> updateOrdersField('payment_method', encodeURIComponent(this.value));<?php } ?>"> <?php } //END for payment dropdown menu use this by quick_fixer ?> the module 'title' now 'text' and $order->info['payment_method'] is written in the field payment_method in table order. My question is now how can I wirte 'code' now 'id' into a new field in table orders called payment_code at the same time. Problem is that input values are used an i only can define one value. please help me i have no idea thank you!
  8. I have a little sucess: adding: if (tep_not_null($listing['specials_new_products_price'])) { } else { twice before for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { do not forget } after $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); } in product_listing.php makes specials disappear. But there is a problem with page splitting: Specials are still counted. Again if someone would help me would be nice.
  9. Hi there, I have one of those tax problems. I want to display all prices with tax. If I choose "Display discount with discounted tax applied" and make a coupon with percentage everything is calculated fine. But when I choose a fixed amount I have to enter the amont without Tax when i make i Coupon, thats not so fine becaue all of my fixed coupons are with tax. I tryed a little, but i have no good PHP and JS skills. The thing that there is only on field for fixed n percentage amounts made me stuck. :-D Well it´s not so urgent, but it would be nice for everyone who has Coupons with tax.
  10. fruchtge

    Contribution: Auto Backup Database

    Hi folks, I have the same problem ;-) it is because a htacces password protection. Is there an ability to add password in path to dingsbum_backup.php ?
  11. Hi, I work on a contiribution that hides products that have a special price. Because of bad php knowledge I am stuck. I had the idea to realize it in product listing.php just add: if (tep_not_null($listing['status'])) { } else { before: $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id'); if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> ... ... new productListingBox($list_box_contents); } if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } } ?> I don´t see trough the whole arrey, fetch etc tingies.... Please help me.
  12. fruchtge

    NEW! Complete Order Editing Tool!

    Hi all, thank you much for your commitments, and thats the problem: If edited orders are deleted, stock is not updated.
  13. fruchtge

    NEW! Complete Order Editing Tool!

    Hello Hello, I just installed Order Editor order_editor_5_0_7 and qtpro4.6.1 and found a small bug. So everything works fine... I place an order in the shop, fine clothing in vaious colors an sizes. Then I open order editor, deleting products, edit qty., add new products,... the Stock for all colors and sizes is perfectly updated. So here comes the bug: Now I open orders.php and delete the whole order. Now the stock from the new products I added with order editor is not updated. Anyone had the same ploblem or a solution for that? life long and knusper! Thank you!
×