Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,557
    Plugin Contributions
    89

    Default 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;
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,557
    Plugin Contributions
    89

    Default 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.
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    6,557
    Plugin Contributions
    89

    Default Re: zen_get_uprid issue in 1.5.6c

    This issue has been fixed in 1.5.7.
    https://github.com/zencart/zencart/pull/2765
    That Software Guy, Plugin Moderator. Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Contributions: Quantity Discounts, Better Together, SMS on Sale, Gift Wrap at Checkout, and more.

 

 

Similar Threads

  1. v154 [Host issue, not a bug] Mass Log File Issue and Site is Down
    By MortalWombat in forum Bug Reports
    Replies: 5
    Last Post: 27 Jan 2016, 06:57 AM
  2. Layout issue / css problem with IE only. Can't find the issue!
    By linnx in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Apr 2011, 10:54 AM
  3. Contact Page issue and adding to cart issue...
    By techy-sult.com in forum General Questions
    Replies: 2
    Last Post: 1 Oct 2009, 04:45 AM
  4. Paypal IPN issue - e-check issue...
    By Rasyr in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Jan 2008, 06:07 PM
  5. Payflow pro Module- Uk Debit Card issue with issue dates
    By Calljj in forum Addon Payment Modules
    Replies: 27
    Last Post: 1 Oct 2007, 08:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR