Jump to content
Sign in to follow this  
bmcewan

Purchase Without Account Updated & Admin Functionality

Recommended Posts

That is not correct, there actually IS/SHOULD BE an account. It is just deleted at order process completion.

 

so is it deleted right before the email is sent? can i prolong that deletion until after the mail?

Share this post


Link to post
Share on other sites
so is it deleted right before the email is sent?  can i prolong that deletion until after the mail?

 

No, normally the deletion of the PWA account information as well as the removal of the session variables is done during the checkout_success cycle which comes after checkout_process which sends the email.

 

In addition to that it is deleted at new sign up (pwa or regular) if it is still present because the user did not go thru the checkout_success cycle.


Treasurer MFC

Share this post


Link to post
Share on other sites
this email is intended for the customer as a type of receipt correct?  I'm having the same problem.  Since installing PWA, i believe

tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";}

it not returning any info because there is no customer account. 

 

Is there some sort of change that can be made to tep_address_label in the function definition to account for account-less orders?

 

here's what i had to do to get emails to be correctly sent. maybe it's just my install, but account-less orders don't show any shipping or billing info.

// lets start with the email confirmation
// DDB - 041103 - Add test for PWA : no display of invoice URL if PWA customer
if ($customer_id!=""||$customer_id!=NULL) //yeahyeahyeah 2005-07-06 
{
 $email_order = STORE_NAME . "\n" .
                EMAIL_SEPARATOR . "\n" .
                EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
                EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .
                EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
 if ($order->info['comments'])
 {
   $email_order .= tep_db_output($order->info['comments']) . "\n\n";
 }
 $email_order .= EMAIL_TEXT_PRODUCTS . "\n" .
                 EMAIL_SEPARATOR . "\n" .
                 $products_ordered .
                 EMAIL_SEPARATOR . "\n";
} else {
 $email_order = STORE_NAME . "\n" .
                EMAIL_SEPARATOR . "\n" .
                EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
                EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
 if ($order->info['comments']) {
   $email_order .= tep_db_output($order->info['comments']) . "\n\n";
 }
 $email_order .= EMAIL_TEXT_PRODUCTS . "\n" .
                 EMAIL_SEPARATOR . "\n" .
                 $products_ordered .
                 EMAIL_SEPARATOR . "\n";
 }

 for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
   $email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
 }

 if ($order->content_type != 'virtual' && $customer_id!=NULL) {//yeahyeahyeah 2005-07-06
   $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
                   EMAIL_SEPARATOR . "\n" .
                   tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
   $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
                 EMAIL_SEPARATOR . "\n" .
                 tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
 }
 else {//if no account //yeahyeahyeah 2005-07-06 BEGIN
   $email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
                   EMAIL_SEPARATOR . "\n" .
                   tep_address_format($order->billing['format_id'], $order->delivery, 0, '', "\n")."\n";
   $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
                 EMAIL_SEPARATOR . "\n" .
                 tep_address_format($order->billing['format_id'], $order->billing, 0, '', "\n")."\n\n";
 } //yeahyeahyeah 2005-07-06 END

Share this post


Link to post
Share on other sites
here's what i had to do to get emails to be correctly sent. maybe it's just my install, but account-less orders don't show any shipping or billing info. 

// lets start with the email confirmation
// DDB - 041103 - Add test for PWA : no display of invoice URL if PWA customer
if ($customer_id!=""||$customer_id!=NULL) //yeahyeahyeah 2005-07-06 
{
?$email_order = STORE_NAME . "\n" .
? ? ? ? ? ? ? ? EMAIL_SEPARATOR . "\n" .
? ? ? ? ? ? ? ? EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
? ? ? ? ? ? ? ? EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .
? ? ? ? ? ? ? ? EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
?if ($order->info['comments'])
?{
? ?$email_order .= tep_db_output($order->info['comments']) . "\n\n";
?}
?$email_order .= EMAIL_TEXT_PRODUCTS . "\n" .
? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n" .
? ? ? ? ? ? ? ? ?$products_ordered .
? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n";
} else {
?$email_order = STORE_NAME . "\n" .
? ? ? ? ? ? ? ? EMAIL_SEPARATOR . "\n" .
? ? ? ? ? ? ? ? EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
? ? ? ? ? ? ? ? EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
?if ($order->info['comments']) {
? ?$email_order .= tep_db_output($order->info['comments']) . "\n\n";
?}
?$email_order .= EMAIL_TEXT_PRODUCTS . "\n" .
? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n" .
? ? ? ? ? ? ? ? ?$products_ordered .
? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n";
?}

?for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
? ?$email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
?}

?if ($order->content_type != 'virtual' && $customer_id!=NULL) {//yeahyeahyeah 2005-07-06
? ?$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
? ? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n" .
? ? ? ? ? ? ? ? ? ?tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
? ?$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n" .
? ? ? ? ? ? ? ? ?tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
?}
?else {//if no account //yeahyeahyeah 2005-07-06 BEGIN
? ?$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
? ? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n" .
? ? ? ? ? ? ? ? ? ?tep_address_format($order->billing['format_id'], $order->delivery, 0, '', "\n")."\n";
? ?$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
? ? ? ? ? ? ? ? ?EMAIL_SEPARATOR . "\n" .
? ? ? ? ? ? ? ? ?tep_address_format($order->billing['format_id'], $order->billing, 0, '', "\n")."\n\n";
?} //yeahyeahyeah 2005-07-06 END

 

ok but this is just eliminating the symptom of the problem by simply not including the information.


Treasurer MFC

Share this post


Link to post
Share on other sites

Simple question:

 

I have installed PWA and it seems to work fine. However, how do I see what products my customer has ordered? After they order, we both get confirmation emails with the total cost and billing details, but there is no way to see what was ordered. What am I missing?

Share this post


Link to post
Share on other sites
Simple question:

 

I have installed PWA and it seems to work fine.  However, how do I see what products my customer has ordered?  After they order, we both get confirmation emails with the total cost and billing details, but there is no way to see what was ordered.  What am I missing?

 

the order should be stored in the orders table and is, like all others, accessible via admin.


Treasurer MFC

Share this post


Link to post
Share on other sites

Hello,

 

I installed this contribution and it run very well, thanks.

 

I added in my shop a field price_guest, in all the store one sees 2 prices guest and members.

 

The members are people who have an account opened.

 

Those which opens an account pays with the price member Those which does not open an account must pay with the price guest

 

Noew I have a problem it is that I would like that those which does not open an account pays with the price guest. Could you guide me on or I should modify my page to make its.

 

Sorry for my english i'm a french canadian :blink:

Share this post


Link to post
Share on other sites

I installed PWA V0.82 using Install instructions from 7/11/2005. I use PlugnPay as my gateway. I set up the PWA information , entered my test credit card information, hit submit and got this message.

 

<<There was an unspecified error processing your transaction.

Received empty

cURL response - check cURL connectivity to PnP server.>>

 

It went back to the credit card information page.

 

I contacted my webhost and they said it checked out ok on their end and to contact PlugnPay. I did, and finally they understood they were not seeing the problem because the information never went to their site.

 

Making a long story short, to fix this problem, we had to use back up copies of the catalog files and eliminate the PWA addon. Has anyone used this great feature with PlugnPay and if so, what are the changes that have to be made.

Share this post


Link to post
Share on other sites
Another thing I would like to fix is the Login_PWA_Optional.php code that puts the 3 options side by side instead of stacked.  When mine loads up the option to proceed directly to checkout is musch skinnier than the other two.  They are not equally sized.  There is also an an area of gray on the bottom of the login and create account which I would like to get rid of.  Anybody know how to fix this?

 

Rick  :'(

 

 

I was wondering the same thing - anyone have any ideas? On my page, the three columns don't take up the entire area they could, and they are not equally sized.

Share this post


Link to post
Share on other sites

evening,

 

hope someone whos a lot more knowledged than me can help me with a little (but annoying) prob I have. Basically Im new to oscommerce and installed this great mod with help from the 'Mace' latest instructions, everything seems to be working fine except the actual option doesnt seem to be displaying quite right. Ill make myself a little clearer by posing a pic or me prob. ;)

 

prob5zb.jpg

 

As you can see for somereason the top border line carries on and doesnt give the smooth edges like the other original options b4 checkout.

 

Hope someone can give me a helping hand, no doubt theres an error in my coding but im a fool when it comes to php and dont know where to look or indeed what to look for. :blink:

 

Hope someone can help. Im rather embarassed about the problem, no doubt its a real easy fix for someone in the know. :blush: But again thanks in advance to anyone with a helping hand.

 

Jay :thumbsup:

Share this post


Link to post
Share on other sites

I installed the contribution PWA v0.82 using the instructions from 11 Jul 2005.

http://www.oscommerce.com/community/contributions,355

 

now on the checkout_success.php it gives an error

 

======================================

PHP Fatal error: session_register(): Failed to initialize storage module: user (path: /tmp) in d:\home\krsna\stayhighforever.com\catalog\includes\functions\sessions.php on line 74

======================================

 

:'(

please help

Share this post


Link to post
Share on other sites
evening,

 

hope someone whos a lot more knowledged than me can help me with a little (but annoying) prob I have. Basically Im new to oscommerce and installed this great mod with help from the 'Mace' latest instructions, everything seems to be working fine except the actual option doesnt seem to be displaying quite right. Ill make myself a little clearer by posing a pic or me prob. ;)

 

prob5zb.jpg

 

As you can see for somereason the top border line carries on and doesnt give the smooth edges like the other original options b4 checkout.

 

Hope someone can give me a helping hand, no doubt theres an error in my coding but im a fool when it comes to php and dont know where to look or indeed what to look for. :blink:

 

Hope someone can help. Im rather embarassed about the problem, no doubt its a real easy fix for someone in the know.? :blush: But again thanks in advance to anyone with a helping hand.

 

Jay? :thumbsup:

 

Hello Jay

 

Go to catalog/images/infobox

download corner_right_left.gif

rename it to corner_left.gif and upload

again rename it to corner_right.gif and upload

 

Sharad.

Edited by Sharad

Share this post


Link to post
Share on other sites

thanks vert much, i guess this will just leave me without rounded edges, just square ones? any idea why the problem occured in the first place?

 

thanks for your help,

 

J :blink:

Share this post


Link to post
Share on other sites

id prefer to keep the original rounded edges if possible, have spent hrs trying to figure out why the uwanted line is occuring, sniff. :'(

 

J :blush:

Share this post


Link to post
Share on other sites
id prefer to keep the original rounded edges if possible, have spent hrs trying to figure out why the uwanted line is occuring, sniff.  :'(

 

J :blush:

 

Jay,

I know you have probably done this already, but it is the only thing I can think of. Double check your style sheet relating to the PWA login to see if there are borders on any of them. I think that would be infobox and main. Also check the pwa login page, to be sure there are no borders listed there.

 

If there are borders listed any of these places, try changing them, one at a time until you find solution.

 

 

Good luck!

 

Peace,

Erin :)

Share this post


Link to post
Share on other sites

thanks for the help, im a total newb php and fairly new to coding in general. Im still totally stuck, dont know what im looking for or where im looking, cant seem to find any prob in the css page. anybody know what page i should be looking at? or if i should post some code here from a page? driving me crazy. :'(

Share this post


Link to post
Share on other sites
thanks for the help, im a total newb php and fairly new to coding in general. Im still totally stuck, dont know what im looking for or where im looking, cant seem to find any prob in the css page. anybody know what page i should be looking at? or if i should post some code here from a page? driving me crazy. :'(

 

 

Hi Jay,

Don't feel bad, I still feel like I am a newbie at this, too!

 

In catalog/includes/ you should find 2 files that are called login_acc.php and login_pwa.php

 

Look for any code that says "style=" and then the word border after it.
Also look for "border="

 

BACKUP THESE FILES, TOO!

 

If it says style=border.... try deleting that bit of code or commenting it out by putting <!-- in front of it and --> after it.

 

If there is bordercolor comment that out, too. Save the file and look at it. See if that takes care of your problem!

 

 

 

If not, look in catalog/stylesheet.css

 

You are looking for something like:

 

.main

or

TR.main

or

TD.main

 

I am not really sure but it would be main and/or "infobox"

 

the code would look something like

 

.main {
border-top: 1px;
}

 

There would probably be lots of other things listed in the same place like font size, color, etc. Mine is so different from the standard, I can't begin to tell you what yours would look like.

 

FYI:

The css style sheet tells the page how you want it to look, whether you want a verdana type or arial, whether you want it to be 14px high or 8, or whether you want it to be a % height. By changing the style sheet, you can completely change your sites whole color scheme and layout.

 

IT IS VERY IMPORTANT TO BACKUP/SAVE THE STYLESHEET AND ANY OTHER FILE BEFORE YOU MAKE ANY CHANGES, ESPECIALLY IF YOU ARE NEW TO THIS.

 

Right now, your problem is really minimal, but if you make changes and forget what you changed, you would have to begin again, you see?

 

Hope this helps!

 

Peace,

Erin :)

Share this post


Link to post
Share on other sites

Hi,

 

I have just installed this contribution but i have a problem.

 

This may well be my fault for wrinting something wrong but after following all the instructions,

 

I get this error message:

 

Parse error: parse error, unexpected T_STRING in /var/www/html/includes/languages/english.php on line 79

 

ans being a newbie, I have no idea what it menas.

 

My english.php file is as follows:

 

<?php

/*

$Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// look in your $PATH_LOCALE/locale directory for available locales

// or type locale -a on the server.

// Examples:

// on RedHat try 'en_US'

// on FreeBSD try 'en_US.ISO_8859-1'

// on Windows try 'en', or 'English'

@setlocale(LC_TIME, 'en_US.ISO_8859-1');

 

define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime()

define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()

define('DATE_FORMAT', 'm/d/Y'); // this is used for date()

define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

 

////

// Return date in raw format

// $date should be in format mm/dd/yyyy

// raw date is in format YYYYMMDD, or DDMMYYYY

function tep_date_raw($date, $reverse = false) {

if ($reverse) {

return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);

} else {

return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);

}

}

 

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)

define('LANGUAGE_CURRENCY', 'USD');

 

// Global entries for the <html> tag

define('HTML_PARAMS','dir="LTR" lang="en"');

 

// charset for web pages and emails

define('CHARSET', 'iso-8859-1');

 

// page title

define('TITLE', 'osCommerce');

 

// header text in includes/header.php

define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account');

define('HEADER_TITLE_MY_ACCOUNT', 'My Account');

define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents');

define('HEADER_TITLE_CHECKOUT', 'Checkout');

define('HEADER_TITLE_TOP', 'Top');

define('HEADER_TITLE_CATALOG', 'Catalog');

define('HEADER_TITLE_LOGOFF', 'Log Off');

define('HEADER_TITLE_LOGIN', 'Log In');

 

// footer text in includes/footer.php

define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since');

 

// text for gender

define('MALE', 'Male');

define('FEMALE', 'Female');

define('MALE_ADDRESS', 'Mr.');

define('FEMALE_ADDRESS', 'Ms.');

 

// text for date of birth example

define('DOB_FORMAT_STRING', 'mm/dd/yyyy');

 

// categories box text in includes/boxes/categories.php

define('BOX_HEADING_CATEGORIES', 'Categories');

 

// manufacturers box text in includes/boxes/manufacturers.php

define('BOX_HEADING_MANUFACTURERS', 'Manufacturers');

 

// whats_new box text in includes/boxes/whats_new.php

define('BOX_HEADING_WHATS_NEW', 'What's New?');

 

// quick_find box text in includes/boxes/quick_find.php

define('BOX_HEADING_SEARCH', 'Quick Find');

define('BOX_SEARCH_TEXT', 'Use keywords to find the product you are looking for.');

define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search');

 

// specials box text in includes/boxes/specials.php

define('BOX_HEADING_SPECIALS', 'Specials');

 

// reviews box text in includes/boxes/reviews.php

define('BOX_HEADING_REVIEWS', 'Reviews');

define('BOX_REVIEWS_WRITE_REVIEW', 'Write a review on this product!');

define('BOX_REVIEWS_NO_REVIEWS', 'There are currently no product reviews');

define('BOX_REVIEWS_TEXT_OF_5_STARS', '%s of 5 Stars!');

 

// shopping_cart box text in includes/boxes/shopping_cart.php

define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart');

define('BOX_SHOPPING_CART_EMPTY', '0 items');

 

// order_history box text in includes/boxes/order_history.php

define('BOX_HEADING_CUSTOMER_ORDERS', 'Order History');

 

// best_sellers box text in includes/boxes/best_sellers.php

define('BOX_HEADING_BESTSELLERS', 'Bestsellers');

define('BOX_HEADING_BESTSELLERS_IN', 'Bestsellers in<br>  ');

 

// notifications box text in includes/boxes/products_notifications.php

define('BOX_HEADING_NOTIFICATIONS', 'Notifications');

define('BOX_NOTIFICATIONS_NOTIFY', 'Notify me of updates to <b>%s</b>');

define('BOX_NOTIFICATIONS_NOTIFY_REMOVE', 'Do not notify me of updates to <b>%s</b>');

 

// manufacturer box text

define('BOX_HEADING_MANUFACTURER_INFO', 'Manufacturer Info');

define('BOX_MANUFACTURER_INFO_HOMEPAGE', '%s Homepage');

define('BOX_MANUFACTURER_INFO_OTHER_PRODUCTS', 'Other products');

 

// languages box text in includes/boxes/languages.php

define('BOX_HEADING_LANGUAGES', 'Languages');

 

// currencies box text in includes/boxes/currencies.php

define('BOX_HEADING_CURRENCIES', 'Currencies');

 

// information box text in includes/boxes/information.php

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');

 

// tell a friend box text in includes/boxes/tell_a_friend.php

define('BOX_HEADING_TELL_A_FRIEND', 'Tell A Friend');

define('BOX_TELL_A_FRIEND_TEXT', 'Tell someone you know about this product.');

 

// checkout procedure text

define('CHECKOUT_BAR_DELIVERY', 'Delivery Information');

define('CHECKOUT_BAR_PAYMENT', 'Payment Information');

define('CHECKOUT_BAR_CONFIRMATION', 'Confirmation');

define('CHECKOUT_BAR_FINISHED', 'Finished!');

 

// pull down default text

define('PULL_DOWN_DEFAULT', 'Please Select');

define('TYPE_BELOW', 'Type Below');

 

// javascript messages

define('JS_ERROR', 'Errors have occured during the process of your form.nnPlease make the following corrections:nn');

 

define('JS_REVIEW_TEXT', '* The 'Review Text' must have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.n');

define('JS_REVIEW_RATING', '* You must rate the product for your review.n');

 

define('JS_ERROR_NO_PAYMENT_MODULE_SELECTED', '* Please select a payment method for your order.n');

 

define('JS_ERROR_SUBMITTED', 'This form has already been submitted. Please press Ok and wait for this process to be completed.');

 

define('ERROR_NO_PAYMENT_MODULE_SELECTED', 'Please select a payment method for your order.');

 

define('CATEGORY_COMPANY', 'Company Details');

define('CATEGORY_PERSONAL', 'Your Personal Details');

define('CATEGORY_ADDRESS', 'Your Address');

define('CATEGORY_CONTACT', 'Your Contact Information');

define('CATEGORY_OPTIONS', 'Options');

define('CATEGORY_PASSWORD', 'Your Password');

 

define('ENTRY_COMPANY', 'Company Name:');

define('ENTRY_COMPANY_ERROR', '');

define('ENTRY_COMPANY_TEXT', '');

define('ENTRY_GENDER', 'Gender:');

define('ENTRY_GENDER_ERROR', 'Please select your Gender.');

define('ENTRY_GENDER_TEXT', '*');

define('ENTRY_FIRST_NAME', 'First Name:');

define('ENTRY_FIRST_NAME_ERROR', 'Your First Name must contain a minimum of ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters.');

define('ENTRY_FIRST_NAME_TEXT', '*');

define('ENTRY_LAST_NAME', 'Last Name:');

define('ENTRY_LAST_NAME_ERROR', 'Your Last Name must contain a minimum of ' . ENTRY_LAST_NAME_MIN_LENGTH . ' characters.');

define('ENTRY_LAST_NAME_TEXT', '*');

define('ENTRY_DATE_OF_BIRTH', 'Date of Birth:');

define('ENTRY_DATE_OF_BIRTH_ERROR', 'Your Date of Birth must be in this format: MM/DD/YYYY (eg 05/21/1970)');

define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)');

define('ENTRY_EMAIL_ADDRESS', 'E-Mail Address:');

define('ENTRY_EMAIL_ADDRESS_ERROR', 'Your E-Mail Address must contain a minimum of ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' characters.');

define('ENTRY_EMAIL_ADDRESS_CHECK_ERROR', 'Your E-Mail Address does not appear to be valid - please make any necessary corrections.');

define('ENTRY_EMAIL_ADDRESS_ERROR_EXISTS', 'Your E-Mail Address already exists in our records - please log in with the e-mail address or create an account with a different address.');

define('ENTRY_EMAIL_ADDRESS_TEXT', '*');

define('ENTRY_STREET_ADDRESS', 'Street Address:');

define('ENTRY_STREET_ADDRESS_ERROR', 'Your Street Address must contain a minimum of ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' characters.');

define('ENTRY_STREET_ADDRESS_TEXT', '*');

define('ENTRY_SUBURB', 'Suburb:');

define('ENTRY_SUBURB_ERROR', '');

define('ENTRY_SUBURB_TEXT', '');

define('ENTRY_POST_CODE', 'Post Code:');

define('ENTRY_POST_CODE_ERROR', 'Your Post Code must contain a minimum of ' . ENTRY_POSTCODE_MIN_LENGTH . ' characters.');

define('ENTRY_POST_CODE_TEXT', '*');

define('ENTRY_CITY', 'City:');

define('ENTRY_CITY_ERROR', 'Your City must contain a minimum of ' . ENTRY_CITY_MIN_LENGTH . ' characters.');

define('ENTRY_CITY_TEXT', '*');

define('ENTRY_STATE', 'State/Province:');

define('ENTRY_STATE_ERROR', 'Your State must contain a minimum of ' . ENTRY_STATE_MIN_LENGTH . ' characters.');

define('ENTRY_STATE_ERROR_SELECT', 'Please select a state from the States pull down menu.');

define('ENTRY_STATE_TEXT', '*');

define('ENTRY_COUNTRY', 'Country:');

define('ENTRY_COUNTRY_ERROR', 'You must select a country from the Countries pull down menu.');

define('ENTRY_COUNTRY_TEXT', '*');

define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:');

define('ENTRY_TELEPHONE_NUMBER_ERROR', 'Your Telephone Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters.');

define('ENTRY_TELEPHONE_NUMBER_TEXT', '*');

define('ENTRY_FAX_NUMBER', 'Fax Number:');

define('ENTRY_FAX_NUMBER_ERROR', '');

define('ENTRY_FAX_NUMBER_TEXT', '');

define('ENTRY_NEWSLETTER', 'Newsletter:');

define('ENTRY_NEWSLETTER_TEXT', '');

define('ENTRY_NEWSLETTER_YES', 'Subscribed');

define('ENTRY_NEWSLETTER_NO', 'Unsubscribed');

define('ENTRY_NEWSLETTER_ERROR', '');

define('ENTRY_PASSWORD', 'Password:');

define('ENTRY_PASSWORD_ERROR', 'Your Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.');

define('ENTRY_PASSWORD_ERROR_NOT_MATCHING', 'The Password Confirmation must match your Password.');

define('ENTRY_PASSWORD_TEXT', '*');

define('ENTRY_PASSWORD_CONFIRMATION', 'Password Confirmation:');

define('ENTRY_PASSWORD_CONFIRMATION_TEXT', '*');

define('ENTRY_PASSWORD_CURRENT', 'Current Password:');

define('ENTRY_PASSWORD_CURRENT_TEXT', '*');

define('ENTRY_PASSWORD_CURRENT_ERROR', 'Your Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.');

define('ENTRY_PASSWORD_NEW', 'New Password:');

define('ENTRY_PASSWORD_NEW_TEXT', '*');

define('ENTRY_PASSWORD_NEW_ERROR', 'Your new Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.');

define('ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING', 'The Password Confirmation must match your new Password.');

define('PASSWORD_HIDDEN', '--HIDDEN--');

 

define('FORM_REQUIRED_INFORMATION', '* Required information');

 

// constants for use in tep_prev_next_display function

define('TEXT_RESULT_PAGE', 'Result Pages:');

define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> products)');

define('TEXT_DISPLAY_NUMBER_OF_ORDERS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> orders)');

define('TEXT_DISPLAY_NUMBER_OF_REVIEWS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> reviews)');

define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> new products)');

define('TEXT_DISPLAY_NUMBER_OF_SPECIALS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> specials)');

 

define('PREVNEXT_TITLE_FIRST_PAGE', 'First Page');

define('PREVNEXT_TITLE_PREVIOUS_PAGE', 'Previous Page');

define('PREVNEXT_TITLE_NEXT_PAGE', 'Next Page');

define('PREVNEXT_TITLE_LAST_PAGE', 'Last Page');

define('PREVNEXT_TITLE_PAGE_NO', 'Page %d');

define('PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE', 'Previous Set of %d Pages');

define('PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE', 'Next Set of %d Pages');

define('PREVNEXT_BUTTON_FIRST', '<<FIRST');

define('PREVNEXT_BUTTON_PREV', '[<< Prev]');

define('PREVNEXT_BUTTON_NEXT', '[Next >>]');

define('PREVNEXT_BUTTON_LAST', 'LAST>>');

 

define('IMAGE_BUTTON_ADD_ADDRESS', 'Add Address');

define('IMAGE_BUTTON_ADDRESS_BOOK', 'Address Book');

define('IMAGE_BUTTON_BACK', 'Back');

define('IMAGE_BUTTON_BUY_NOW', 'Buy Now');

define('IMAGE_BUTTON_CHANGE_ADDRESS', 'Change Address');

define('IMAGE_BUTTON_CHECKOUT', 'Checkout');

define('IMAGE_BUTTON_CONFIRM_ORDER', 'Confirm Order');

define('IMAGE_BUTTON_CONTINUE', 'Continue');

define('IMAGE_BUTTON_CONTINUE_SHOPPING', 'Continue Shopping');

define('IMAGE_BUTTON_DELETE', 'Delete');

define('IMAGE_BUTTON_EDIT_ACCOUNT', 'Edit Account');

define('IMAGE_BUTTON_HISTORY', 'Order History');

define('IMAGE_BUTTON_LOGIN', 'Sign In');

define('IMAGE_BUTTON_IN_CART', 'Add to Cart');

define('IMAGE_BUTTON_NOTIFICATIONS', 'Notifications');

define('IMAGE_BUTTON_QUICK_FIND', 'Quick Find');

define('IMAGE_BUTTON_REMOVE_NOTIFICATIONS', 'Remove Notifications');

define('IMAGE_BUTTON_REVIEWS', 'Reviews');

define('IMAGE_BUTTON_SEARCH', 'Search');

define('IMAGE_BUTTON_SHIPPING_OPTIONS', 'Shipping Options');

define('IMAGE_BUTTON_TELL_A_FRIEND', 'Tell a Friend');

define('IMAGE_BUTTON_UPDATE', 'Update');

define('IMAGE_BUTTON_UPDATE_CART', 'Update Cart');

define('IMAGE_BUTTON_WRITE_REVIEW', 'Write Review');

 

define('SMALL_IMAGE_BUTTON_DELETE', 'Delete');

define('SMALL_IMAGE_BUTTON_EDIT', 'Edit');

define('SMALL_IMAGE_BUTTON_VIEW', 'View');

 

define('ICON_ARROW_RIGHT', 'more');

define('ICON_CART', 'In Cart');

define('ICON_ERROR', 'Error');

define('ICON_SUCCESS', 'Success');

define('ICON_WARNING', 'Warning');

 

define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?');

define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');

define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?');

 

define('TEXT_SORT_PRODUCTS', 'Sort products ');

define('TEXT_DESCENDINGLY', 'descendingly');

define('TEXT_ASCENDINGLY', 'ascendingly');

define('TEXT_BY', ' by ');

 

define('TEXT_REVIEW_BY', 'by %s');

define('TEXT_REVIEW_WORD_COUNT', '%s words');

define('TEXT_REVIEW_RATING', 'Rating: %s [%s]');

define('TEXT_REVIEW_DATE_ADDED', 'Date Added: %s');

define('TEXT_NO_REVIEWS', 'There are currently no product reviews.');

 

define('TEXT_NO_NEW_PRODUCTS', 'There are currently no products.');

 

define('TEXT_UNKNOWN_TAX_RATE', 'Unknown tax rate');

 

define('TEXT_REQUIRED', '<span class="errorText">Required</span>');

 

define('ERROR_TEP_MAIL', '<font face="Verdana, Arial" size="2" color="#ff0000"><b><small>TEP ERROR:</small> Cannot send the email through the specified SMTP server. Please check your php.ini setting and correct the SMTP server if necessary.</b></font>');

define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Warning: Installation directory exists at: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install. Please remove this directory for security reasons.');

define('WARNING_CONFIG_FILE_WRITEABLE', 'Warning: I am able to write to the configuration file: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.');

define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warning: The sessions directory does not exist: ' . tep_session_save_path() . '. Sessions will not work until this directory is created.');

define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Warning: I am not able to write to the sessions directory: ' . tep_session_save_path() . '. Sessions will not work until the right user permissions are set.');

define('WARNING_SESSION_AUTO_START', 'Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.');

define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Warning: The downloadable products directory does not exist: ' . DIR_FS_DOWNLOAD . '. Downloadable products will not work until this directory is valid.');

 

define('TEXT_CCVAL_ERROR_INVALID_DATE', 'The expiry date entered for the credit card is invalid.<br>Please check the date and try again.');

define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid.<br>Please check the number and try again.');

define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s<br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.');

 

/*

The following copyright announcement can only be

appropriately modified or removed if the layout of

the site theme has been modified to distinguish

itself from the default osCommerce-copyrighted

theme.

 

For more information please read the following

Frequently Asked Questions entry on the osCommerce

support site:

 

http://www.oscommerce.com/community.php/faq,26/q,50

 

Please leave this comment intact together with the

following copyright announcement.

*/

define('FOOTER_TEXT_BODY', 'Copyright © 2003 <a href="http://www.oscommerce.com" target="_blank">osCommerce</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>');

// PWA

// Begin Checkout Without Account Modifications

define('IMAGE_BUTTON_CREATE_ACCOUNT', 'Create Account');

define('NAV_ORDER_INFO', 'Order Info');

?>

 

If anyone could tell me where i went wrong, i would be very greatful.

 

Many thanks

 

Ed

Share this post


Link to post
Share on other sites
I get this error message:

 

Parse error: parse error, unexpected T_STRING in /var/www/html/includes/languages/english.php on line 79

 

Line 79 of your english.php is

 

define('BOX_HEADING_WHATS_NEW', 'What's New?');

 

This error has nothing to do with the PWA contribution. Did you OSCommerce run OK before you installed PWA?

 

Always look on the line number mentioned for a typo or an error. If you haven't got a text editor (not Wordpad or Word, a text editor) that shows line numbers, I recommend you get one as it is very helpful.

 

With that error, you especially what to look for something that will start or end the string/words you are trying to define. Can you see what I think is the problem in your line 79 yet? Once it dawns on you, you will slap yourself on the forehead with a Homerific "D'oh!"

 

Okay, time's up.

 

You can see in the define statement above that what you're trying to define (BOX_HEADING_WHATS_NEW) and the value you're giving it (What's New?) are surrounded by apostrophes like so ' '.

 

You will also notice that in the word What's you've got, yes, another apostrophe.

 

So PHP is thinking that you're ending the value there after the letter t in the word What. It's defining BOX_HEADING_WHATS_NEW as 'What' and then it has no idea what the hell you're trying to say with the rest, until it eventually reaches another ' and now it's so confused, it spits out an error at you.

 

What you need to do is add the "escape" character, which is a character that tells PHP to IGNORE the character that immediately follows it. The escape character is \.

 

So, the correct line is:

 

define('BOX_HEADING_WHATS_NEW', 'What\'s New?');

 

Somehow, you lost the \. If OSC was working prior to you installing PWA, somehow you changed it. Never mind, it happens, and testament to that is the amount of hair I've pulled out over stuff like this. :)

Share this post


Link to post
Share on other sites

Just install the PWA .82. I think it is a great contrib, only question is why does the PWA mess with the actual login page? When a returning customer goes to login he is given the choice to go straight to the checkout. Is this the way it works or did I install it incorrectly?

 

PWA does away with my auto login and my anti-robotic registration. Shouldn't there be a completly seperate file for the PWA choice page when checking out if not logged in, rather than mess with the normal login page?

 

Did I install PWA incorrectly?

In which case I will have to start over and reinstall the contrib.

Edited by wood and metal

Share this post


Link to post
Share on other sites

Hi,

 

I've just installed OSC2.2 and then this contrib, I think it is essential for OSC!

 

I overwrote the files and followed the instruccions.

 

But i got a problem:

Checkout process is done OK, no errors. When I go to admin panel, at main page (www.mydomain.com/admin) appears the correct number of orders. But when I open the orders page it appears none.

 

I have reinstalled 3 times, look at the code... but I can't find the trouble.

 

I have "solved" this problem in a very odd way but I would like to find the problem in order to solve it correctly:

 

order.php runs a mysql query like:

      $orders_query_raw = "select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value, s.orders_status_name, ot.text as order_total from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id), " . TABLE_ORDERS_STATUS . " s where o.orders_status = s.orders_status_id and s.language_id = '" . (int)$languages_id . "' and ot.class = 'ot_total' order by o.orders_id DESC";

 

where 2 tables are joined. Taking a look at my database I found that TABLE_ORDERS had information while TABLE_ORDERS_TOTAL was empty. So I just changed the query:

 

    $orders_query_raw = "select o.orders_id, o.customers_name, o.payment_method, o.date_purchased, o.last_modified, o.currency, o.currency_value from " . TABLE_ORDERS . " o  order by o.orders_id DESC";

 

Now, it shows the orders and seems to work. But I think that the problem is still there...

 

Any help?

 

Thanks

Share this post


Link to post
Share on other sites

Hi Im getting these messages when I try to check out...

 

Welcome, Please Sign In

 

 

 

Warning: main(includes/login_pwa.php): failed to open stream: No such file or directory in /hsphere/local/home/lesliear/showcaseyourmemories.com/catalog/login.php on line 150

 

Warning: main(includes/login_pwa.php): failed to open stream: No such file or directory in /hsphere/local/home/lesliear/showcaseyourmemories.com/catalog/login.php on line 150

 

Fatal error: main(): Failed opening required 'includes/login_pwa.php' (include_path='.:/usr/local/lib/php') in /hsphere/local/home/lesliear/showcaseyourmemories.com/catalog/login.php on line 150

 

thanks Leslie

Share this post


Link to post
Share on other sites

ok well i figured what was wrong with the above- the files were in the wrong places.

 

now it is working but i have come across another problem. when i checkout as guest, it directs me to [quote The page cannot be found

The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

 

--------------------------------------------------------------------------------

 

Please try the following:

 

If you typed the page address in the Address bar, make sure that it is spelled correctly.

 

Open the showcaseyourmemories.com home page, and then look for links to the information you want.

Click the Back button to try another link.

Click Search to look for information on the Internet.

 

 

 

HTTP 404 - File not found

Internet Explorer

 

Any help would be appreciated.

leslie

Share this post


Link to post
Share on other sites

Hello :)

 

On installing the PWA contribution v0.82 I've hit a slight snag with the MySQL query, this is what I enetered through phpmyadmin as per the instructions;

 

ALTER TABLE customers ADD purchased_without_account TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL AFTER customers_id;

ALTER TABLE customers ADD INDEX (purchased_without_account);

INSERT INTO configuration_group VALUES (40, 'Accounts', 'Configuration of Account settings', 40, 1);

INSERT INTO configuration VALUES ('', 'Purchase Without Account', 'PWA_ON','true','Allow Customers to purchase without an account', 40, 1, '2003-04-08 13:07:44', '2003-04-08 12:10:51', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),');

ALTER TABLE orders ADD purchased_without_account TINYINT (1) UNSIGNED DEFAULT '0' NOT NULL;

 

The error I received back was;

 

#1060 - Duplicate column name 'orders_status_id'

 

 

The error I now get when completing check out from order_info_process.php is;

 

1054 - Unknown column 'purchased_without_account' in 'field list'

 

select customers_id, purchased_without_account, customers_firstname, customers_password, customers_email_address, customers_default_address_id from customers where upper(customers_email_address) = 'PAUL@BROWNIES.DEMON.CO.UK' and upper(customers_firstname) = 'PAUL' and upper(customers_lastname) = 'BROWN'

 

[TEP STOP]

 

A search through the OSC forums has shown a couple of people with the same problem, but no explanation of a resolution.

 

Anyone have an idea why this happened and how to resolve it?

 

TIA :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×