Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    806
    Plugin Contributions
    0

    Default Product Info -> Cart Add w/Zero Qty Breaks

    Hello All,
    Still moving along here with my zc1.5.8 on php8.2.3. I just found out that on the product info page adding zero quantity to cart breaks the site. I've tried on another far less modified install and have the same result. I found another post that leaned toward USU. I disabled USU but still the same result.

    On the product info page if I change qty to 0 (zero) and click add to cart I get a white screen. Error log here

    Code:
    [04-Mar-2023 02:24:47 UTC] Request URI: /the-category-c-3/the-product-name-p-2120.html?action=add_product, IP address: 111.222.333.444
    --> PHP Fatal error: Uncaught Error: Undefined constant "TOPMOST_CATEGORY_PARENT_ID" in /home/acct123/dir.domain.com/includes/functions/functions_categories.php:186
    Stack trace:
    #0 /home/acct123/dir.domain.com/includes/functions/functions_categories.php(639): zen_get_parent_categories(Array, '3')
    #1 /home/acct123/dir.domain.com/includes/classes/shopping_cart.php(1913): zen_get_generated_category_path_rev('3')
    #2 /home/acct123/dir.domain.com/includes/main_cart_actions.php(47): shoppingCart->actionAddProduct('shopping_cart', Array)
    #3 /home/acct123/dir.domain.com/includes/init_includes/init_cart_handler.php(42): require('/home/acct123...')
    #4 /home/acct123/dir.domain.com/includes/autoload_func.php(40): require_once('/home/acct123...')
    #5 /home/acct123/dir.domain.com/includes/application_top.php(237): require('/home/acct123...')
    #6 /home/acct123/dir.domain.com/index.php(25): require('/home/acct123...')
    #7 {main}
      thrown in /home/acct123/dir.domain.com/includes/functions/functions_categories.php on line 186.
    Any ideas?

    Thank you,
    John

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Product Info -> Cart Add w/Zero Qty Breaks

    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    806
    Plugin Contributions
    0

    Default Re: Product Info -> Cart Add w/Zero Qty Breaks

    Thank you!

 

 

Similar Threads

  1. v137 Qty box + Add to cart button on each product
    By Gonzon in forum Customization from the Admin
    Replies: 10
    Last Post: 1 Feb 2017, 03:37 AM
  2. v150 Multiple Product and qty add in Shopping cart
    By jalpesh in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 30 Aug 2012, 12:07 PM
  3. Replies: 2
    Last Post: 22 May 2011, 05:13 PM
  4. Need to set qty in cart to zero
    By sheila123 in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 30 Jul 2010, 08:11 PM
  5. Product Listing - Change 'Qty' box to Add Cart button
    By thuxen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Oct 2009, 12:02 AM

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