Quote Originally Posted by mc12345678 View Post
I'm trying to generate a uprid to compare against that stored in the orders_products table using zen_get_uprid(product number, attributes array). I understand that it is based on the attributes that are stored. $_POST['id'][$_POST['products_id'][$i]] where I think i is the nth-1 product, but I am not sure which parts of the attributes are needed to generate the uprid. And for some reason I haven't found a "convenient" way or place to show that variable. Superglobals almost always identifies that the POST is empty.

Anybody know?
Still haven't exactly found what is fed to populate the attributes variable that gets encoded, I'm wondering if it's like: $attributes[] = array('option-id'=>'21','option_values_id'=>'11'); so that the unique id of the attribute is therefore provided, and then that is what is encrypted, if it is every possible non-file attribute aspect, or if it is every possible attribute field filled in as applicable (nulls and everything) that is then encrypted. :/

I still haven't fully connected the dots from the product info page to the cart encrypting it, but it seems like the design idea would be to make the vriables to be encrypted as easy to fill in as possible and that they would be based on what is presented on screen (html) when managing a product. Further, because an attribute can be defined either by it's unique number which is different between the products attributes and products attributes downloads tables that, the more "universal" option number and option value number would be the route to go as these two values wuld easily lead to other data that is easily retrievable.

I'm going to give that a shot and see if this random code that is generated is the same as one that has already been generated or if I have to expand my array population to get the same unique number that I'm trying to get.