Guest not asking for email address

Phoca Cart - complex e-commerce extension
mnixson
Phoca Member
Phoca Member
Posts: 28
Joined: 07 Mar 2022, 20:30

Re: Guest not asking for email address

Post by mnixson »

I had ver 4.0.3 installed. 4.0.5 did solve the problem in that the email address was retained in the backend. I did get a copy of the order which I didn't before. The only glitch is that I'm getting errant code displayed at the top of the cart which I've pasted below. I don't see any obvious errors using Chrome developer tools but I'm not good at reading that. Is this a function of a version that is still in beta. Would ver 4.0.4 address this? If necessary I could wait until you have 4.05 completely finished. I have a backup of the prior version I can restore to.

Code at top of each page in checkout follows:
SELECT a.id,a.title,a.image,a.alias,a.unit_amount,a.unit_unit,a.description,a.sku,a.ean,a.upc,a.type,a.points_received,a.price_original,a.stock,a.stock_calculation,a.min_quantity,a.min_multiple_quantity,a.stockstatus_a_id,a.stockstatus_n_id,a.date,a.sales,a.featured,a.external_id,a.external_link,a.external_text,a.price,a.gift_types, GROUP_CONCAT(DISTINCT c.id) AS catid, GROUP_CONCAT(DISTINCT c.title) AS cattitle, GROUP_CONCAT(DISTINCT c.alias) AS catalias, a.catid AS preferred_catid, t.id as taxid, t.tax_rate as taxrate, t.calculation_type as taxcalculationtype, t.title as taxtitle,at.required AS attribute_required, MIN(ppg.price) as group_price, MAX(pptg.points_received) as group_points_received, m.id as manufacturerid, m.title as manufacturertitle, m.alias as manufactureralias, AVG(r.rating) AS rating FROM jos_phocacart_products AS a LEFT JOIN jos_phocacart_product_categories AS pc ON pc.product_id = a.id LEFT JOIN jos_phocacart_categories AS c ON c.id = pc.category_id LEFT JOIN jos_phocacart_reviews AS r ON a.id = r.product_id AND r.id > 0 LEFT JOIN jos_phocacart_manufacturers AS m ON m.id = a.manufacturer_id LEFT JOIN jos_phocacart_taxes AS t ON t.id = a.tax_id LEFT JOIN jos_phocacart_attributes AS at ON a.id = at.product_id AND at.id > 0 AND at.required = 1 LEFT JOIN jos_phocacart_item_groups AS ga ON a.id = ga.item_id AND ga.type = 3 LEFT JOIN jos_phocacart_item_groups AS gc ON c.id = gc.item_id AND gc.type = 2 LEFT JOIN jos_phocacart_product_price_groups AS ppg ON a.id = ppg.product_id AND ppg.group_id IN (SELECT group_id FROM jos_phocacart_item_groups WHERE item_id = a.id AND group_id IN (1) AND type = 3) LEFT JOIN jos_phocacart_product_point_groups AS pptg ON a.id = pptg.product_id AND pptg.group_id IN (SELECT group_id FROM jos_phocacart_item_groups WHERE item_id = a.id AND group_id IN (1) AND type = 3) WHERE a.published = 1 AND c.published = 1 AND c.type IN (0,1) AND c.access IN (1,5) AND a.access IN (1,5) AND (ga.group_id IN (1) OR ga.group_id IS NULL) AND (gc.group_id IN (1) OR gc.group_id IS NULL) AND c.id IN (9) GROUP BY a.id ORDER BY c.id, pc.ordering ASC

SELECT a.id FROM jos_phocacart_products AS a LEFT JOIN jos_phocacart_product_categories AS pc ON pc.product_id = a.id LEFT JOIN jos_phocacart_categories AS c ON c.id = pc.category_id LEFT JOIN jos_phocacart_manufacturers AS m ON m.id = a.manufacturer_id LEFT JOIN jos_phocacart_attributes AS at ON a.id = at.product_id AND at.id > 0 AND at.required = 1 LEFT JOIN jos_phocacart_item_groups AS ga ON a.id = ga.item_id AND ga.type = 3 LEFT JOIN jos_phocacart_item_groups AS gc ON c.id = gc.item_id AND gc.type = 2 WHERE a.published = 1 AND c.published = 1 AND c.type IN (0,1) AND c.access IN (1,5) AND a.access IN (1,5) AND (ga.group_id IN (1) OR ga.group_id IS NULL) AND (gc.group_id IN (1) OR gc.group_id IS NULL) AND c.id IN (9) GROUP BY a.id

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Guest not asking for email address

Post by Jan »

Hi, please reinstall with:
https://github.com/PhocaCz/PhocaCart/re ... 5Beta3.zip

(the code was a part of debug mode).
It should be OK now.

Jan
If you find Phoca extensions useful, please support the project
mnixson
Phoca Member
Phoca Member
Posts: 28
Joined: 07 Mar 2022, 20:30

Re: Guest not asking for email address

Post by mnixson »

The beta 3 version more or less worked without error. In the backend billing information, the email address was completed however the shipping information was completely blank, address and email. During checkout it displayed that billing and shipping address were the same but the shipping fields were not completed. A minor thing perhaps but I think most shopping cart products will reflect that data in both categories of billing and shipping.

However, during checkout I got an error on the page when saving the address info. After checking my logs I took a guess that this upgrade does not like PHP 8.0 which is going around a lot with Joomla 4 software these days. I changed my PHP back to 7.4.13, refreshed the page and was able to complete the sale. There are a lot of Joomla 4 related software conflicts with PHP 8 in general right now and I hope you can resolve this one in Phoca Cart in the next few months. After March of next year we will no longer run PHP 7x on our web server.

I'll keep investigating but while the customer gets notified of the pending order, I as the owner am not. Since I am the customer in all of these tests I should be getting two notifications. These are all guest checkouts not registered users. I'm trying to determine where to configure Phoca to send the owner a copy of the transaction. In Order Status I can select to send a copy to the customer (or not) but there is no logic in there to copy other users like the owner. Now that I think about it, there doesn't appear to be any functionality in the cart that knows who the "owner" is. How do I affect this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Guest not asking for email address

Post by Jan »

Hi,

1) when billing and shipping address is marked as the same, no changes or no data are saved into shipping fields. (There can be e.g. old data, which user can e.g. restore, etc.). If he/she checked that the billing and shipping address are the same, then the e.g. invoice get billing address for both

2) Can you paste here the complete error (with enabled debug mode so it includes file and line and debug trace where this happens). Phoca Cart is developed on PHP 8 for several months now (now on PHP 8.1.6)

3) you can set owner email or even other emails (owners, managers, marketing department, etc.) in order status:

Image

Jan
If you find Phoca extensions useful, please support the project
mnixson
Phoca Member
Phoca Member
Posts: 28
Joined: 07 Mar 2022, 20:30

Re: Guest not asking for email address

Post by mnixson »

I'll respond to item 2 in a while.

Regarding item 3, my screen in 4.0.5 beta3 does not show the 'Email (Others)' field only an 'Email (Customer)' field which is a Y/N input. See this screenshot: https://talos4.net/images/OrderStatusPending.png.
mnixson
Phoca Member
Phoca Member
Posts: 28
Joined: 07 Mar 2022, 20:30

Re: Guest not asking for email address

Post by mnixson »

Regarding item 2 and the error at checkout I think this image will give you what you are looking for.
https://talos4.net/images/PHP-Error.png
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Guest not asking for email address

Post by Jan »

Hi,
3) When you scroll down, don't you see any other parameters?

2) Do you get the same with 4.0.5Beta5:
https://github.com/PhocaCz/PhocaCart/re ... 5Beta5.zip
?

Jan
If you find Phoca extensions useful, please support the project
mnixson
Phoca Member
Phoca Member
Posts: 28
Joined: 07 Mar 2022, 20:30

Re: Guest not asking for email address

Post by mnixson »

I changed the Joomla error reporting level to maximum and the image reflected what messaging resulted.

To answer your second question, no, I did not install 4.0.5 beta 5 as I didn't know that existed until just now. The last message from you in this thread on Sept 9, only referenced beta 3 with a link. I'll proceed to try beta 5 tomorrow and advise.

If there is a diagnostic tool that I'm missing please let me know. I can access the Chrome Developer Tools and my own internal apache logs (generally not useful in this case) but Developer Tools are a bite of a mess to report on.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Guest not asking for email address

Post by Jan »

Hi, the best diagnostical tool is the enabling of PHP errors, which you have done. For solving the warning messages it is OK.

The development of Phoca Cart is very fast, now the latest beta is 4.0.5Beta7:
https://github.com/PhocaCz/PhocaCart/re ... 5Beta7.zip
( https://github.com/PhocaCz/PhocaCart/re ... /4.0.5Beta )

Both corrections and new features are added to the beta, and since there are a lot of feature requests, the Beta version changes quickly. The problem displayed on your screenshot should be OK there, just test the latest version and let me know.

Jan
If you find Phoca extensions useful, please support the project
mnixson
Phoca Member
Phoca Member
Posts: 28
Joined: 07 Mar 2022, 20:30

Re: Guest not asking for email address

Post by mnixson »

using Beta7, I tested an order and it processed fine with respect to retaining the email address in the order. I'm using PHP 8.1 at this point. There were no errors processing the order however when I turned on error reporting to maximum I got a page full of error code (pasted below).

Regarding all of the dialogs in 'Orders Statuses', they do not show the 'Email (Others)' field - only an 'Email (Customer)' field which is a Y/N input. This screenshot is still applicable: https://talos4.net/images/OrderStatusPending.png. Therefore I am not being notified.
************************
Errors when error reporting in Joomla 4 is turned on to maximum:
Symfony \ Component \ ErrorHandler \ Error \ FatalError
Error: During inheritance of Countable: Uncaught Whoops\Exception\ErrorException: Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/talos4n/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Node/Node.php:213 Stack trace: #0 /home/talos4n/public_html/libraries/gantry5/src/classes/Gantry/Component/Whoops/SystemFacade.php(112): Whoops\Run->handleError() #1 /home/talos4n/public_html/libraries/gantry5/compat/vendor/twig/twig/src/Node/Node.php(23): Gantry\Component\Whoops\SystemFacade->handleError() #2 /home/talos4n/public_html/libraries/vendor/composer/ClassLoader.php(571): include('...') #3 /home/talos4n/public_html/libraries/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile() #4 [internal function]: Composer\Autoload\ClassLoader->loadClass() #5 /home/talos4n/public_html/libraries/gantry5/compat/vendor/twig/twig/src/TwigFilter.php(128): class_exists() #6 /home/talos4n/public_html/libraries/vendor/composer/ClassLoader.php(571): include('...') #7 /home/talos4n/public_html/libraries/vendor/composer/ClassLoader.php(428): Composer\Autoload\includeFile() #8 /home/talos4n/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php(107): Composer\Autoload\ClassLoader->loadClass() #9 /home/talos4n/public_html/libraries/gantry5/src/classes/Gantry/Framework/Theme.php(70): Gantry\Component\Theme\AbstractTheme->extendTwig() #10 /home/talos4n/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php(158): Gantry\Framework\Theme->extendTwig() #11 /home/talos4n/public_html/libraries/gantry5/src/classes/Gantry/Component/Theme/AbstractTheme.php(176): Gantry\Component\Theme\AbstractTheme->renderer() #12 /home/talos4n/public_html/templates/rt_phoenix/index.php(30): Gantry\Component\Theme\AbstractTheme->render() #13 /home/talos4n/public_html/libraries/src/Document/HtmlDocument.php(736): require('...') #14 /home/talos4n/public_html/libraries/src/Document/HtmlDocument.php(790): Joomla\CMS\Document\HtmlDocument->_loadTemplate() #15 /home/talos4n/public_html/libraries/src/Document/HtmlDocument.php(608): Joomla\CMS\Document\HtmlDocument->_fetchTemplate() #16 /home/talos4n/public_html/libraries/src/Application/CMSApplication.php(1004): Joomla\CMS\Document\HtmlDocument->parse() #17 /home/talos4n/public_html/libraries/src/Application/SiteApplication.php(714): Joomla\CMS\Application\CMSApplication->render() #18 /home/talos4n/public_html/libraries/src/Application/CMSApplication.php(299): Joomla\CMS\Application\SiteApplication->render() #19 /home/talos4n/public_html/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute() #20 /home/talos4n/public_html/index.php(32): require_once('...') #21 {main}
COPY HIDE
Stack frames (1)
0
Symfony\Component\ErrorHandler\Error\FatalError
…/compat/vendor/twig/twig/src/Node/Node.php23
********there is more error output which I saved but it exceeded your character count. MJN**********
Post Reply