Zen Cart Logo
Forums / All Other Contributions/Addons / Product Attribute Grid

Product Attribute Grid

Views: 139,350

Results 541 to 546 of 546
21 Mar 2021, 3:57 AM
#541
donw avatar

donw

New Zenner

Join Date:
May 2018
Location:
Melbourne, Australia
Posts:
29
Plugin Contributions:
0

Product Attribute Grid

mc12345678:

That was from a point "silent" protest to the absence of the define as in a default installation TEXT_PREFIX and UPLOAD_PREFIX are the same value. As a result of that fact, for a default installation the above commenting out of code won't hurt anything. It still though doesn't explain the situation of the product not being added to the cart.

That said, some interim changes I've locally made included a test for FILE_PREFIX being defined and in the previous if statement to verify that TEXT_PREFIX is also defined.

What should happen here though for the widest compatibility is for the above FILE_PREFIX to be changed to UPLOAD_PREFIX:

} elseif (defined('UPLOAD_PREFIX') && substr($option_id, 0, strlen(UPLOAD_PREFIX)) == UPLOAD_PREFIX) {
$option_ref[substr($option_id, strlen(UPLOAD_PREFIX))] = $option_id;
$option_id = substr($option_id, strlen(UPLOAD_PREFIX));


I've just applied this, and tested it with SBA. The product is now correctly added to the shopping cart.

Many thanks for your help.
21 Mar 2021, 4:37 AM
#542
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Product Attribute Grid

donw:

I've just applied this, and tested it with SBA. The product is now correctly added to the shopping cart.

Many thanks for your help.
For clarity though, was a test performed before making that change but after updating the SBA files? Or was that the only change that was made? If it was the only change that was made, did the log file(s) have more to them than just the early warning result of 'FILE_PREFIX' not being defined? Was there some line that indicated a true error not just a warning?

21 Mar 2021, 5:58 AM
#543
donw avatar

donw

New Zenner

Join Date:
May 2018
Location:
Melbourne, Australia
Posts:
29
Plugin Contributions:
0

Re: Product Attribute Grid

mc12345678:

For clarity though, was a test performed before making that change but after updating the SBA files? Or was that the only change that was made? If it was the only change that was made, did the log file(s) have more to them than just the early warning result of 'FILE_PREFIX' not being defined? Was there some line that indicated a true error not just a warning?

I didn't update the SBA files, as I'm sure you are aware, changing multiple things when tracing the cause of a problem is not a good idea. There was only a php warning in the error log before the change. There is no error log generated after the change.

27 Oct 2021, 3:40 AM
#544
cubmanky avatar

cubmanky

Zen Follower

Join Date:
Jan 2014
Posts:
224
Plugin Contributions:
0

Re: Product Attribute Grid

Anyone have a demo of this so I can see if its what i'm looking for?

24 Jun 2024, 10:06 AM
#545
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: Product Attribute Grid

Is this module compatible with Zen Cart v2 and php8? I'm currently rebuilding one of my stores on the latest version but none of the attributes are displaying, I just get an add to cart button on the product page and attribute data is not displaying. Not generating any error logs though.

24 Jun 2024, 10:46 AM
#546
cunningstunt2 avatar

cunningstunt2

Zen Follower

Join Date:
Jan 2019
Location:
UK
Posts:
113
Plugin Contributions:
0

Re: Product Attribute Grid

nvm, I think its working now, probably didn't upload to the correct location.