Jump to content

De Dokta

Members
  • Content count

    329
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by De Dokta

  1. De Dokta

    Latest News Multilingual

    The "important" field is to decide, whether you want to display a news message on the main page module or not. You may not want to display any news which is enabled on the index page but only the really important. In the admin tool you find for that a field "Display on main page?"
  2. @@Tsimi Hi Lambros Read the code! if(!tep_session_is_registered('customer_is_guest')) means: if NOT a session "customer_is_guest" is registered - no? A guest get no link to an order history, a regular customer get one........ J.J.
  3. @@raiwa You are right, hspace and vspace are obsolete. I've overseen that. Regarding the equal height tag I'm not sure what the best way is. As far as I know none of the modules on product info uses by default the equal height script. So there would be no conflict. But on the index page at least the new products module uses the script and the result looked very strange, when I added it also to the recently_viewed module. For that I added a setting in the user.css. Perhaps it would be possible to add a height setting to your module(s)? BTW: Chris' (ringo667) problem had nothing to do with your add-on. He uses the master/slave addon and for that reason the $listing_sql in recently_viewed.php simply needed an additional "p.products_master, p.products_master_status" :- . We have resolved that in the German forum....... J.J.
  4. @@raiwa Hi Just tested your BS version on BS gold - works really great! :rolleyes: Two small issues: It would be helpful, to add SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT to content\product_info\cm_pi_recently_viewed.php and to modules\content\index\cm_recently_viewed.php to prevent problems with images of different sizes. $recently_viewed_content .= tep_image (DIR_WS_IMAGES . $products_data[$products_id]['image'], $products_data[$products_id]['name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT . 'hspace="2" vspace="3"'); It also would be useful to add the equal-height tag to modules\content\product_info\cm_pi_recently_viewed.php: $recently_viewed_content .= ' <div class="thumbnail equal-height">'; J.J.
  5. Hi Chris, your shop is based on an earlier version of bootstrap, not on bootstrap-gold. To get raiwas addon into your product_info you must add the appropriate hook to that file: <div class="row"> <?php echo $oscTemplate->getContent('product_info'); ?> </div> J.J.
  6. De Dokta

    Guest Checkout options for v2.3.3 ?

    I'm sorry that the 2.3.4 version did not work for you. I tested it on a clean local 2.3.4 installation and everything seemed to be ok. But frankly, I do not want to invest too much time in standard Osc. For me the bootstrap osc is simply the better osc. It's responsive which means you can display your shop properly on desktop, tablet and smartphone. It's easy to configure. It's easier to install add-ons. It's easier to add stylings. And it looks better.... There are a lot of threads on BS. Look here: http://forums.oscommerce.com/forum/107-oscommerce-online-merchant-v24/ The easiest way to find out what it's all about, is to download the version and install on a PC under xampp. You find the latest version here: https://github.com/gburton/osCommerce-234-bootstrap. J.J.
  7. De Dokta

    Guest Checkout options for v2.3.3 ?

    Do you use bootstrap-gold? If not, this version of PWA is for bootstrap-gold only and can NOT be used with standard osc 2.3.4. If you use BS-gold, then there must be the Datepicker Jquery - installed or not! If you do not have bs-gold, but standard osc 2.3.4, you can use the previous package from 16 Oct 2014 which contains versions for both BS and default osc. J.J.
  8. Next try - fixes the 'invalid zone' bug: get_shipping_quotes.php shipping_in_cart.php
  9. @@Tsimi Hi Lambros The tax issue seems to have something to do with your configuration or any modification you made. I just installed this interstate.php and the 'shipping quote in cart' files into a fresh, clean bs-gold store. Tax calculation is correct! And yes, there is a bug with the first display of the zones pulldown. It makes me crazy! :x J.J.
  10. @@Tsimi Hi Lambros Ah, this module seems something special. In this case you must replace $default_zone_id by $default_zone_code. Try this: get_shipping_quotes.php shipping_in_cart.php I suppose that will work ONLY with this module. J.J.
  11. Ok, next try - with a zones pulldown for those countries for which states/zones are stored in the database. Since I use no shipping module, which works with zones, I would very much appreciate it if someone with such a module would test if it works correctly. Only for bootstrap! shipping_in_cart.php get_shipping_quotes.php J.J.
  12. @@Tsimi Hi Lambros I'm not sure if I exactly understand what you mean. Do you want to display in the pulldown that part that appears in checkout process after the name of the shipping module in brackets, e.g. Flat Rate (Best Way) ? If so, look in both files for: $quotes_array[] = array('id' => $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id'], 'text' => $quotes[$i]['module']); and replace it by: $quotes_array[] = array('id' => $quotes[$i]['id'].'_'.$quotes[$i]['methods'][$j]['id'], 'text' => $quotes[$i]['methods'][$j]['title']); also look for (2x in each file) $title_shipping = $quotes[$i]['module']; and replace it with: $title_shipping = $quotes[$i]['methods'][$j]['title']; For your zones/states problem I have no quick answer. I never saw a shipping module which works on the basis of states (probably because something like that is not needed in Europe :D ) - so I don't know how they work. I suppose they use the entry_zone_id!? But it should be possible - for example as in create account - to add a logic that checks to see whether a country has zones, and if so, will open a second pulldown for states.........A lot of effort for such a gimmick! J.J.
  13. @@Tsimi Hi Lambros, my current version - not finished yet, because I just don't have the time, but I've already fixed some bugs .... get_shipping_quotes.php shipping_in_cart.php Better? J.J.
  14. De Dokta

    Modal Info Popup Layer for osc 2.3.4BS

    Hi, add to your user.css a new entry like this: @[member='media'] screen and (min-width: 768px) { body .modal-large { /* new custom width */ width: 750px; } } (or any other width you need) and in includes/modules/content/footer/templates/popup.php change <div class="modal-dialog"> to: <div class="modal-dialog modal-large"> J.J.
  15. De Dokta

    AJAX Attribute Manager support

    This phenomenon appears, when you set in admin -> configuration -> sessions -> Force Cookie Use to true. Change Force Cookie Use to false! J.J.
  16. New version for BS gold uploaded http://addons.oscommerce.com/info/9142. Only some cosmetic changes to adapt the addon to the style of BS gold. For standard Oscommerce 2.3.4 the previous package can be used. (ONLY 2.3.4.)
  17. De Dokta

    Invoice Editor 1.0

    Hi, to fix the error messages try this in admin/orders.php: case 'update_order': $oID = tep_db_prepare_input($_GET['oID']); $status = tep_db_prepare_input($_POST['status']); $comments = tep_db_prepare_input($_POST['comments']); $order_updated = false; $check_status_query = tep_db_query("select customers_name, customers_email_address, orders_status, date_purchased, pdf_invoice from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); $check_status = tep_db_fetch_array($check_status_query); if ( ($check_status['orders_status'] != $status) || tep_not_null($comments)) { tep_db_query("update " . TABLE_ORDERS . " set orders_status = '" . tep_db_input($status) . "', last_modified = now() where orders_id = '" . (int)$oID . "'"); $customer_notified = '0'; $invoice_sent = '0'; if (isset($_POST['notify']) && ($_POST['notify'] == 'on')) { $notify_comments = ''; if (isset($_POST['notify_comments']) && ($_POST['notify_comments'] == 'on')) { $notify_comments = sprintf(EMAIL_TEXT_COMMENTS_UPDATE, $comments) . "\n\n"; } $link = EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n"; $email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . $link . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]); if(tep_not_null($check_status['pdf_invoice']) && isset($_POST['notify_invoice']) && ($_POST['notify_invoice'] == 'on')) { $file = SAVE_FOLDER . $check_status['pdf_invoice']; $filename = $check_status['pdf_invoice']; $filetype = 'application/pdf'; $invoice_sent = '1'; tep_mail_pdf_attach($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $file, $filename, $filetype); }else{ tep_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } $customer_notified = '1'; } tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments, invoice_sent) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "', '" . tep_db_input($invoice_sent) . "')"); $order_updated = true; } And no, changes made in invoice editor are NOT stored in table 'orders' (and related tables). The tool is an INVOICE editor, not an ORDER editor. In the install.txt is clearly stated: "In contrast to the Order Editor, the tool does not affect the table 'orders' (and related tables), since it works with temporary copies of the original order." If you want to change orders, use the order editor! J.J.
  18. Support Thread for the Cancellation form for 2.3.4 and bootstrap-gold Download: http://addons.oscommerce.com/info/9136 Provides a cancellation form that meets the requirements of the EU Directive 2014 on consumer rights. Includes an automatically generated confirmation email to the consumer and an email notification to the shop owner and a print form function. Registered customers can easily select from a pull-down menu that lists all orders of the last 30 days, the order for which they wish to exercise their right of cancellation. To prevent abuse, the sending of the cancellation form in the Action Recorder is recorded. Versions for Osc 2.3.4 and bootstrap-gold available. Please report any problems here. J.J.
  19. @@Gergely Thanks for the suggestion. I should really take the attributes into the product list. I'll do that! J.J.
  20. De Dokta

    Invoice Editor 1.0

    pffffffffffffff - a lot of questions......... 1) yes! 2) invoice.sql has the same content as invoice_en.sql, but in German! 3) Look into your DB. If the column orders_date_finished is empty or NULL, then must must do nothing. If it contains any dates do as is described in the install.txt. 4) Did you create a pdf invoice? If yes, is it stored in the folder testshop/admin/invoices/? If yes, can you open it (e.g. button View Invoice)? 5) Use the $order_query from SPPC and simply add to the query the two entries num_invoice and pdf_invoice which are needed for the invoice editor. J.J.
  21. Hi Ralf instead of the new_tables.sql simply use the following sql which bypasses all problems with changed order_ tables: drop table if exists invoice_orders; create table invoice_orders LIKE orders; drop table if exists invoice_orders_products; create table invoice_orders_products LIKE orders_products; drop table if exists invoice_orders_products_attributes; create table invoice_orders_products_attributes LIKE orders_products_attributes; drop table if exists invoice_orders_products_download; create table invoice_orders_products_download LIKE orders_products_download; drop table if exists invoice_orders_total; create table invoice_orders_total LIKE orders_total; J.J. NS. There's already a thread for Invoice Editor. It would be nice if you would use it for further questions on this tool.
  22. De Dokta

    Modal Info Popup Layer for osc 2.3.4BS

    Hi John Yes the popup should be displayed only once when a customer for the first time enters the shop. It would be annoying if the message would pop up on every page load or refresh! :x If you have stored different popups activate the one you want to be displayed by clicking the green button on the popup overview page. Only one popup can be active. J.J.
  23. De Dokta

    Modal Info Popup Layer for osc 2.3.4BS

    Popup status is needed for the schedule and expire function. I found when changing to SSL (e.g. Login) the popup appears in certain browsers again and then it's impossible to login. :wacko: So I disabled the popup in SSL. J.J.
  24. De Dokta

    Modal Info Popup Layer for osc 2.3.4BS

    Thanks for the hint. Fixed!
×