Forums / General Questions / Rollover Images and Add Product to Cart With Link in an EZ Page

Rollover Images and Add Product to Cart With Link in an EZ Page

Started by cleverpork on 2 Dec 2011, 10:17 PM · Views: 646

Results 1 to 2 of 2
2 Dec 2011, 10:17 PM
#1
cleverpork avatar

cleverpork

Zen Follower

Join Date:
Apr 2007
Location:
Washington
Posts:
115
Plugin Contributions:
0

Rollover Images and Add Product to Cart With Link in an EZ Page

Hey all.

I've created an EZ page that includes rollover images (found here: http://beamerfilms.com/sermon-videos/subscriptions-page-24 )

As is, those rollovers go to a product page. I would like to instead have the product added directly to the shopping cart. I've successfully enabled a form on a separate page that does exactly that (found here: http://beamerfilms.com/sermon-videos/subscriptions-2 )

After hours of failed attempts, I'm realizing I'm in over my head and reaching out for help. Could anyone out there help merge these two concepts?

Oh, for reference, here's a bit of html I'm using for the first rollover on the /subscription-page-24 EZ Page:

<td colspan="2">
             <a href="/sermon-videos/subscriptions/basic-subscription-monthly" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image106','','/sermon-videos/images/subscription2/videosermonillustrations-subscription_06b.jpg',1)"><img alt="sermon illustrations button - Sermon Videos, Video Illustrations 4 Sermons, Church Illustration" name="Image106" border="0" src="/sermon-videos/images/subscription2/videosermonillustrations-subscription_06.jpg" width="173" height="51" alt="" border="0"></a></td>

And here is the code I'm using for the "Add To Cart" form that works when the image is clicked:

<form name="cart_quantity" action="/sermon-videos/index.php?main_page=product_info&products_id=509&action=add_product" method="post" enctype="multipart/form-data">

<input type="hidden" name="cart_quantity" value="1" maxlength="6" size="4" />
<br /><br />
<input type="hidden" name="products_id" value="509" /><input type="image" src="/sermon-videos/images/subscription2/videosermonillustrations-subscription_06b.jpg" alt="Add to Cart" title=" Add to Cart " />

</form>

Again, I'm just trying to merge these two working concepts, but am having troubles.

Thanks for any help!

Cris

2 Dec 2011, 10:38 PM
#2
cleverpork avatar

cleverpork

Zen Follower

Join Date:
Apr 2007
Location:
Washington
Posts:
115
Plugin Contributions:
0

Re: Rollover Images and Add Product to Cart With Link in an EZ Page

I almost failed to mention that I tried this as well:

http://www.zen-cart.com/forum/showpost.php?p=550037&postcount=3

which informs that no form is necessary by using

http://linktostore.com/index.php?action=buy_now&products_id=1 

But that way of linking didn't appear to work on my site -- perhaps because I'm using Simple SEO...??? That's just a guess, though.

Cris