Gubbanoa Posted July 22, 2009 Share Posted July 22, 2009 (edited) Hi, I am trying to install PWA, but the script is telling me to edit manually. That's ok, but... Cannot replace: <tr> <td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> in the 'create_account.php' file. I can't find "CATEGORY_OPTIONS", "OPTIONS" or anything. Does anybody know were I can add the code in this file? This is the code the script is trying to add: <?php // PWA BOF if (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest'])) { // PWA EOF ?> <tr> <td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> Edited July 22, 2009 by Gubbanoa Quote Link to comment Share on other sites More sharing options...
multimixer Posted July 22, 2009 Share Posted July 22, 2009 Is it possible that you replaced this by an other contribution earlier? Or doing some modifications your self? Or you have a template? One solution is to get the original file from the download, to compare with what you have, to find the place where the additional code has to be and to paste it there. It's just before the newsletter entry anyway Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Gubbanoa Posted July 22, 2009 Author Share Posted July 22, 2009 Thanks. I'll try to compare with the original version. I really need this contribution to work out. Yes, my shop is heavily modified. Lots of contributions and a template. Quote Link to comment Share on other sites More sharing options...
Gubbanoa Posted July 22, 2009 Author Share Posted July 22, 2009 Ok... I would really appreciated a guiding hand here, if anyone got the time. The script wants to insert this above (my missing) CATEGORY_OPTIONS: <?php // PWA BOF if (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest'])) { // PWA EOF ?> My create_account.php: <td class="main width2_100"><?php echo tep_draw_input_field('fax') . ' ' . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></td> </tr> </table> <?php echo tep_draw_infoBox_bottom();?> <?php echo tep_pixel_trans();?> <?php echo tep_draw_infoBox_top();?> <table border="0" cellspacing="4" cellpadding="2"> <tr> <td class="main b_width"><strong><?php echo ENTRY_NEWSLETTER; ?></strong></td> Original create_account.php: <td class="main"><?php echo tep_draw_input_field('fax') . ' ' . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" cellspacing="2" cellpadding="2"> <tr> <td class="main"><?php echo ENTRY_NEWSLETTER; ?></td> Anyone with an idea? :blush: Quote Link to comment Share on other sites More sharing options...
Gubbanoa Posted July 22, 2009 Author Share Posted July 22, 2009 I made it. Did a risky try and see method, but it seems to work fairly good. Just one thing - on '/login.php' the PWA box and 'create account' box are on the left side, while the log in box is a little down on the right side. I guess I can fix this with some <td> and <tr> magic -a but in which file? Illustrations: Now they are like this: | | | I would like them to be like this ('_' is PWA): __ | | Hope you understand, he he. :) Quote Link to comment Share on other sites More sharing options...
Gubbanoa Posted July 23, 2009 Author Share Posted July 23, 2009 (edited) Sorry for being a little spammy, but here's a better image of what I got and what I would like. - How to change positions of these boxes? Edited July 23, 2009 by Gubbanoa Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.