Jump to content

De Dokta

Members
  • Content count

    329
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by De Dokta

  1. De Dokta

    Invoice Editor 1.0

    @@ArtcoInc Hi Malcolm Yes, resetting the invoice number to 1 at the turn of the year is a function of the invoice Editor. As far as I know, there is no own invoice number function in osc I prefer a new count for each year. If you prefer a continuous counting without reset, go to admin\includes\functions\invoice_num.php and replace the complete code by: function tep_set_num($oID) { $invoice_query = tep_db_query("select orders_id, num_invoice from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); $mes = tep_db_fetch_array($invoice_query); if($mes['num_invoice'] == '0') { $num_invoice = ''; $zahl_query = tep_db_query("select count(*) as number from " . TABLE_ORDERS .""); $zahl = tep_db_fetch_array($zahl_query); if($zahl['number'] == '0'){ $num_invoice = '1'; }else{ $next_num_query = tep_db_query("select max(num_invoice) as num_invoice from " . TABLE_ORDERS .""); $next_num = tep_db_fetch_array($next_num_query); if(!isset($next_num['num_invoice'])){ $num_invoice = 1; }else{ $num_invoice = $next_num['num_invoice']+1; } } return tep_db_query("update " . TABLE_ORDERS . " set num_invoice = '". $num_invoice . "', orders_date_finished = '" . $date . "' where orders_id = '" . (int)$oID . "'"); } } That's all! J.J.
  2. @@burt Tested it in an unmodified and a heavily modified BS shop. Works fine in both full and collapsed view. I agree with altoid that the New Products module should be removable from the admin. In the german forum I answered a million times the question of users how to remove it from the start page... J.J.
  3. One little thing. In checkout_shipping the code for the radio fields reads: tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked, 'required aria-required="true"') where a little label appears if the customer made no selection. In checkout_payment: echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment)); => no label! I changed that to: echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment), 'required aria-required="true"'); Now there's also a label. :) J.J.
  4. @@ArtcoInc Nothing is impossible with osc (w00t) . But how this could be done in the case, I have to think about it when I have some more time for it........... J.J.
  5. @@ArtcoInc If that happens you have something overseen in the installation. Installation.txt: 2.1 checkout_process.php; Finde / find: // lets start with the email confirmation $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } Ersetze durch / replace by: // lets start with the email confirmation $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n"; if(!tep_session_is_registered('customer_is_guest')) { $email_order .= EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n"; } $email_order .= EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; if(tep_session_is_registered('customer_is_guest')) { $email_order .= EMAIL_WARNING . "\n\n"; } if ($order->info['comments']) { $email_order .= tep_db_output($order->info['comments']) . "\n\n"; } With that the link to a customer account is displayed only in confirmation mails to registered customers. J.J.
  6. Hi this concept with the templatable boxes and content modules is really great! And since I wanted to know if it's possible to add a new functionality like the categories menu based on gadlols code to the osc store without any change of the core files, I tried to put this JS categories menu into a templatable boxes module. And yes, it's possible! :D There is one point where I was (and am) not sure what the best way is to handle it. This categories menu needs some css stylings to look and work properly. I put these css settings into a separate categories.css in the catalog folder and appended this css with a little JS to the <head> section of the store. That works - but is this a correct approach? JS_categories_menu.zip J.J.
  7. @@Tsimi Hi Lambros This is one possible approach. For my demo I've embedded the boxes modules into the tabs, to allow users to control the whole thing from the admin. Unfortunately, currently it makes no sense to post the code here, because meanwhile burt has changed the systematics of modules and moved the elements of the products page from boxes to content. My demo is still based on the previous BS version so it would only cause confusion if I would post the code here. :x J.J.
  8. Hi You could give gadlols alternative categories navigation a try: http://forums.oscommerce.com/topic/397547-tep-draw-categories-tree-finally-no-recursion-just-one-mysql-query/ J.J.
  9. @@burt Yep - my mistake. Installation was new, but the directory was not empty. :x New installation from a clean directory and everything was ok. That appeared again. Removing and re-installing the module eliminates the problem. J.J.
  10. @@burt Just tried it. Works fine. I especially like the new Content Width selection! Notes: logos and breadcrumb boxes in admin->modules->boxes should be removed. It's a bit confusing to find them under 'boxes' and 'content'. MODULE_CONTENT_CREATE_ACCOUNT_LINK_SORT_ORDER - definition in language file missing. J.J.
  11. @@auzStar Thanks for that! Just tested it and you are right: The look in the list view is now perfect. The big empty space disappears. :thumbsup: J.J.
  12. @@auzStar Thanks for that! Just tested it and you are right: The look in the list view is now perfect. The big empty space disappears. :thumbsup: J.J.
  13. Solution for that: http://forums.oscomm...45#entry1692222 (and following)
  14. Hi several ways for equal height you find here: http://forums.oscommerce.com/topic/397852-bootstrap-3-in-23-new-products-rows-aligning/ J.J.
  15. @@ArtcoInc In two lines it should be something like that: <div class="buttonSet"> <span class="buttonAction"> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#quotesModal"> <?php echo GET_QUOTES; ?> </button> </span> </div> <div class="buttonSet"> <?php $back = sizeof($navigation->path)-2; if (isset($navigation->path[$back])) { echo '<span class="pull-left">' . tep_draw_button(IMAGE_BUTTON_CONTINUE_SHOPPING, 'glyphicon-chevron-left', tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']), 'primary', NULL, 'btn-success') . '</span>'; } ?> <span class="pull-right"><?php echo tep_draw_right_button(IMAGE_BUTTON_CHECKOUT, 'glyphicon-chevron-right', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success'); ?> </span> </div> J.J.
  16. @@grandpaj This is correct! If it does not work for you and your site messes up, you have an opening or closing div elsewhere in the wrong spot. In that case I can only repeat what @@joli1811 has recommended: "so better to fix just compare with original and redo your changes before you forget and wonder next year why things are wonky". J.J.
  17. Hi If you want your buttons in one line put them into ONE div not into two. <div class="buttonSet"> <span class="pull-right"> <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#quotesModal"> <?php echo GET_QUOTES; ?> </button> </span> <span class="pull-left"> <?php $back = sizeof($navigation->path)-2; if (isset($navigation->path[$back])) { echo tep_draw_button(IMAGE_BUTTON_CONTINUE_SHOPPING, 'glyphicon-chevron-left', tep_href_link($navigation->path[$back]['page'], tep_array_to_string($navigation->path[$back]['get'], array('action')), $navigation->path[$back]['mode']), 'primary', NULL, 'btn-success') . " " ; } ?> <?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'glyphicon-chevron-right', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success'); ?> </span> </div> You can align the buttons as you want by adding <span class= "pull-right"(pull-left")> instead of <span class="buttonAction"> which has - if I remember well - no more definitions in BS (as well as buttonSet). It seems to be nothing but a relict from standard osc. :- J.J. PS. I don't know what your "tep_draw_right_button" means!? :unsure:
  18. It's quite simple: <div class="row"> open 1 <div class="col-sm-4 col-xs-12"> open 2 <div id="piGal"> open 3 <?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name'])); ?> </div> close 3 </div> close2 <?php } } ?> <div class="col-sm-8 col-xs-12"> open 4 <?php echo stripslashes($product_info['products_description']); ?> </div> close 4 Which one is still open now? open 1 which you have to close after close 4. :D J.J.
  19. Hi What do you want instead? Two separate columns where the text is completly on the right side? Then you may wrap image and description into separate divs. Something like: ..... <div class="col-sm-6 pull-left"> <div id="piGal" style="margin-right:40px; padding-bottom: 30px;"> <?php echo tep_image(DIR_WS_IMAGES_LARGE . $product_info['products_image'], addslashes($product_info['products_name'])); ?> </div> </div> <?php } } ?> <div class="col-sm-6 pull-right"> <?php echo stripslashes($product_info['products_description']); ?> </div>.... J.J.
  20. @@Tsimi With the guest checkout it works - at least with the pwa I made for BS 234 -_- J.J.
  21. @@ArtcoInc Sorry, but it sucks to display just everywhere in the shop prices including tax and to operate only in the shipping estimator suddenly with net prices. In the admin, you can set whether you want to display prices net or gross. A properly programmed tool must be able to reflect that then. Apart from the legal aspect, that burt mentioned! J.J.
  22. @@Tsimi Unfortunately I have not found the time to deal with it. I guess that just a session "customer_country_id" is missing that osc "knows", on the basis of which country the tax is to be calculated. But so far only a guess.... :unsure: J.J.
  23. @@Tsimi Did you find a fix for the tax issue where the order totals are displayed without tax when the custom is not logged in? J.J.
  24. @@ArtcoInc The question is if you want to give your customers the opportunity to have a shipment sent to an address other than his home address - even if he is a guest customer. I want that! For us it often happens that customers let mail send to the office, because no one is at home during the day. But I agree that the reference to the address book is awkward. In German, I have a more neutral formulation: "Should your order be shipped to a different address, please click here." If you don't want to offer this opportunity add: if(!tep_session_is_registered('customer_is_guest')) { <--- code for parts to be available only for "normal" registered customers here --> } J.J.
  25. De Dokta

    Invoice Editor 1.0

    @@ArtcoInc I tried to keep it as simple as possible. For me it's enough to see in the order overview if a customer is a guest or not. :blush: Ok, if you want/need this "tick" also on the single order site, open admin/includes/classes/order.php and to the $order_query (~line 27) after: customers_address_format_id add: , customers_guest. Then search for: $this->customer = array('......................... and after: 'format_id' => $order['customers_address_format_id'], add: 'customers_guest' => $order['customers_guest'], Then <td class="main"><?php echo $order->customer['customers_guest'] == '1' ? tep_image(DIR_WS_ICONS . 'tick.gif'): ''; ?> will work. :rolleyes: J.J.
×