Forums / All Other Contributions/Addons / Edit Cart Mod - Update Cart Button Not Showing

Edit Cart Mod - Update Cart Button Not Showing

Started by scriptjunkie on 12 Sep 2008, 6:22 AM · Views: 2,937

Results 1 to 4 of 4
12 Sep 2008, 6:22 AM
#1
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

Edit Cart Mod - Update Cart Button Not Showing

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 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 :smile:

*Go that extra mile, you never know what's at the end of the road

* Empowerment Sanctuary

13 May 2011, 3:56 PM
#3
dw08gm avatar

dw08gm

Totally Zenned

Join Date:
Sep 2008
Location:
DownUnder, overlooking South Pole.
Posts:
1,021
Plugin Contributions:
2

Re: Edit Cart Mod - Update Cart Button Not Showing

ScriptJunkie:

[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:

//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

13 May 2011, 10:44 PM
#4
scriptjunkie avatar

scriptjunkie

Totally Zenned

Join Date:
Jul 2008
Posts:
772
Plugin Contributions:
0

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.

dw08gm:

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:

//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