Purchase without Account

"PWA Guest Account" Hook is not present. It is required, ple - Purchase without Account

"PWA Guest Account" Hook is not present. It is required, ple

by jawadakr » Sun May 29, 2022 1:29 pm

Hello fellow Phoenix users,

I waited for this module update for months :) and installed it yesterday.

I am facing this problem ""PWA Guest Account" Hook is not present.
It is required, please copy the hook." I followed every thing according to the guide from step 1 to 5.

Any idea how to fix it. ?

Using latest Pheonix version 1.0.8.14 and addon version 4.5.4

Regards

Jawad
jawadakr
Posts: 9
Joined: Sat Feb 19, 2022 12:48 am
Contact:

Re: "PWA Guest Account" Hook is not present. It is required,

by raiwa » Sun May 29, 2022 3:34 pm

Did you do this (in instructions explained below the file list):
NOTE: Make sure you are using the "override" template and have it selected in:
Admin : Configuration : My Store : Template Selection
Otherwise you must copy:
/templates/override/includes/ext/modules/content/reviews/write_pwa.php
/templates/override/includes/hooks/shop/siteWide/pwa.php
/templates/override/includes/hooks/shop/siteWide/MATCpwa.php
/templates/override/includes/hooks/write_pwa/css.php
/templates/override/includes/pages/create_account_pwa.php
TO:
/templates/YOUR SELECTED TEMPLATE/includes/ext/modules/content/reviews/write_pwa.php
/templates/YOUR SELECTED TEMPLATE/includes/hooks/shop/siteWide/pwa.php
/templates/YOUR SELECTED TEMPLATE/includes/hooks/shop/siteWide/MATCpwa.php
/templates/YOUR SELECTED TEMPLATE/includes/hooks/write_pwa/css.php
/templates/YOUR SELECTED TEMPLATE/includes/pages/create_account_pwa.ph
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: "PWA Guest Account" Hook is not present. It is required,

by jawadakr » Tue May 31, 2022 6:20 pm

Hi Raiwa,

Thanks for correcting. I did a complete refresh install of the module and I probably forgot that point.

If I visit this page store/create_account_pwa.php after clicking on the link in checkout page.

Now I am seeing this problem.

Error: 404 - Category not found
You may not be able to visit this page because of

Regards
jawadakr
Posts: 9
Joined: Sat Feb 19, 2022 12:48 am
Contact:

Re: "PWA Guest Account" Hook is not present. It is required,

by raiwa » Tue May 31, 2022 6:55 pm

Please be more precise.
checkout page
is not a clear reference There are 5 pages with "checkout" in the name and you probably are referring to none of them, but login.php. Please post the URL or the exact filename. Please post also always the complete error messages you get. My clairvoyance talent is very limited. :D

Do you have added the pwa_create_account.php page to the pages list of the customer data modules you wish to use on create_account.pwa.php, like explained in the instructions:
4. [Required] In Admin =>Modules => Customer Data for all Modules you wish to show
on the create_account_pwa page, tick the page 'create_account_pwa' in the 'Pages' list.
and like posted in this older thread:
app.php/addons/free_addon/purchase_with ... /topic/371
raiwa wrote:example: city:
In admin : Modules : Customer Data =>Select Module : City => Click : Edit => In the right area Under: Pages =>
check checkbox: create_account_pwa

Do the same for all other customer data modules you wish to show on the create_account_pwa page:
State, Country, Street Address, telephone etc.
If it's not this, please post the complete error message.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: "PWA Guest Account" Hook is not present. It is required,

by jawadakr » Tue May 31, 2022 9:05 pm

Ah my mistake :)

Actually all moduels are configure as per documentation. Only password fields modules are not set to show on create_account_pwa.php file.

What happens is that If I add few products in cart , go to checkout and then click on guess checkout option it takes me 404 page.

https://www.cosmicessentialoils.com/store/

You can check the scenario in the above link.

I ll remove the link later.

Regardds
jawadakr
Posts: 9
Joined: Sat Feb 19, 2022 12:48 am
Contact:

Re: "PWA Guest Account" Hook is not present. It is required,

by raiwa » Wed Jun 01, 2022 1:55 am

Make sure that you have both page files uploaded and the correct files in the correct place(they have the same file names, but not the same content):
create_account_pwa.php
/templates/override/includes/pages/create_account_pwa.php
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: "PWA Guest Account" Hook is not present. It is required,

by jawadakr » Wed Jun 01, 2022 7:42 am

I just resync and upload the whole addon directory.

PWA_Phoenix_4.5.4\upload with live site root folder of Pheonix cart. Same result.

I ll try again with fresh Pheonix cart today.
jawadakr
Posts: 9
Joined: Sat Feb 19, 2022 12:48 am
Contact:

Re: "PWA Guest Account" Hook is not present. It is required,

by raiwa » Wed Jun 01, 2022 10:34 am

You may check if you have any redirects in your root .htaccess and remove them temporary for testing.
Check also if you are using cache on your server and reset it or disable it temporary for testing.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact:

Re: "PWA Guest Account" Hook is not present. It is required,

by jawadakr » Sat Jun 04, 2022 12:52 am

Hello Raiwa,

After installing the addon on new instance of Pheonix cart the problem was still there. So I looked into other options.

Since the main website is joomla so it was thrownig its own 404 page. The problem is with file permissions in your module zip.

May be you ae using windows machine for development so all the files were zipped with permission '664'. Changing it to standard 644 fix the problem after spending almost 2 days on it.

I guess let's keep this post for future people now.

Regards

Jawad
jawadakr
Posts: 9
Joined: Sat Feb 19, 2022 12:48 am
Contact:

Re: "PWA Guest Account" Hook is not present. It is required,

by raiwa » Sat Jun 04, 2022 4:45 am

Hi Jawad,

I’m glad you got it sorted.
Windows doesn’t interfere in Linux file permissions. It’s your servers default setting or the ftp client which are setting the permissions.
Note that I develop my Addons and work on clients shops since many years and never had this problem neither any other user of my Addons has reported this. Check your server and ftp client settings.
You can also use the security checks in Phoenix admin to check the whole shop for correct permissions.
Here is a resource about this:
https://serverfault.com/questions/1983 ... -directory
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
raiwa
PhoenixCart Developer
PhoenixCart Developer
Posts: 1184
Joined: Sat Dec 21, 2019 8:08 am
Contact: