Zen Cart Logo
Forums / General Questions / Add to Cart option in EZ Pages

Add to Cart option in EZ Pages

Locked

Views: 792

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
23 Jun 2009, 6:39 PM
#1
jdw1979 avatar

jdw1979

Zen Follower

Join Date:
Jun 2009
Location:
NC
Posts:
174
Plugin Contributions:
0

Add to Cart option in EZ Pages

I'm featuring a few select items in the EZ Pages...one item per page. Is there a mod that can enable the end-user to add the item to their cart from the EZ page?

Dale

:unsure:

23 Jun 2009, 7:41 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Add to Cart option in EZ Pages

You can do this with the raw html...

  1. In your browser, call up the product info screen of the product you want to feature.

  2. After the page has loaded, view the page source (html).

You will see that the page html elements are neatly sectioned by COMMENT TAGS, for example:

<!--bof Form start-->
<form name="cart_quantity" action="http://www.YOUR-SITE.com/index.php?main_page=product_info&cPath=168_178&products_id=1865&action=add_product" method="post" enctype="multipart/form-data">
<!--eof Form start-->

and (towards the bottom of the file)...

<!--bof Form close-->
</form>
<!--eof Form close-->

The ones above you WILL ABSOLUTELY NEED, as they drive the submission of the add to cart form.

There are some that you won't need - such as the "previous-next" buttons, but you may need to add the attributes / quantity discounts / (if there are any).

Naturally, you may want the images and the price, and you WILL NEED the "Add to Cart" element as well.

Enclose everything between the OPENING FORM tag and the CLOSING FORM tag, and then - in your EZPages Editor - toggle to HTML mode (the <> menu icon) and PASTE the html where you want it.


Because EZPages data is stored in the database, it's not possible to include php commands in these pages, because the core code has already assembled the page by the time the EZPages data is called in...

23 Jun 2009, 8:02 PM
#3
jdw1979 avatar

jdw1979

Zen Follower

Join Date:
Jun 2009
Location:
NC
Posts:
174
Plugin Contributions:
0

Re: Add to Cart option in EZ Pages

Dude, you truly are a Zen master. It never would have occurred to me to simply copy and paste the HTML form data from the item's product listing. That was exactly what I needed. Thank you so much.

Dale

:clap:

23 Jun 2009, 9:52 PM
#4
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Add to Cart option in EZ Pages

jdw1979:

Dude, you truly are a Zen master....

( I wish... ) :blush: