AJAX Attribute Manager
Requester on new Product - AJAX Attribute Manager
Requester on new Product
Hi Rainer,
got a requester "There was an error while retrieving the URL: " without any other infos and following console log: (complete address is: admin/attributeManager/attributeManager.php?pageAction=new_product&82918797214d95c07e7190effff7534b) after trying to add a new product. Can click the requester away and AttribManager Tab says "Product must be saved".
While editing an existing product, everything works fine.
I'm on Phoenix v1.0.8.20 and AttribManager v3.5.2. Any clues ?
Regards,
Denzel
got a requester "There was an error while retrieving the URL: " without any other infos and following console log: (complete address is: admin/attributeManager/attributeManager.php?pageAction=new_product&82918797214d95c07e7190effff7534b) after trying to add a new product. Can click the requester away and AttribManager Tab says "Product must be saved".
While editing an existing product, everything works fine.
I'm on Phoenix v1.0.8.20 and AttribManager v3.5.2. Any clues ?
Regards,
Denzel
-
Denzel
- Member
- Posts: 87
- Joined: Sat Oct 31, 2020 7:22 pm
- Phoenix Version:
- Contact:
Re: Requester on new Product
Using attributes manager requires to save the product first.
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
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
- : Buy Me A Beverage
- Contact:
Re: Requester on new Product
So this is a Feature not a Bug? Isn't there a way to suppress this requester?
-
Denzel
- Member
- Posts: 87
- Joined: Sat Oct 31, 2020 7:22 pm
- Phoenix Version:
- Contact:
Re: Requester on new Product
It's neither a feature. It's required to have the product saved to get the ajax attributes manager working because it needs the product id and other data already to be available in the database.
In my test shop (Phoenix 1.0.8.20/PHP 8.0) I do not get the requester error.
Before I save a new product I get the expected message "Save Product before adding options" displayed in the Attributes Manager tab.
It must be something with your store.
In my test shop (Phoenix 1.0.8.20/PHP 8.0) I do not get the requester error.
Before I save a new product I get the expected message "Save Product before adding options" displayed in the Attributes Manager tab.
It must be something with your store.
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
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
- : Buy Me A Beverage
- Contact:
Re: Requester on new Product
That's what I would expect. So I'll try to find the reason. This Requester holds the whole browser.raiwa wrote: In my test shop (Phoenix 1.0.8.20/PHP 8.0) I do not get the requester error.
Regards
-
Denzel
- Member
- Posts: 87
- Joined: Sat Oct 31, 2020 7:22 pm
- Phoenix Version:
- Contact:
Re: Requester on new Product
I now had some time and have suppressed the requester as follows:
inside sitewide admin hook. Manager works as expected. Requester gone 
Code: Select all
function listen_injectSiteStart() {
global $action;
if (( Request::get_page() == 'catalog.php' ) && (isset($_GET['pID']))) {
include('attributeManager/includes/attributeManagerHeader.inc.php');
}
}
-
Denzel
- Member
- Posts: 87
- Joined: Sat Oct 31, 2020 7:22 pm
- Phoenix Version:
- Contact:
Re: Requester on new Product
Thanks. I'll add it to the next update.
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
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
- : Buy Me A Beverage
- Contact:
Re: Requester on new Product
I have the same issue, solved adding && (isset($_GET['pID'])Denzel wrote:I now had some time and have suppressed the requester as follows:inside sitewide admin hook. Manager works as expected. Requester goneCode: Select all
function listen_injectSiteStart() { global $action; if (( Request::get_page() == 'catalog.php' ) && (isset($_GET['pID']))) { include('attributeManager/includes/attributeManagerHeader.inc.php'); } }
-
PiLLaO
- Contributor
- Posts: 107
- Joined: Thu Nov 05, 2020 9:28 pm
- Phoenix Version: v1.1.0.6
- Contact:
Re: Requester on new Product
Can you confirm that the errors are fixed with the 4.1 update.
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
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
- : Buy Me A Beverage
- Contact:
Re: Requester on new Product
On 4.1 still present
The hooks needs the Denzel fix and version need to be upgraded
The hooks needs the Denzel fix and version need to be upgraded
Code: Select all
public $version = '3.4.0';-
PiLLaO
- Contributor
- Posts: 107
- Joined: Thu Nov 05, 2020 9:28 pm
- Phoenix Version: v1.1.0.6
- Contact: