Jump to content

PandA.nl

Members
  • Content count

    312
  • Joined

  • Last visited

Posts posted by PandA.nl


  1. JTS (Just The Same template structure)

     

    Yesterday I was playing with the BTS, moving the files around a little, and a thought it would be nice to have a BTS version that would be organized a little bit more like the template structure in the current MS3 CVS version (currently only the admin side has a template structure in MS3 CVS, but the JTS is still about a catalog template structure b.t.w.).

     

    I decided to release it separately from the BTS and give it another name, allthough 99% of the code is the same as the previous BTS versions. Because this way the BTS may be still developed (by others) in it's own direction. While the JTS (Just The Same template structure) may be developed more towards MS3 compatibility (maybe even leaving full MS2 compatibitity one day?).

     

    Of course I have no way of knowing how the MS3 template structure will really be like, I'm just guessing by looking at the current CVS, and so I might be completeley wrong about it!

     

    I left out some of the bloat (I added myself ;) ) of the BTSv1.4, so the JTS is a more or less an in between version of the BTSv1.3 and BTSv1.4 (but not really fully compatible with either). Very small adjustements should/can be made to the main/default template file to be able to switch between those versions. Adapted testing templates are included. The template switching feature is still available.

     

    Only to be used on a clean osC2.2MS2 installation! No upgrade instructions available!

     

    Only use this if you know some PHP, HTML, CSS en osC. This is not a template system (like the STS is), just a structure! Adding MS2 catalog contributions to this stucture will be harder than on a clean osC installation! (admin stayed unchanged, so there won't be any problems with admin changes and contributions)

     

    It allows you to make major changes to your layout by edditing only one or two files, while still using normal PHP en osC code. No need to learn any $tags or something.

     

    Due to chicken and egg problem, the download url will follow later today.

     

    hth


  2. For some reason I only see an option to print incoice 1, when I have over 400 I want to print. Any ideas?

    If we're talking about the same contribution, I wonder how you can get 400 invoices to print? It prints the invoices that are shown in orders.php (so you can use the order status to select a range (max 20) of invoices). So normally the max you can print in one go is 20 invoices, then you can go to the next orders page and print another 20 etc etc..

     

    Anyway I doubt if 400 invoices in one go would be doable with this contribution at all, it loads all invoices to print in one frames page, and it would not suprise me if your browser crashes or something if you try to load 400 frames.

     

    (also maybe a screen shot could help?)


  3. I had the same problem. But solution is that you have to add an entry into the admin_files table in the database for the print_batch.php.

    :blink: so what entry to what table would that be ??

     

    This absolutely does not make any sense at all, it has nothing to do with this contribution. But probably with the "Admin Account with Access Level" contri you installed (or you're probably using some of the loaded versions or something?)


  4. Hi Steve,

     

    I got a question too. Not directly about your contribution, but more about the sid's in general. You seem to know how it works, so I hope you ca help me understand.

     

    I allways understood that if the users browser is set to block cookies, the tep_href_link() function detects it and adds the sid to the url. Trying to check this I set my browsers to block all cookies and removed the tep_href_link() function from the contact_us page link. But to my suprise the same sid still appears on all links. Also on the one I remove the tep_href_link() from! And the cart isn't emptied when I click the link.

     

    Does that make sense to you?

     

    Thanks!

     

    Paul


  5. Scott thanks again for this great contrib! I'm using it almost daily now :)

     

    I made one little change so that the default status is "Important", I just like it a little better that way (= red light = '0').

     

    In admin/admin_notes.php

    changed:

        case 'insert':
         if ($HTTP_POST_VARS['category_new'] != '') { tep_db_query("insert into " . TABLE_ADMIN_NOTES_TYPE . " (type_id, type_name, status) values ('1', '" . $HTTP_POST_VARS['category_new'] . "','1')"); }
         tep_db_query("insert into " . TABLE_ADMIN_NOTES . " (contr_id, category, admin_note, config_comments, note_created, status, last_update) values ('','" . $HTTP_POST_VARS['file_type_id'] . "','" . $HTTP_POST_VARS['admin_note_new'] . "','" . $HTTP_POST_VARS['config_comments'] . "', now(), '2', '" . $HTTP_POST_VARS['last_update'] . "' )");
         tep_redirect(tep_href_link(FILENAME_ADMIN_NOTES, '&sID=' . $contr_id));
         break;

    to:

        case 'insert':
         if ($HTTP_POST_VARS['category_new'] != '') { tep_db_query("insert into " . TABLE_ADMIN_NOTES_TYPE . " (type_id, type_name, status) values ('1', '" . $HTTP_POST_VARS['category_new'] . "','0')"); }
         tep_db_query("insert into " . TABLE_ADMIN_NOTES . " (contr_id, category, admin_note, config_comments, note_created, status, last_update) values ('','" . $HTTP_POST_VARS['file_type_id'] . "','" . $HTTP_POST_VARS['admin_note_new'] . "','" . $HTTP_POST_VARS['config_comments'] . "', now(), '0', '" . $HTTP_POST_VARS['last_update'] . "' )");
         tep_redirect(tep_href_link(FILENAME_ADMIN_NOTES, '&sID=' . $contr_id));
         break;

     

    edit: wow that looks like a lot more code than in the editor ;)

    this is the changed line:

          tep_db_query("insert into " . TABLE_ADMIN_NOTES . " (contr_id, category, admin_note, config_comments, note_created, status, last_update) values ('','" . $HTTP_POST_VARS['file_type_id'] . "','" . $HTTP_POST_VARS['admin_note_new'] . "','" . $HTTP_POST_VARS['config_comments'] . "', now(), '0', '" . $HTTP_POST_VARS['last_update'] . "' )");

    (only one '2' changed to '0')


  6. oops I see I made a little mistake: this would add a unwanted column to your layout!

     

    you can add </tr><tr> for example at the end of the code, that would make a new row i.s.o. column. Or even better add the code you posted just befor the previous row starts in main_page.tpl.php


  7. The update was a year ago, the message you quoted says it's jan 2004 i.s.o jan 2005 :D

     

    You are trying to add something to the middle content area, which is partly the same but mostley different for all pages, that's why every page uses it's own template for this area.

    (b.t.w. using a CSS layout you could simple put the code anywhere, and absoluteley position the output anywhere you want it)

     

     

    But I see you are adding it inside the content area while it looks like you want it to appear just above the content area.

     

    Can't you add somehthing like this

     <td background="images/greenbar.gif" height="23">
     <p align="center"><b><font size="1" face="Tahoma" color="#FFFFFF">
     <a href="http://example.com" class="headerNavigation">Top</a> » <a href="http://example.com/index.php" class="headerNavigation">Catalog</a></font></b></td>

    inside main_page.tpl.php ? just tbefore the content is loaded.

     

    So just before:

    <td id="contentLT"><?php
          include(DIR_WS_INCLUDES . 'select_template_content.php'); // BTSv1.4

     

    b.t.w. you know you better don't post and/or add to you code any osCsid'd ? and you need to use the tep_href_link function for links ?

     

     

    edit: but please don't add it to the select_template_content.php file! That's only to be used to select the right template, becomes very confusing if you are going to add other things there. If you really need to include it, better write a new/separate include line for your own added code.


  8. Is anyone successfully using PayPal with the IPN module NOW?

    I'm thinking about switching to another PayPal module. The old one only had one flaw for me: some orders weren't stored in the databse because the customer didn't return. It can be resolved by (temporary) storing the order before checkout, I think there's a contrib for it.

     

    Now: I've got many "fake" orders (customers going to PayPal, but never coming back), the tax didn't show, and the order status acts weird.

     

    Easy to install, but hard to use.

     

    B.t.w. is this one supported by someone?


  9. Hi,

     

    When trying to get some images worked out in the template file, I noticed that the CSS specification "mainLayoutLT" is defined twice in the stylesheet.

     

    table#mainLayoutLT {
    margin: 0px auto;
    width: 100%;
    }
    
    table#mainLayoutLT {
    border: 2px #ffb21c solid;
    }

     

    Am I missing something ?

    In general I would say this: http://www.w3schools.com/css/default.asp

     

    But to be more specific: the code can be combined if you like:

    table#mainLayoutLT {
    margin: 0px auto;
    width: 100%;
    border: 2px #ffb21c solid;
    }

    If I remember well I split the "border and colors" and "fonts" and some other properties into separate sections of the stylesheet then. It is not the standard way to setup the styles, but it seemed fun to try it like that for a change :)


  10. Hi,

     

    Just installed v1.4, does anyone know what this file is used for, got a 404 on it:

     

    keepieapart.js

    You can safely remove the line(s) calling the keepieapart.js script, it's not needed. It was added for testing purposes only (testing compatibility with older IE versions).

     

    About the layout: you can produce any layout, with or without the BTS. The main differerence between stock osC, and osC with the BTS, is that most common HTML code and PHP layout code has been moved to one main_page.tpl.php (=>40+ catalog files) and one box.tpl.php (=>15 sideboxes) file. This makes it easyer to modify the looks and create new templates, switch templates etc etc. But adding most catalog side contributions (which are made for stock osC) will be more problematic (because the code has moved).

     

    With a stock osC MS2 install you can create exactly the same layout as with the BTS, you only need to modify a lot more files to achieve the same.

     

    I.E.: I've seen several skins for download for osC MS2, but none using a CSS main layout. That a CSS mainlayout template exists for the BTS is because I found it was quite easy to create with the BTS. I would certainly not have done it without the BTS.


  11. When I click Edit on a order, the Status column showed Pending first then it will be Preparing [PayPal IPN]. Shouldn't it be the other way round? The Comments column seems fine with the remark PayPal IPN Verified [Completed] showed first.

     

    Anyone else with the same problem?

    Same here. Because everything else seems to work fine, I decided to let it be. But of course it does seem wrong to me too, not sure if it's a bug or a setting.

     

    Is there anyone who does NOT have this problem? If so, could you post your settings?


  12. Hi Kenneth,

     

    I'm glad you figured it out (and posted back) yourself. Saves me some time :)

     

    I do wonder though if there's a special reason to have the boxes unchecked by default?

     

    The way I use it is like this: all orders that I've checked (payment etc) I give the order status "Processing", then select to view only "Processing" orders in orders.php, and then print all packing slips and invoices for all those "Processing" orders (only sometimes uncheking one or two for whatever reason).


  13. It's a bit crazy, isn't it?  :'( 

    Sounds a bit weird indeed. I currently don't have this double tax problem, but maybe that's because the dutch paypal does not exist (I see the German does). There is a Dutch link, but it redirects and there seems to be nothing dutch about it after the redirect.

     

    I think that instead of your changings this two changings must do it:

    I assume you ment "on top of" or "in addition to" i.s.o. "instead of". But thanks for the update Frank, it will save me a headache if paypal decides to change the Dutch site in the same way.

  14. I have ppl telling me to use one or the other,,

    one person said to use sts, another said bts.

     

    which is better,,  in your opinions, and why?

    Which one is better for you depends totally on your skills and needs. The STS and BTS are different, I think you can't say one of both it better in general.

     

    The STS is a template system or engine, to use it you need to learn to use the STS and it will enable you to change the looks of your site by editting just a couple of files.

    The STS will give you fast results, but won't let you use PHP in the templates, only HTML. Thus, the system might limit your possibilities. Looking at the STS support thread it looks like you will have trouble with some of the contributions using it.

     

    The BTS is a template structure, to use it you need some PHP knowledge and it will enable you the looks by editting just a couple of files.

    With the BTS it might take some more time to get the first results, but there are no limitations other than the limitations of your knowledge and php itself. Adding some of the contributions will be more difficult because most catalog code has been moved to other files than the default.

     

    I think it's often like this: if you are a wysiwyg type you'll like the STS, but if you are more a code editor type you'll like the BTS more.

     

    (B.t.w. a skilled programmer could combine the two without to much trouble I think.)


  15. Tried to edit my last post but I was too late :(

     

    @Cindy we almosted posted at the same time, so I did not read your last post until now. We're not allowed to discuss loaded versions here, but you can try to find the support thread for the Admin Account with Access Level contri or, if you can't find it, try to contact the person who created it. It looks like you need to change some of its settings.


  16. Don't know why I'm doing this but I'm switching to hold hands mode:

     

    1) did a quick search using google (for the above mentioned error message): concluded it's a typical osC (and relatives) problem (so nothing todo with host or php prob)

    2) searched a little deeper and read some posts: found it's very likely that it has something todo with admin access contribution

    3) searched the osC contri's (for admin access): found a contri called Admin Account with Access Level That happens to have a language file which contains:

    define('HEADING_TITLE', 'Access Denied');
    define('NAVBAR_TITLE', 'No Right Permission Access');
    define('TEXT_MAIN', ' Please contact your <b>Web Administrator</b> to request <br> more access or if you found any problem.<br> ');
    define('TEXT_BACK', 'back');

    BINGO!

     

    end hold hands mode


  17. :'(

     

    Ok, anyone who gets this message:

    No Right Permission Access

    Please contact your Web Administrator to request

    more access or if you found any problem.

    I'm 99.9% sure it has nothing todo with the batch-invoice-printing contribution. I think you're all using one of the loaded versions or added one of the admin access contributions to the osC script. In stead of just asking, it might be a good idea to search the forums and/or compare what you have in common (like what osC version and what other admin contri's you added).


  18. Sorry,

     

    didn't get any notifications

    I have installed batch-invoice-printing-v1.1 but when I select the invoices and click confirm he opens a new widown with the following text:

     

    No Right Permission Access

    Please contact your Web Administrator to request

    more access or if you found any problem.

    :huh:

    No idea. Since two of you have it, I guess it's something that you have in common (PHP version or settings? or same host?), especially since you also have the same problem with another contribution. Of course it might also be a good idea to do what the message says: Please contact your Web Administrator

     

    I send already a mail to the contributer of this but no answer.
    Are you sure you mailed to the right address? May be it was accidently deleted or something but I haven't seen your mail.
×