Jump to content

YePix

Members
  • Content count

    378
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by YePix

  1. Hello everyone. I would like to write the final total in the table customer_basket - final_price. does anyone of you have an approach how I can determine the amount from order_total in the shopping_cart.php classes?
  2. Hello, that's exactly how it is. I just don't get to the approach of the function that I have to write in the scopping_cart classes in order to implement this procedure.
  3. Subtotal - customer discount - customer points = final price
  4. Hi folks, I have installed the PhpMailer and everything so far ok and without errors. The problem is only the mails are shown as sent but do not arrive. Does anyone have a suggestion for me?
  5. YePix

    SMTP Authentication and OSCommerce

    I hope it works now;) For everyone in the future. Write by PM. You can get the required PHPMailer via the download link
  6. the shipping is 0.00 for me. When I look at the addon 2015 Order Totals 3.3 BS by @raiwa info@sarplataygemas.com from raiwa, the final price is calculated and output in includes / modules / content / shopping_cart. But I don't get any further in the shopping_cart classes. i only need the final price. before the customer clicks on the buy button in checkout_confirmation.php.
  7. YePix

    SMTP Authentication and OSCommerce

    Yes you are right. includes/classes/email.php Download and upload to your server the PHP-Mailer. PHP-Mailer you find here: https://forums.oscommerce.com/topic/94340-smtp-authentication-and-oscommerce/?page=3
  8. YePix

    NEW! Complete Order Editing Tool!

    Hello @BrockleyJohn, what could be the reason that when I click on edit I am always redirected to the index.php? BS EDGE
  9. YePix

    [Addon] Store Times BS

    @BrockleyJohnThank you too.
  10. YePix

    [Addon] Store Times BS

    Hi, that's already clear. However, this file does not exist with the add-on
  11. YePix

    [Addon] Store Times BS

    What is meant by this line? include_once( DIR_FS_CATALOG . 'includes/opencloz.php'); initialize_open_cloze();
  12. YePix

    Next osCommerce v4 demo

    Hi, so I'm sorry but I will not attach myself to it as long as it has to do with google. I don't need these criminals. Running a demo on your own system is apparently a problem? The next question is, why isn't the new version released so that others can look into it as well? It looks like a commercial version is being worked on. That wasn't the intention behind osCommerce.
  13. @Demitry Your last name is not reliable Biden, is it? That would explain a lot. In addition, the evolution from monkeys to ??? apparently not yet taken place.
  14. your statement confirms what I wrote earlier. again. Read first, then understand, and then answer. Otherwise, keep silent before more people form their opinions about people like you
  15. Your statement shows at what level your intellect is. Pathetic
  16. @Demitry This is exactly what my code does and a lot more. If it is installed, the user will see it too. ########################################## and if your help is to mill the forum with theories instead of at least introducing code approaches, then please let it be. Nobody here needs theories and information on how to do what. This forum should be there for mutual help and not a fairy tale book.
  17. Read, then understand, then post a solution and not propose a theory of what could be done. If you have no idea about the code then just let your stupid comments be. you just litter the forum with it.
  18. YePix

    Adminmenü (Backend) erweitern

    wo ist das Problem ? Kategorien => Neue Kategorie => Fertig
  19. Naturally. All you have to do is adjust the appropriate link 'product_info.php', 'products_id=' . $printlist['products_id']
  20. here the button with all parameters <span class="btn btn-success"><a href='<?php echo tep_href_link('product_info.php', 'products_id=' . $printlist['products_id']); ?>', target="_blank" onclick="window.open(this.href,this.target,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width=800,height=640,screenX=150,screenY=150,top=5,left=650'); return false;" class="btn btn-info btn-xs" role="button"><?php echo '<i class="fa fa-shopping-cart"></i>' . BUTTON_BUY_NOW;?></a></span>
  21. Then install this. Is another extension to see the comment status in the list. You can now use it to block all previous comments. admin/languages/orders.php find: define('ENTRY_NOTIFY_COMMENTS_STATUS', 'Comments status:'); define('COMMENTS_STATUS_ON', 'Comments on:'); define('COMMENTS_STATUS_OFF', 'Comments off:'); change to: define('ENTRY_NOTIFY_COMMENTS_STATUS', 'Comments status:'); define('COMMENTS_STATUS_ON', 'This comments on:'); define('COMMENTS_STATUS_OFF', 'This comments off:'); define('COMMENTS_STATUS_ALL', 'All comments off:'); define('COMMENTS_NOW_STATUS_ON', 'Comment on'); define('COMMENTS_NOW_STATUS_OFF', 'Comment off'); ################################ admin/orders.php find: tep_db_query("update " . TABLE_ORDERS_STATUS_HISTORY . " set comments_status = '" . tep_db_input($comments_status) . "', comments_status = '" . tep_db_input($comments_status) . "' where orders_id = '" . (int)$oID . "'"); change to: tep_db_query("update " . TABLE_ORDERS_STATUS_HISTORY . " set comments_status = '" . tep_db_input($comments_status) . "', comments_status = '" . tep_db_input($comments_status) . "' where orders_id = '" . (int)$oID . "' and date_added = now()"); if ($_POST['comments_status'] == '2'){ tep_db_query("update " . TABLE_ORDERS_STATUS_HISTORY . " set comments_status = '" . tep_db_input($comments_status) . "', comments_status = '" . tep_db_input($comments_status) . "' where orders_id = '" . (int)$oID . "'"); } find: if (isset($comments_status)) { $cm_status_on = ($comments_status == '1') ? true : false; } else { $cm_status_on = ($comments_status == '1') ? true : false; } $cm_status_off = !$cm_status_on; change to: if (!isset($comments_status)); switch ($comments_status) { case '0': $cm_status_on = false; $cm_status_off = false; $cm_status_all = true; break; case '1': $cm_status_on = true; $cm_status_off = false; $cm_status_all = false; break; case '2': $cm_status_on = false; $cm_status_off = true; $cm_status_all = false; break; default: $cm_status_on = false; $cm_status_off = false; $cm_status_all = true; } find: echo tep_draw_radio_field('comments_status', '1', $cm_status_on) . '&nbsp;&nbsp;' . COMMENTS_STATUS_OFF . '&nbsp;&nbsp;' . tep_draw_radio_field('comments_status', '0', $cm_status_off) . '&nbsp;&nbsp;' . COMMENTS_STATUS_ON; ?></td> change to: echo tep_draw_radio_field('comments_status', '2', $cm_status_all) . '&nbsp;&nbsp;' . COMMENTS_STATUS_ALL . '&nbsp;&nbsp;' . tep_draw_radio_field('comments_status', '1', $cm_status_on) . '&nbsp;&nbsp;' . COMMENTS_STATUS_OFF . '&nbsp;&nbsp;' . tep_draw_radio_field('comments_status', '0', $cm_status_off) . '&nbsp;&nbsp;' . COMMENTS_STATUS_ON; ?></td> find: <td class="dataTableHeadingContent" align="center"><strong><?php echo TABLE_HEADING_COMMENTS; ?></strong></td> add after: <td class="dataTableHeadingContent" align="center"><strong><?php echo ENTRY_NOTIFY_COMMENTS_STATUS; ?></strong></td> find: $orders_history_query = tep_db_query("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added desc"); change to: $orders_history_query = tep_db_query("select orders_status_id, date_added, customer_notified, comments, comments_status from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added desc"); find: while ($orders_history = tep_db_fetch_array($orders_history_query)) { add after: if ($orders_history['comments_status'] == 0){ $cs = COMMENTS_NOW_STATUS_ON;} if ($orders_history['comments_status'] == 1){ $cs = COMMENTS_NOW_STATUS_OFF;} if ($orders_history['comments_status'] == 2){ $cs = COMMENTS_NOW_STATUS_OFF;} find: ' <td class="dataTableContent" valign="top">' . nl2br(tep_db_output($orders_history['comments'])) . '&nbsp;</td>' . "\n" . add after: ' <td class="dataTableContent" valign="top">' . $cs . '&nbsp;</td>' . "\n" .
  22. As you can see @Demitry it is already online. So much for the very complicated topic and longer than 30 minutes. To everyone here in the forum. A little more support would be called for instead of pulling the money out of the pockets of the people for every little pups work. With more complicated contribs that's ok, but with little things it's a shame for everyone here who theorises a lot and basically has no idea or twisted the facts.
  23. here is the version for individual customers. Install the previous variant first. with this you can block the comments and status for all customers. Then the new one here. with this you can also block the status and comments for individual customers. Kind regards. phpMyAdmin add sql: ALTER TABLE `orders_status_history` ADD `comments_status` INT(1) NOT NULL ; or this: ALTER TABLE `orders_status_history` ADD `comments_status` INT(1) NOT NULL AFTER `comments`; ###################################### admin/languages/orders.php add: define('ENTRY_NOTIFY_COMMENTS_STATUS', 'Comments status:'); define('COMMENTS_STATUS_ON', 'Comments on:'); define('COMMENTS_STATUS_OFF', 'Comments off:'); ###################################### admin/orders.php find: $comments = tep_db_prepare_input($_POST['comments']); add after: $comments_status = tep_db_prepare_input($_POST['comments_status']); find: tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int)$oID . "'"); add after: tep_db_query("update " . TABLE_ORDERS_STATUS_HISTORY . " set comments_status = '" . tep_db_input($comments_status) . "', comments_status = '" . tep_db_input($comments_status) . "' where orders_id = '" . (int)$oID . "'"); find: tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')"); change to: tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments, comments_status) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "', '" . tep_db_input($comments_status) . "')"); find: <tr> <td><?php echo ENTRY_STATUS; ?></td> <td><?php echo tep_draw_pull_down_menu('status', $orders_statuses, $order->info['orders_status']); ?></td> </tr> add after: <td><?php echo ENTRY_NOTIFY_COMMENTS_STATUS; ?></td> <td><?php $comments_status_query = tep_db_query("select comments_status from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "'"); $c_status = tep_db_fetch_array($comments_status_query); $comments_status = $c_status['comments_status']; if (isset($comments_status)) { $cm_status_on = ($comments_status == '1') ? true : false; } else { $cm_status_on = ($comments_status == '1') ? true : false; } $cm_status_off = !$cm_status_on; echo tep_draw_radio_field('comments_status', '1', $cm_status_on) . ' ' . COMMENTS_STATUS_OFF . ' ' . tep_draw_radio_field('comments_status', '0', $cm_status_off) . ' ' . COMMENTS_STATUS_ON; ?></td> </tr> ###################################### account_history_info.php find: $statuses_query = tep_db_query("select os.orders_status_name, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int)$_GET['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int)$languages_id . "' and os.public_flag = '1' order by osh.date_added"); change to: $statuses_query = tep_db_query("select os.orders_status_name, osh.date_added, osh.comments, osh.comments_status from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int)$_GET['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int)$languages_id . "' and os.public_flag = '1' order by osh.date_added"); , osh.comments_status find: if (HIDE_STATUSES_COMMENTS_FOR_CUSTOMER_INFO == 'No'){ while ($statuses = tep_db_fetch_array($statuses_query)) { echo '<li>'; echo ' <div class="timeline-badge"><i class="fa fa-check-square-o"></i></div>'; echo ' <div class="timeline-panel">'; echo ' <div class="timeline-heading">'; echo ' <p class="pull-right"><small class="text-muted"><i class="fa fa-clock-o"></i> ' . tep_date_short($statuses['date_added']) . '</small></p><h2 class="timeline-title">' . $statuses['orders_status_name'] . '</h2>'; echo ' </div>'; echo ' <div class="timeline-body">'; echo ' <p>' . (empty($statuses['comments']) ? ' ' : '<blockquote>' . nl2br(tep_output_string_protected($statuses['comments'])) . '</blockquote>') . '</p>'; echo ' </div>'; echo ' </div>'; echo '</li>'; } } change to: if (HIDE_STATUSES_COMMENTS_FOR_CUSTOMER_INFO == 'No'){ while ($statuses = tep_db_fetch_array($statuses_query)) { if ($statuses['comments_status'] == '0'){ echo '<li>'; echo ' <div class="timeline-badge"><i class="fa fa-check-square-o"></i></div>'; echo ' <div class="timeline-panel">'; echo ' <div class="timeline-heading">'; echo ' <p class="pull-right"><small class="text-muted"><i class="fa fa-clock-o"></i> ' . tep_date_short($statuses['date_added']) . '</small></p><h2 class="timeline-title">' . $statuses['orders_status_name'] . '</h2>'; echo ' </div>'; echo ' <div class="timeline-body">'; echo ' <p>' . (empty($statuses['comments']) ? ' ' : '<blockquote>' . nl2br(tep_output_string_protected($statuses['comments'])) . '</blockquote>') . '</p>'; echo ' </div>'; echo ' </div>'; echo '</li>'; } } } #############################################
×