zen_get_uprid issue in 1.5.6c
Because of a change made in 1.5.6c - in includes/classes/shopping_cart.php, line 1963 we now have
$real_ids = isset($_POST['id']) ? $_POST['id'] : array();
(the false branch used to be "")
This breaks zen_get_uprid. In 1.5.6c, it should be changed
FROM:
function zen_get_uprid($prid, $params) {
$uprid = $prid;
if (!is_array($params) || strstr($prid, ':')) return $prid;
TO:
function zen_get_uprid($prid, $params) {
$uprid = $prid;
if (!is_array($params) || empty($params) || strstr($prid, ':')) return $prid;
Re: zen_get_uprid issue in 1.5.6c
Proof of concept: add an item with no attributes to the cart. Hover over the product in the cart and you will see instead of an integer product id, a product id with a colon and an MD5 value.
Re: zen_get_uprid issue in 1.5.6c