Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PWA manually install


Gubbanoa

Recommended Posts

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 by Gubbanoa
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...