Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

rubberfashion

Pioneers
  • Posts

    29
  • Joined

  • Last visited

Everything posted by rubberfashion

  1. Next issue: When i try to return a product .... i get same page again. Continue reload only the page. I see only page with radio button again. This happen in front page, also in admin page. return_product.php?action=return_new&orders_id=....
  2. When i put the content of the includes/functions/return_functions.php in General.php ... it works. But i also get this Text above the header: $orders_status['return_reason_id'], 'text' => $orders_status['return_reason_name'] ); } return $orders_status_array; } function tep_get_return_reason_name($return_reason_id, $language_id = '') { global $languages_id; if ($return_reason_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select return_reason_name from return_reasons where return_reason_id = '" . $return_reason_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['return_reason_name']; } function tep_calculate_deduct($price, $tax) { global $currencies; return (($price / 100) * $tax); } function tep_get_returns_status() { global $languages_id; $orders_status_array = array(); $orders_status_query = tep_db_query("select returns_status_id, returns_status_name from returns_status where language_id = '" . $languages_id . "' order by returns_status_id"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_status_array[] = array('id' => $orders_status['returns_status_id'], 'text' => $orders_status['returns_status_name'] ); } return $orders_status_array; } function tep_get_returns_status_name($returns_status_id, $language_id = '') { global $languages_id; if ($returns_status_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select returns_status_name from returns_status where returns_status_id = '" . $returns_status_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['returns_status_name']; } function tep_get_refund_method() { global $languages_id; $orders_status_array = array(); $orders_status_query = tep_db_query("select refund_method_id, refund_method_name from refund_method where language_id = '" . $languages_id . "' order by refund_method_id"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_status_array[] = array('id' => $orders_status['refund_method_id'], 'text' => $orders_status['refund_method_name'] ); } return $orders_status_array; } function tep_get_refund_method_name($refund_method_id, $language_id = '') { global $languages_id; if ($refund_method_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select refund_method_name from refund_method where refund_method_id = '" . $refund_method_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['refund_method_name']; } function tep_remove_return($order_id, $restock = false) { if ($restock == 'on') { $order_query = tep_db_query("select products_id, products_quantity from returns_products_data where returns_id = '" . tep_db_input($order_id) . "'"); while ($order = tep_db_fetch_array($order_query)) { tep_db_query("update products set products_quantity = products_quantity + " . $order['products_quantity'] . " where products_id = '" . $order['products_id'] . "'"); tep_db_query("update products set products_status = 1 where products_quantity > 0 and products_id = '" . $order['products_id'] . "'"); } } tep_db_query("delete from returned_products where returns_id = '" . tep_db_input($order_id) . "'"); tep_db_query("delete from returns_products_data where returns_id = '" . tep_db_input($order_id) . "'"); tep_db_query("delete from refund_payments where returns_id = '" . tep_db_input($order_id) . "'"); } When you comment out //include('includes/functions/return_functions.php'); in each file and put the functions in general.php the text in the header is not there.
  3. If i comment out the function file //include('includes/functions/return_functions.php'); i get the same error. So maybe the file is not included.
  4. Error for refund_methods.php Fatal error: Uncaught Error: Call to undefined function tep_get_refund_method_name() in ...\refund_methods.php:205 Stack trace: #0 {main} thrown in ...\refund_methods.php on line 205 $orders_status['return_reason_id'], 'text' => $orders_status['return_reason_name'] ); } return $orders_status_array; } function tep_get_return_reason_name($return_reason_id, $language_id = '') { global $languages_id; if ($return_reason_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select return_reason_name from return_reasons where return_reason_id = '" . $return_reason_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['return_reason_name']; } function tep_calculate_deduct($price, $tax) { global $currencies; return (($price / 100) * $tax); } function tep_get_returns_status() { global $languages_id; $orders_status_array = array(); $orders_status_query = tep_db_query("select returns_status_id, returns_status_name from returns_status where language_id = '" . $languages_id . "' order by returns_status_id"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_status_array[] = array('id' => $orders_status['returns_status_id'], 'text' => $orders_status['returns_status_name'] ); } return $orders_status_array; } function tep_get_returns_status_name($returns_status_id, $language_id = '') { global $languages_id; if ($returns_status_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select returns_status_name from returns_status where returns_status_id = '" . $returns_status_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['returns_status_name']; } function tep_get_refund_method() { global $languages_id; $orders_status_array = array(); $orders_status_query = tep_db_query("select refund_method_id, refund_method_name from refund_method where language_id = '" . $languages_id . "' order by refund_method_id"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_status_array[] = array('id' => $orders_status['refund_method_id'], 'text' => $orders_status['refund_method_name'] ); } return $orders_status_array; } function tep_get_refund_method_name($refund_method_id, $language_id = '') { global $languages_id; if ($refund_method_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select refund_method_name from refund_method where refund_method_id = '" . $refund_method_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['refund_method_name']; } function tep_remove_return($order_id, $restock = false) { if ($restock == 'on') { $order_query = tep_db_query("select products_id, products_quantity from returns_products_data where returns_id = '" . tep_db_input($order_id) . "'"); while ($order = tep_db_fetch_array($order_query)) { tep_db_query("update products set products_quantity = products_quantity + " . $order['products_quantity'] . " where products_id = '" . $order['products_id'] . "'"); tep_db_query("update products set products_status = 1 where products_quantity > 0 and products_id = '" . $order['products_id'] . "'"); } } tep_db_query("delete from returned_products where returns_id = '" . tep_db_input($order_id) . "'"); tep_db_query("delete from returns_products_data where returns_id = '" . tep_db_input($order_id) . "'"); tep_db_query("delete from refund_payments where returns_id = '" . tep_db_input($order_id) . "'"); } Error for returns_reasons.php: Fatal error: Uncaught Error: Call to undefined function tep_get_return_reason_name() in ...\returns_reasons.php:204 Stack trace: #0 {main} thrown in ...\returns_reasons.php on line 204 $orders_status['return_reason_id'], 'text' => $orders_status['return_reason_name'] ); } return $orders_status_array; } function tep_get_return_reason_name($return_reason_id, $language_id = '') { global $languages_id; if ($return_reason_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select return_reason_name from return_reasons where return_reason_id = '" . $return_reason_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['return_reason_name']; } function tep_calculate_deduct($price, $tax) { global $currencies; return (($price / 100) * $tax); } function tep_get_returns_status() { global $languages_id; $orders_status_array = array(); $orders_status_query = tep_db_query("select returns_status_id, returns_status_name from returns_status where language_id = '" . $languages_id . "' order by returns_status_id"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_status_array[] = array('id' => $orders_status['returns_status_id'], 'text' => $orders_status['returns_status_name'] ); } return $orders_status_array; } function tep_get_returns_status_name($returns_status_id, $language_id = '') { global $languages_id; if ($returns_status_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select returns_status_name from returns_status where returns_status_id = '" . $returns_status_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['returns_status_name']; } function tep_get_refund_method() { global $languages_id; $orders_status_array = array(); $orders_status_query = tep_db_query("select refund_method_id, refund_method_name from refund_method where language_id = '" . $languages_id . "' order by refund_method_id"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_status_array[] = array('id' => $orders_status['refund_method_id'], 'text' => $orders_status['refund_method_name'] ); } return $orders_status_array; } function tep_get_refund_method_name($refund_method_id, $language_id = '') { global $languages_id; if ($refund_method_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select refund_method_name from refund_method where refund_method_id = '" . $refund_method_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['refund_method_name']; } function tep_remove_return($order_id, $restock = false) { if ($restock == 'on') { $order_query = tep_db_query("select products_id, products_quantity from returns_products_data where returns_id = '" . tep_db_input($order_id) . "'"); while ($order = tep_db_fetch_array($order_query)) { tep_db_query("update products set products_quantity = products_quantity + " . $order['products_quantity'] . " where products_id = '" . $order['products_id'] . "'"); tep_db_query("update products set products_status = 1 where products_quantity > 0 and products_id = '" . $order['products_id'] . "'"); } } tep_db_query("delete from returned_products where returns_id = '" . tep_db_input($order_id) . "'"); tep_db_query("delete from returns_products_data where returns_id = '" . tep_db_input($order_id) . "'"); tep_db_query("delete from refund_payments where returns_id = '" . tep_db_input($order_id) . "'"); } Error for returns_reasons.php: Fatal error: Uncaught Error: Call to undefined function tep_get_returns_status_name() in ...\returns_status.php:220 Stack trace: #0 {main} thrown in ...\returns_status.php on line 220 orders_status['return_reason_id'], 'text' => $orders_status['return_reason_name'] ); } return $orders_status_array; } function tep_get_return_reason_name($return_reason_id, $language_id = '') { global $languages_id; if ($return_reason_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select return_reason_name from return_reasons where return_reason_id = '" . $return_reason_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['return_reason_name']; } function tep_calculate_deduct($price, $tax) { global $currencies; return (($price / 100) * $tax); } function tep_get_returns_status() { global $languages_id; $orders_status_array = array(); $orders_status_query = tep_db_query("select returns_status_id, returns_status_name from returns_status where language_id = '" . $languages_id . "' order by returns_status_id"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_status_array[] = array('id' => $orders_status['returns_status_id'], 'text' => $orders_status['returns_status_name'] ); } return $orders_status_array; } function tep_get_returns_status_name($returns_status_id, $language_id = '') { global $languages_id; if ($returns_status_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select returns_status_name from returns_status where returns_status_id = '" . $returns_status_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['returns_status_name']; } function tep_get_refund_method() { global $languages_id; $orders_status_array = array(); $orders_status_query = tep_db_query("select refund_method_id, refund_method_name from refund_method where language_id = '" . $languages_id . "' order by refund_method_id"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_status_array[] = array('id' => $orders_status['refund_method_id'], 'text' => $orders_status['refund_method_name'] ); } return $orders_status_array; } function tep_get_refund_method_name($refund_method_id, $language_id = '') { global $languages_id; if ($refund_method_id < 1) return TEXT_DEFAULT; if (!is_numeric($language_id)) $language_id = $languages_id; $status_query = tep_db_query("select refund_method_name from refund_method where refund_method_id = '" . $refund_method_id . "' and language_id = '" . $language_id . "'"); $status = tep_db_fetch_array($status_query); return $status['refund_method_name']; } function tep_remove_return($order_id, $restock = false) { if ($restock == 'on') { $order_query = tep_db_query("select products_id, products_quantity from returns_products_data where returns_id = '" . tep_db_input($order_id) . "'"); while ($order = tep_db_fetch_array($order_query)) { tep_db_query("update products set products_quantity = products_quantity + " . $order['products_quantity'] . " where products_id = '" . $order['products_id'] . "'"); tep_db_query("update products set products_status = 1 where products_quantity > 0 and products_id = '" . $order['products_id'] . "'"); } } tep_db_query("delete from returned_products where returns_id = '" . tep_db_input($order_id) . "'"); tep_db_query("delete from returns_products_data where returns_id = '" . tep_db_input($order_id) . "'"); tep_db_query("delete from refund_payments where returns_id = '" . tep_db_input($order_id) . "'"); }
  5. Also change: catalog\includes\modules\content\product_info\cm_pi_extended_reviews.php: } else { $review_data .= '<div>'. REVIEWS_TEXT_RATED_LETKNOW .'</div>'; } ob_start(); include('includes/modules/content/' . $this->group . '/templates/extended_reviews.php'); Also update catalog\includes\languages\english\modules\content\product_info\cm_pi_extended_reviews.php define('REVIEWS_TEXT_RATED_LETKNOW','Let other customers know about this product.'); Also update catalog\includes\languages\german\modules\content\product_info\cm_pi_extended_reviews.php define('REVIEWS_TEXT_RATED_LETKNOW','Teilen sie Ihre Erfahrungen über dieses Produkt mit anderen!');
  6. Hello, nice work!! here some changes for better multilanguage support: catalog/review.php and catalog/product_reviews.php: echo '<p style="margin-top:15px;"><span>' . REVIEWS_TEXT_RATED_HELPFUL . ' </span><a href="javascript:reviewVote(\'votesUp\', '.$reviews['reviews_id'].')" class="btn btn-default"><span class="fa fa-thumbs-up fa-lg"></span><span class="numUpDv" id="vUP_'.$reviews['reviews_id'].'" '.$upvotes_num_style.'> '.$r_upvotes.' </span> '. REVIEWS_TEXT_RATED_THANK .' '.$reviews_name.'</a> <a href="javascript:reviewVote(\'votesDown\','.$reviews['reviews_id'].')" class="btn btn-default"><span class="fa fa-thumbs-down fa-lg"></span><span class="numUpDv" id="vDOWN_'.$reviews['reviews_id'].'" '.$downvotes_num_style.'> '.$r_downvotes.' </span></a></p>'; <script> function reviewVote(vote_action, review_id){ var posturl = '<?php echo tep_href_link('ajax_review_votes.php','',$request_type);?>'; var pass_data = 'action=' + vote_action + '&reviews_id=' + review_id; $.ajax({ url: posturl, data: pass_data, type: 'POST', success: function(data) { if(data == 'NOTOK'){ var message = '<?php echo REVIEWS_TEXT_RATED_NOTALLOWEDSEND;?>'; }else if(data == 'already_voted'){ var message = '<?php echo REVIEWS_TEXT_RATED_ALREADYVOTED;?>'; alert(message); }else if(data == ''){ var message = '<?php echo REVIEWS_TEXT_RATED_TRYAGAIN;?>'; alert(message); }else if(data.match(/^\d+$/)){ if(vote_action == 'votesUp'){ $("#vUP_" + review_id).html(" " + data + " "); $("#vUP_" + review_id).show(); //alert(data); }else if(vote_action == 'votesDown'){ $("#vDOWN_" + review_id).html(" " + data + " "); $("#vDOWN_" + review_id).show(); //alert(data); } }else{ alert(data); alert("<?php echo REVIEWS_TEXT_RATED_ERRORINCODE;?>"); } //alert(data); }, error: function() { var message = '<?php echo REVIEWS_TEXT_RATED_ERRORAJAX;?>'; alert(message); } });//end call ajax } </script> ADD: \catalog\includes\languages\german\reviews.php and product_reviews.php : define('REVIEWS_TEXT_RATED_HELPFUL','War diese Bewertung hilfreich?'); define('REVIEWS_TEXT_RATED_THANK','Danke'); define('REVIEWS_TEXT_RATED_NOTALLOWEDSEND','Sie dürfen dieses Formular nicht senden!'); define('REVIEWS_TEXT_RATED_ALREADYVOTED','Ihre Stimme wurde bereits erfasst. Vielen Dank!'); define('REVIEWS_TEXT_RATED_TRYAGAIN','Es tut uns leid! Bitte versuche es erneut.'); define('REVIEWS_TEXT_RATED_ERRORINCODE','Fehler im Code!'); define('REVIEWS_TEXT_RATED_ERRORAJAX','Fehler bei ajax! Bitte versuchen Sie es erneut.'); \catalog\includes\languages\english\reviews.php and product_reviews.php : define('REVIEWS_TEXT_RATED_HELPFUL','Was this review helpful?'); define('REVIEWS_TEXT_RATED_THANK','Thank'); define('REVIEWS_TEXT_RATED_NOTALLOWEDSEND','You are not allowed to send this form!'); define('REVIEWS_TEXT_RATED_ALREADYVOTED','Your vote has been already recorded. Thank you!'); define('REVIEWS_TEXT_RATED_TRYAGAIN','Sorry! Please try again.'); define('REVIEWS_TEXT_RATED_ERRORINCODE','Error in code!'); define('REVIEWS_TEXT_RATED_ERRORAJAX','Error in ajax!Please try again.');
  7. Hi Rainer, great contribution! problem exists anymore. ( I have one problem when I enable this add on for the : product_info.php page, I get the following at the top left side of this page : Incl. 21% BTW"> Incl. 21% BTW" /> ) After deactivating the open_graph in SEO Header Tag V3.3.5 the problem is solved. Kind Regards David
  8. Hi, Attention: cm_cart_shipping_estimator.php echo '<br>$selected_address' . $selected_address; echo '<br>$sendto' . $sendto; echo '<br>$cart_address_id' . $cart_address_id; Debug-Modus?!?
  9. Please send a message to [email protected] I will send you the file then. Regards Dave
  10. Thanks Rainer for your help :) Nice Contrib. Great Work!
  11. Hi, i have tried with new shopping_cart.php from fresh installation. No Change. I had deactivated all shipping modules and deactivate separatly. No Channge. When i push the Update Button (new quantity) the shipping costs window get empty. I do not know if it make sense to send you the code of the edited shopping_cart.php. Maybe it is an error in application_top.php?? Maybe i can send you my modified shopping_cart.php via PN. Much Thanks for your help!! Kind Regards Dave
  12. PHP 5.4.41-1~he.0 (Zend: 2.4.0) I have installed these modules. What is curious is, taht the first time all went well and after updating nothing works. Maybe you can recommend me a shipping modul which is much better. Thanks for your help.
  13. What i find out currently is that the array $quotes = $shipping_modules->quote(); is empty. tep_count_shipping_modules() is 0. Means that the shipping module is not loaded. Also only push the update (quantity) button make $quotes to 0. Thats why the output is like it is.But i do not know how to solve.
  14. Hello, Nice Contrib! i have a problem with this contrib. When i add first time a product everything works find. But when i update the cart to items 2x or add any other product no shipping costs were displayed. http://www.rubberfashion.de/shopping_cart.php I use Contrib visible contries. i have no clou why this happend. Thanks for help. Kind Regards David
  15. Another problem is, if the news text consists html you will also get W3C problems or cuttet HTML code. Now the headline is only wrapped as a link. Also TEXT_READ_MORE is already not defined! This will solve the problem: $wrapper_slides .= '<a href="' . tep_href_link('latest_news.php', 'news_id=' . $latest_news['news_id'], $request_type) . '">'; $wrapper_slides .= '<div class="carousel-text"><strong>' . $latest_news['headline'] . '</strong><span class="pull-right"><i>' . sprintf(TEXT_NEWS_DATE_ADDED, tep_date_short($latest_news['date_added'])) . '</i></span>' . '</div>'; $wrapper_slides .= '</a>'; $text_lenght = strlen($latest_news['content']); if($latest_news['content'] != strip_tags($latest_news['content'])) { $content = $latest_news['content']; } else { if($text_lenght > '1100') { $content = truncateHtml($latest_news['content'], 800); $content = substr($content, 0, strrpos($content, ' ')) . '><strong> '. TEXT_READ_MORE . '</strong>'; } else { $content = $latest_news['content']; } } $wrapper_slides .= '<div class="carousel-text">' . $content .'</div>'; //$wrapper_slides .= '</a>';
  16. Hi again, after checking W3C i got 3 errors: The problem is when you insert links (<a>) in the news text. The entry is displayed as a fully link. When you insert a link you will have a double open a-tag. W3C Error: <a> Start tag a seen but an element of the same type was already open. https://validator.w3.org/check?uri=http%3A%2F%2Fwww.rubberfashion.de%2F&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices
  17. Hi, i mean the text in the preview window. But i also see that it is also a problem of ckeditor as you said.
  18. i mean here like it is done in Reviews. Not refer to reviews. Sorry for confusion.
  19. Bug: i guess the scroller was used from another modul. When you add more items with scrolling some of the letters can not be read because of a white dot. Also when you have different news the high of the news box change very often. see: http://www.rubberfashion.de/index.php?language=ge Possibility to set up a certain high or calculate the max high of all news :) THANKS FOR YOUR SUPPORT. Sorry for the many posts, but i am testing :)
  20. No bug, but can you add some space (cellspacing) to the news displaying. -> move the news more in the center i tryed to use html zu move the text, but the title is not moving.
×
×
  • Create New...