Results 1 to 4 of 4
  1. #1

    help question Edit Cart Mod - Update Cart Button Not Showing

    [FONT=Verdana]Has anyone experienced the issue of the Update Cart image not showing as it should with this mod?

    If so, would you mind sharing the fix?

    In my cart (www.empowermentsanctuary.com/marketplace/ ), when I click the link to edit the cart, it takes me back to the product page - as it should - but instead of there being an Update Cart button there as there should be, the Add to Cart button is displayed.

    I followed the install instructions to the letter, including editing the line of code in the
    [/FONT][FONT=Verdana]tpl_shopping_cart_default.php as instructed.

    Since failing to edit this file is the usual cause of this problem, (per the author), does anyone have any other suggestions for me?

    I know the Mod Author is extremely busy between his day job and his internet business and rarely has time to check the forum, so any help that anyone else who has resolved this issue can offer is greatly appreciated.

    Thanks in advance
    [/FONT]
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  2. #2
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default Re: Edit Cart Mod - Update Cart Button Not Showing

    Here's the official thread for this mod-

    http://www.zen-cart.com/forum/showthread.php?t=80449
    Last edited by giftmeister; 15 Feb 2009 at 02:18 PM.

  3. #3
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Edit Cart Mod - Update Cart Button Not Showing

    Quote Originally Posted by ScriptJunkie View Post
    [FONT=Verdana][SIZE=2]Has anyone experienced the issue of the Update Cart image not showing as it should with this mod?

    If so, would you mind sharing the fix?
    Hi ScriptJunkie

    Did you ever get a fix?

    I only noticed this problem recently upon changing the define of

    BUTTON_IMAGE_IN_CART

    from "Add to Cart" to a more meaningful description.

    I suspect the problem lies with this section of code from tpl_product_info_display.php, which may require its own IF statement:

    Code:
    //If we were not referred from cart, we are not in edit mode
    		} else {
    		// hide the quantity box and default to 1
    		$the_button = '<input type="hidden" name="cart_quantity" value="1" />' .
    						zen_draw_hidden_field('products_id', (int)$_GET['products_id']) .
    						zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
    		}
    // End of Edit_Cart 2.03 Justin Part Two
    Cheers

  4. #4

    Default Re: Edit Cart Mod - Update Cart Button Not Showing

    In my case, the issue was in a lack of understanding of how the mod works. I was testing it on a product that had no attributes. The "Edit Cart" button only replaces the "Add to Cart" button when the product in question has editable attributes.

    Check out this thread to see if there are any answers for you there.

    Quote Originally Posted by dw08gm View Post
    Hi ScriptJunkie

    Did you ever get a fix?

    I only noticed this problem recently upon changing the define of

    BUTTON_IMAGE_IN_CART

    from "Add to Cart" to a more meaningful description.

    I suspect the problem lies with this section of code from tpl_product_info_display.php, which may require its own IF statement:

    Code:
    //If we were not referred from cart, we are not in edit mode
    		} else {
    		// hide the quantity box and default to 1
    		$the_button = '<input type="hidden" name="cart_quantity" value="1" />' .
    						zen_draw_hidden_field('products_id', (int)$_GET['products_id']) .
    						zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
    		}
    // End of Edit_Cart 2.03 Justin Part Two
    Cheers
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

 

 

Similar Threads

  1. Changing update cart and delete button in shopping cart to text.
    By k1ra in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Mar 2014, 10:52 PM
  2. quantity update button in the cart - not saving changes
    By carl7081 in forum General Questions
    Replies: 10
    Last Post: 24 Oct 2010, 07:20 PM
  3. shopping cart - hide the Cart Quantity Update button when not needed
    By dause in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 1 Oct 2009, 04:28 AM
  4. Update Cart button not updating cart
    By nathancarnes in forum General Questions
    Replies: 10
    Last Post: 24 Apr 2007, 08:50 PM
  5. Update button not working in Shopping Cart page
    By dealbyethan.com in forum General Questions
    Replies: 1
    Last Post: 22 Apr 2007, 06:05 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