Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

purchase without account


Guest

Recommended Posts

I Have installed PWA 1.0.1 and am getting this error message can any one point me in the right direction

Parse error: parse error, unexpected T_VARIABLE in /hsphere/local/home/thermals/thermalsecrets.com/catalog/create_account.php on line 244

 

This is the code just before and after line 244

// Ingo PWA

if (isset($HTTP_GET_VARS['guest'])) tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING))

 

// restore cart contents

$cart->restore_contents();

 

// build the message content

$name = $firstname . ' ' . $lastname;

 

if (ACCOUNT_GENDER == 'true') {

if ($gender == 'm') {

$email_text = sprintf(EMAIL_GREET_MR, $lastname);

} else {

$email_text = sprintf(EMAIL_GREET_MS, $lastname);

}

} else {

$email_text = sprintf(EMAIL_GREET_NONE, $firstname);

}

The code on line 244 is

 

$cart->restore_contents();

 

Thanks in advance

Link to comment
Share on other sites

I Have installed PWA 1.0.1 and am getting this error message can any one point me in the right direction

Parse error: parse error, unexpected T_VARIABLE in /hsphere/local/home/thermals/thermalsecrets.com/catalog/create_account.php on line 244

 

This is the code just before and after line 244

// Ingo PWA

if (isset($HTTP_GET_VARS['guest'])) tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING))

 

// restore cart contents

$cart->restore_contents();

 

// build the message content

$name = $firstname . ' ' . $lastname;

 

if (ACCOUNT_GENDER == 'true') {

if ($gender == 'm') {

$email_text = sprintf(EMAIL_GREET_MR, $lastname);

} else {

$email_text = sprintf(EMAIL_GREET_MS, $lastname);

}

} else {

$email_text = sprintf(EMAIL_GREET_NONE, $firstname);

}

The code on line 244 is

 

$cart->restore_contents();

 

Thanks in advance

 

Looks to me as though you might need a semi colon at the end of the first line with the if statement.

 

Be well,

Tina

If you're not having fun you're not doing it right

 

Teach a person to fish rather than give them a loaf of bread or however that saying goes.

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