Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

John-Doe

Archived
  • Posts

    133
  • Joined

  • Last visited

Profile Information

John-Doe's Achievements

  1. that errror has absolutely nothing to do with the BTS, so I suppose you accidentley posted in the wrong thread, But this part: obviously says a certain file is missing, maybe it's best to take a close look at that?
  2. sounds interesting. Can't you just check what the current cPath value is with some easy lines of php code and load the template depending on the cPath value? something like (in includes/configure_bts.php): // bof cPath template loader if (CPATH_TEMPLATE_SWITCHING == 'true') { if ($cPatch == '2') { $tplDir = DIR_WS_TEMPLATES_BASE . CPATH_2_TEMPLATE; } } just some sample code, don't even know if someting like $cPath currently exists in osC. And probably better to use a CASE anyway.
  3. :D that one still misses from my long osC blooper list: editted wrong files, uploaded wrong files, downloaded wrong files, saved wrong files, installed wrong contributions, posted to and or searched the wrong threads, argued with the wrong people, changed the wrong settings, asked the wrong questions, made many typo's etc. But hey, finally it really worked as I wanted! The trick is not to give up until you succeed :)
  4. CONTENT_SITEMAP isn't defined, you should add a line like this: define('CONTENT_SITEMAP', 'sitemap'); it's just an example, i.s.o. 'sitemap' you should fill in the part of the filename before the first dot.
  5. If you have loaded the bts.sql file in phpMyadmin there should be two new settings in admin under "Configuration :: My Store" (at the bottom): 1) Default Template Directory 2) Template Switching Allowed
  6. good question, allthough it probably has been answered before :) , but since the search can be a real pain I'll try to help: The idea is that i.s.o. having to edit all files in the directory catalogue and more to change the layout, you now only edit main_page.tpl.php (file in your template dir) for global changes. And box.tpl.php to change the layout of the boxes. Or, if you like, you can easyly create individual templates for each box you like. Just copy box.tpl.php and rename it to the box you want a separate template for and save it back to the boxes templates directory. There's also a directory content where the middle content templates reside. Most of the the layout code is separated from the logic, so the templates are easyer to edit. Another feature is that you will be able to have more than one template and switch between those templates very easyly, read the manual if you need to know how.
  7. Looks like you've got a left over from an older BTS version (older than v1.2). You should first install osC2.2MS2 (really fresh install unless you know what you're doing) and then the latest BTS version only. It's normal that templates/main_page.tpl.php does not exists in BTS1.3 (it's in a subdir of templates) that was only the case in older versions.
  8. just replace '(Ex.VAT)<br> ' (including the quotes) by PRICE_EX_VAT (without quotes) in your currencies.php file And if you use product options you don't want HTML in the dropdown so you need to strip_tags again (and put the in or ex price between brackets instead or something?).
  9. if you're talking about this one: http://www.oscommerce.com/community/contributions,2059 the support thread is here: http://www.oscommerce.com/forums/index.php?showtopic=91207 and I believe it should be able to display stock too, but ask at the thread to be sure
  10. Hi Excubitor, excuse me for my late reply, I don't seem to get notifications often these days :( This solved the including tax rounding problems for me: changed (line 819 in "my" version) ' <td class="' . $RowStyle . '" align="right" valign="top">' . "<input name='update_products[$orders_products_id][final_price]' size='5' value='" . number_format($order->products[$i]['final_price'], 2, '.', '') . "'>" . '</td>' . "\n" . to ' <td class="' . $RowStyle . '" align="right" valign="top">' . "<input name='update_products[$orders_products_id][final_price]' size='5' value='" . number_format($order->products[$i]['final_price'], 6, '.', '') . "'>" . '</td>' . "\n" . increased the number_format precision from 2 decimals to 6 (probably 4 will be fine too)
  11. Bent Bjoernskov is talking about "the newest MS2", I would not use this. What would be the newest MS2???? Just MS2, or one of the CVS versions? The "20 Jul 2003 - Categories Description MS2 1.5" work for sure, installed it several times, I had a litte layout error in admin (could be my own error), but other than that no problems at all.
  12. Hi dreamscape, Thanks for this contribution! I noticed one "funny" (funny because it's exactly the same problem as with edit_orders) problem though, I do get rounding errors after editting an order (including tax shop). In moectoe_edit_order.php line 936 there is this code: <td class="dataTableContent" align="right" valign="top"><input name="<?php echo "update_products[$orders_products_id][final_price]"; ?>" size="5" value="<?php echo number_format($order->products[$i]['final_price'], 2, '.', ''); ?>"></td> it helps if you change it to this: <td class="dataTableContent" align="right" valign="top"><input name="<?php echo "update_products[$orders_products_id][final_price]"; ?>" size="5" value="<?php echo number_format($order->products[$i]['final_price'], 6, '.', ''); // changed 2 to 6 to prevent rounding errors ?>"></td> (probably 4 or 5 decimals i.s.o. 6 will work fine too) Another thing I would like is an option to have the shipping tax added to the total tax. In my case the the shop is showing prices including tax and so the shipping tax also is including tax. This will be different for others probably.
  13. Oops it might be "Order Editor 1.2b" i.s.o. 1.2a Other than that the v.1.55 NextGen indeed looks better, and has other improvements, but the tax does not seem to work right for me with this version.
  14. There are several problems with tax and there are rounding problems i.c.w. tax. So if you are running a live "including tax store" you have to watch out! I don't believe a full tax proof verison exists at the moment, but the "8 Aug 2003 - Version 1.2a" works best for including tax shops as far as I know (haven't tested all versions of course). I'll post a solution to the rounding errors if someones interested.
×
×
  • Create New...