Purchase without Account

PWA 5.0 - Purchase without Account

PWA 5.0

by BatteryTrader » Thu May 01, 2025 3:54 pm

Hi

Playing with the latest versions, thinking its time to upgrade my site as i missed many updates and fell behind

New instal of 1.101, on php 8.3

First add on put on is PWA 5.0

It seems to be failing on a file that does not exist

I do not have

templates/override/includes/hooks/shop/siteWide/pwa.php

its

templates/override/includes/hooks/admin/siteWide/pwa.php

is there a typo in the module, or have I got wrong end of stick.

Here is my PHP error, edited

Thu May 01 15:00:30.356008 2025] [proxy_fcgi:error] [pid 146541:tid 146668] [client 000.000.000.000:0] AH01071: Got error 'PHP message: PHP Warning: Undefined array key "email_address" in /home/xxxxx/domains/mydomain.co.uk/public_html/templates/override/includes/hooks/shop/siteWide/pwa.php on line 83; PHP message: PHP Fatal error: Uncaught TypeError: Text::prepare(): Argument #1 ($s) must be of type string, null given, called in /home/xxxxx/domains/mydomain.co.uk/public_html/templates/override/includes/hooks/shop/siteWide/pwa.php on line 83 and defined in
/home/xxxxxxx/domains/ mydomain.co.uk/public_html/includes/system/versioned/1.0.8.2/text.php:63\nStack trace:\n#0 /home/xxxxxx/domains/ mydomain.co.uk/public_html/templates/override/includes/hooks/shop/siteWide/pwa.php(83): Text::prepare()\n#1 /home/xxxxxxx/domains/ mydomain.co.uk/public_html/includes/system/versioned/1.0.8.1/hooks.php(150): hook_shop_siteWide_pwa->listen_injectAppTop()\n#2 /home/xxxxxxxx/domains/ mydomain.co.uk/public_html/includes/system/versioned/1.0.8.1/hooks.php(128): hooks->cat()\n#3 /home/xxxxxxxx/domains/ mydomain.co.uk/public_html/includes/system/versioned/1.0.8.1/hooks.php(160): hooks->register_page()\n#4 /home/xxxxxx/domains/poweredbybatteries....', referer: https://www. mydomain.co.uk/checkout_guest.php

Kindest regards
BatteryTrader
Contributor
Posts: 153
Joined: Thu Apr 11, 2024 7:18 am
Phoenix Version: 1.1.0.3
Contact:

Re: PWA 5.0

by raiwa » Thu May 01, 2025 4:19 pm

You have the shop side hook. Its mentioned in the error:
templates/override/includes/hooks/shop/siteWide/pwa.php

I think you missed to add the checkout guest page to the required customer data e-mail and other modules.
See previous thread "missing input-fields Customer details form" and instructions point 4
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
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Contact:

Re: PWA 5.0

by BatteryTrader » Thu May 01, 2025 6:26 pm

Must admit, far more familier with 2.3.3.4, so did not really understand the instructions in point 4, despite reading it many times.

Think your explanation in a previous thread would help others clarify what needs to be done better, as it resolved it fine and made it clear. Perhaps if I had installed other mods first, I would have known what it meant.

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


Thank you.
BatteryTrader
Contributor
Posts: 153
Joined: Thu Apr 11, 2024 7:18 am
Phoenix Version: 1.1.0.3
Contact: