Jump to content
ArtcoInc

Purchase without account for 2.3.4 and BS2334

Recommended Posts

discount code? yes

matc? Right now I do not know what it is.

pdf invoice? no

ultimate html? yes

 

matc=>the "must agree to terms and conditions" checkbox on the checkout payment page

pdf invoice=> yes, sorry, I wanted to say html e-mails

 

and there may bere more modifications which are not visible on the pages or html source code.

Share this post


Link to post
Share on other sites

@@raiwa

one thought, if a guest customer is asked to review the product bought, the current functionality only allows a review to be made if the customer has an account.

 

So, to get over this issue, could a random token be assigned to the guest customer order, so when the guest attempts to make a review a token is passed and if this matches the guest taken on the order, then a review can be made.

 

Hope that makes sense

 

Mike

 

 

That's easily done Mike and has already been done - read from here.  

 

@@raiwa, @@burt

Have just manged to get a guest to write a review, by using the header_tag module burt mentioned. with the attached php file

 

When a guest makes an order a token is stored in the orders tables.

 

using the url

....catalog/product_reviews_write_pwa.php?products_id=nnnn&pwa_id=xxxxXXXXxxxx

 

the customer can be asked to write a review, only if the pwa_id token exists and matches the product_id of the order.

 

Please check this out, and see if we can add it to the PWA module

 

Regards

Mike

product_reviews_write_pwa.php


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

Sorry @@raiwa, mact yes

 

I have tried several things at the same time and now I do not remember what it has been but when modifying includes / classes / payment.php something has changed, the registered client does not lose the session. Unfortunately, the customer without account also loses it and does not delete their account at the end of the purchase process, is still identified.

This has happened to me in another store that has ship2pay, pwa, sppc lite and individual shipping method. The one you know does not have sppc lite installed but you have individual payment method.

I insist that the addons are not installed, it is a conflict in payment or shipping. It must be badly installed on one or both files. It is not normal to go from page to page of the purchase process is fast and that when you are going to confirm the order will become slow or very slow.

 

 

 

I'm sorry for the bad translation, I use the google translator.

Share this post


Link to post
Share on other sites

addons reflex: ship2pay, pwa. individual shipping and payment method

 

addons relojes: ship2pay, pwa, sppc lite, individial shipping method

 

Confirming the order is very slow compared to the rest of the buying process. This had never happened before.

 

Has to be wrongly installed in payment or shipping. It's probably ship2pay.

Share this post


Link to post
Share on other sites

Hola Alfonso @@reflex-ocasion,

 

addons reflex: ship2pay, pwa. individual shipping and payment method
 
addons relojes: ship2pay, pwa, sppc lite, individial shipping method

 
Plus all the other add-ons/modifications you listed before, and you said, when I asked if you had add-ons or modifications in the checkout process:
 

There is nothing to interfere with during the payment process.

 ???????????
 
If you are using ship to pay to disable a payment method if a certain shipping method is choosen, you could do the following in the payment method's "is_enabled" function:

    function isEnabled() {
    	global $shipping;
    	if($shipping == 'shipping_method_name') {
    		$this->enabled = false;
    	} else {
    		return $this->enabled;
    	}
    }

It's hardcoded, but it will replace what you are doing with ship2pay. I removed ship2pay a long time ago because of incompatibility reasons, but do not remember what exact it was.

 

Hope this helps

Rainer

Share this post


Link to post
Share on other sites

Have just manged to get a guest to write a review, by using the header_tag module burt mentioned. with the attached php file

 

Hello Mike @@Mikepo,

 

Could you please post the link to the ht module or upload it. I would like to do some testing.

 

Thanks and kind regards

Rainer

Share this post


Link to post
Share on other sites

@@raiwa

just testing your V2.3.

 

I'm not being offered the option to set a password, looking at the code in cm_cs_pwa_products_purchased.php

 

        // offer to keep account and set password      
        if ( defined('MODULE_CONTENT_PWA_LOGIN_KEEP_ACCOUNT') && MODULE_CONTENT_PWA_LOGIN_KEEP_ACCOUNT == 'True' ) {

 

the code within the 'if' statement is not executed

 

I'll keep looking why, but if you can help please advise.

 

Mike


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

@@Mikepo,

 

Seems you didn't update the cm_pwa_login.php module.

 

Uninstall, upload and replace, reinstall: includes/modules/content/login/cm_pwa_login.php

 

"Update to Version. 2.3" in PWA Guest Checkout Documentation.pdf

Edited by raiwa

Share this post


Link to post
Share on other sites

@@raiwa

I have the new cm_pwa_login.php file,

 

uninstalled, and installed, with the option to allow a password set to true.

 

I followed the update documentation, so something I missed, or something else.

 

I'm still not being offered the option to set a password, as given in cm_cs_pwa_products_purchased.php

 

the products bought are shown so the module is installed and running!

 

I'll keep looking

Mike


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

@@Mikepo,

 

I checked again with the package files and it works for me.

Did you also replace the checkout success-pwa_products_purchased.php template file?

Nuts, just checked and it's missing in the update file list :-

Edited by raiwa

Share this post


Link to post
Share on other sites

@@raiwa

sorry, just found it, the pwa_products_purchased.php template file was not updated.

 

system now deletes customer details when the option is selected.

 

However, if the option to keep the account is selected, then I'm not given an option to set the password

 

I get redirected to calalog/account.php, and I'm logged off, and the account is deleted


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

@@raiwa

is it something to do with not setting the password first?  I see that was removed with the account_pwa.php file

 

the header tag module is updated, just checked

 

Looking at the set_password.php file

 

these statements would redirect you to the account file

 

  if ( MODULE_CONTENT_ACCOUNT_SET_PASSWORD_ALLOW_PASSWORD != 'True' ) {
    tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
  }

 

  if ( !empty($check_customer['customers_password']) ) {
    tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));
  }

 

are these statements causing the problem?

Edited by Mikepo

osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

@@raiwa

I've double checked all the files, and still I can't see the problem.

 

I'll leave it for tonight, try again tomorrow


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

Good morning Mike @@Mikepo,

 

I checked again all involved modules where unregister occures, and all is wrapped inside the condition:

      if (tep_session_is_registered('customer_is_guest')){

So for debugging, you should observe the session. It should include the parameter "customer_is_guest' through all the process until the password is successful set in account.php. Only then, the session parameter is removed and the guest is unflagged in the customer table, this is done in the header tag module:

      // do things if a guest comes from checkout success
 	    if ( tep_session_is_registered('customer_is_guest') && isset($navigation->snapshot) && $navigation->snapshot['page'] == 'checkout_success.php' ) {
        if ( defined('MODULE_CONTENT_PWA_LOGIN_KEEP_ACCOUNT') && MODULE_CONTENT_PWA_LOGIN_KEEP_ACCOUNT == 'True' && 
             basename($PHP_SELF) == 'account.php' && strpos($messageStack->output('account'), 'alert-success') ) { 
          // Unregister and remove guest from customers table if password is successful set
          tep_session_unregister('customer_is_guest');
          tep_db_query("update customers set customers_guest = '0' where customers_id = '" . (int)$customer_id . "'");

Hope this helps

Rainer

.

 

Share this post


Link to post
Share on other sites

@@raiwa, good morning!

 

it always works, walk away and later you find the problem.

 

I didn't have the Set Account Password module installed! (w00t)   Perhaps this should documented in the manual.

 

All seems well now.  The new version is great, I'll install live later.

 

Thanks for you help, even though it was my fault. 

 

Regards

Mike


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

@@Mikepo,
 
Thank You.
 
I'll revise the instructions with the 2 points you found.
 
Meanwhile for the reviews issue:

Hello Mike @@Mikepo,
 
Could you please post the link to the ht module or upload it. I would like to do some testing.
 
Thanks and kind regards
Rainer


rgds
Rainer

Share this post


Link to post
Share on other sites

Hello Mike, @@Mikepo,

 

New version 2.4 beta with reviews for testing:

 

Changes Version. 2.4
- Reviews support added.
- Improved installation checks in login module and links added to install other required modules

 

 

 

 

Please let me know any issues.

 

Thans and best regards

Rainer

Share this post


Link to post
Share on other sites

@@Mikepo and others,

 

Found some issues I fixed and changed the checkout_process.php mods to hook:

Update from first beta:

- replace checkout_process.php or redo modifications

- replace paypal_standard.php or redo modifications

- replace admin/orders.php or redo modifcations

- upload: includes/hooks/pwa/..all content

- apply legacy hooks if not laready present

 

Changes:

- in admin/orders.php: do not send the "Write product review(s)" comment to customer, only add to comments for admin control

- some minor changes in the review links of the mails

- created hook for the checkout_process.php modifications => less changes, easier updates

 

Please give it a try:

 

 

Would be good to get some test feedback :)

 

rgds

Rainer

Share this post


Link to post
Share on other sites

@@raiwa, not had time to look at v2.4 beta yet, other issues are more pressing at the moment.

Give me a week or two.

regards

Mike


osC BS gold live - osC CE in development (awesome)

Share this post


Link to post
Share on other sites

Help Reiner (Brauche Bitte deine hilfe)

I meesed PWA up ...did something wrong (i haveOSC in 2 folders the second is a Backup but with the same DataBase)

I have upgrade the files from 2.2r2 to 2.3 in one folder and did the same in the other folder and then uninstal and instal and i forgat to refresh in the other folder and click to uninstall again (in the Database it was uninstalled)

Now when I go in admin to modules->login->Install->Login without Account Form

 

1060 - Duplicate column name 'customers_guest'

alter table address_book add column `customers_guest` INT(1) NOT NULL DEFAULT '0' AFTER `customers_id`

-----

I checked the Database at the Table "address_book" there is only one Column with the name "customers_guest"

but in the Table Customers exists another one column with the same name "customers_guest".

Edited by Pelvis

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

×