Forums / Templates, Stylesheets, Page Layout / Intergrating Zen Cart into 1 prebuilt product page - Help

Intergrating Zen Cart into 1 prebuilt product page - Help

Locked

Views: 3,151

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
8 May 2008, 3:41 PM
#1
eddie90000 avatar

eddie90000

New Zenner

Join Date:
May 2008
Posts:
17
Plugin Contributions:
0

Intergrating Zen Cart into 1 prebuilt product page - Help

Ok - Here is my problem:

We had a website built for us https://www.beerants.com and now we want to add a shopping cart to it.

I have installed Zen Cart and want to set it so that it will intergrate into the one product page that we have. That is the only page that we want people to see.

Basically what I need to know is how to cut the add to cart button out of the product page in Zen Cart and add it to my page so that when some clicks it they will get taken to the Zen Cart Checkout Page.

Are there any tutorials on how to do this or can anyone tell me what I need to do to do it.

Thanks in advance.

8 May 2008, 7:02 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

Zen Cart doesn't work that way. It's not a backend processor.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

8 May 2008, 7:21 PM
#3
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

Easiest way it to either rebuild the site using ZC (not as big a task as you may think) or simply add a paypal button.

8 May 2008, 8:19 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

There was some discussion on the forum about using a splash page for a single product and taking the user right to the shopping cart from there. You might want to do a search for it.

Mary Ellen
I came; I saw; I Zenned
Taking over the world... one website at a time
Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

Holzheimer
Fan Odyssey

8 May 2008, 8:32 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

It would not be difficult to put that page content into define_main_page.php and go from that to the shopping cart. The only real work would be isolating the add to cart form functionality from say tpl_product_info_display.php and putting it into the define page.

14 May 2008, 5:28 PM
#6
eddie90000 avatar

eddie90000

New Zenner

Join Date:
May 2008
Posts:
17
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

Ok - how about this.

When they click on an add item to cart button beerants.com it links to a page in the zen cart that automatically adds an item to the cart and then takes them to the cart.

Is there anyway to do that.

http://www.zen-cart.com/forum/showthread.php?t=97666

16 May 2008, 7:11 PM
#7
eddie90000 avatar

eddie90000

New Zenner

Join Date:
May 2008
Posts:
17
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

There has to be some way to just have a link that populates the cart with 1 item.

Is there anyway to do this.

The link I am using now is:
http://beerants.com/zencart/index.php?main_page=product_info&products_id=1&action=add_product

It takes people to the cart - but doesn't populate it with the 1 item.

If someone could help me - I could get this done with and would be forever grateful.

18 May 2008, 11:06 AM
#8
greenmanor avatar

greenmanor

New Zenner

Join Date:
Feb 2005
Posts:
1
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

Zen Cart looks like a bit of overkill for this

why don't you try something like Mals ecart just add a link to the product and all is done. the free version is all you need.

Kim Watson

http://www.greenmanor.com.au Green Manor Toys

19 May 2008, 5:22 PM
#9
eddie90000 avatar

eddie90000

New Zenner

Join Date:
May 2008
Posts:
17
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

greenmanor:

Zen Cart looks like a bit of overkill for this

why don't you try something like Mals ecart just add a link to the product and all is done. the free version is all you need.
I need to use Zen Cart for some of the exporting features and some of the other customization.

Please can anyone tell me how to do what I want to do - if you can do this, i would be forever grateful.

19 May 2008, 6:28 PM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

The most robust and probably easiest way to do this is to put your main page content into Zen Cart's define_main_page.php. Put the header image in the ZC header and the footer content/styling into the ZC footer.
Turn off or disable sidebars, header bars, etc. as required, and all that is left is transplanting the form link code into the button area of your main page.

23 May 2008, 8:27 PM
#11
subb avatar

subb

New Zenner

Join Date:
Oct 2006
Posts:
26
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

i have desperately been searching around for a similar thing with absolutely no luck at all either.

the most i came up with, which may actually sort out your problem is the following form for the 'add to cart' button, which appears to work from outside zencart:

<form name="cart_quantity" action="http://www.yoursite.com/shop/index.php?main_page=product_info&action=add_product" method="post" enctype="multipart/form-data">
<input type="hidden" name="cart_quantity" value="1" />
<input type="hidden" name="products_id" value="1" />
<input type="image" src="addtocartbutton.png" alt="Add to Cart" title=" Add to Cart " />

hope that helps you...

i shall search on...

28 May 2008, 7:54 PM
#12
eddie90000 avatar

eddie90000

New Zenner

Join Date:
May 2008
Posts:
17
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

THANK YOU, THANK YOU, THANK YOU - you are awesome.

31 May 2008, 11:26 PM
#13
gonze1 avatar

gonze1

New Zenner

Join Date:
Jun 2007
Location:
Puerto Rico
Posts:
15
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

I use this, i hope it helps.

I am changing my site from asp to asp.net and i am not able to get this to work on asp.net. Must be something i am doing worng on the form settings side can any one help me out to convert this from asp to asp.net? Thank you

==========================

<form name="cart_quantity" action="<http://www.YOURDOMAIN.com/shop/index.php?main_page=product_info&products_id=<%=%28rs.fields%28"zencart_id"%29.Value%29%>&language=en&action=add_product>" target="shopcart" method="post" enctype="multipart/form-data"> <div align="center"> <p align="center"><div id="producttext8"><input type="text" name="cart_quantity" value="1" maxlength="2" size="2"> Qty. <%=(rs.fields("qty_insideEN").Value)%></div></p> <p align="center">  <input type="hidden" name="products_id" value="<%=(rs.fields("zencart_id").Value)%>"> <input type="image" title=" Add to Cart " src="/shop/includes/templates/4lifeparatodos/buttons/english/button_in_cartBlack.gif" alt="Add to Cart"> </p> </div> </form> =============================
31 May 2008, 11:29 PM
#14
gonze1 avatar

gonze1

New Zenner

Join Date:
Jun 2007
Location:
Puerto Rico
Posts:
15
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

Ok i took out the link, now you can see the full code used. Sorry!

gonze1:

I use this, i hope it helps.

I am changing my site from asp to asp.net and i am not able to get this to work on asp.net. Must be something i am doing worng on the form settings side can any one help me out to convert this from asp to asp.net? Thank you

==========================

<form name="cart_quantity" action="http://www.YOURDOMAIN.com/shop/index.php?main_page=product_info&products_id=<%=(rs.fields("zencart_id").Value)%>&language=en&action=add_product" target="shopcart" method="post" enctype="multipart/form-data"> <div align="center"> <p align="center"><div id="producttext8"><input type="text" name="cart_quantity" value="1" maxlength="2" size="2"> Qty. <%=(rs.fields("qty_insideEN").Value)%></div></p> <p align="center">  <input type="hidden" name="products_id" value="<%=(rs.fields("zencart_id").Value)%>"> <input type="image" title=" Add to Cart " src="/shop/includes/templates/4lifeparatodos/buttons/english/button_in_cartBlack.gif" alt="Add to Cart"> </p> </div> </form> =============================
1 Jun 2008, 3:11 PM
#15
gonze1 avatar

gonze1

New Zenner

Join Date:
Jun 2007
Location:
Puerto Rico
Posts:
15
Plugin Contributions:
0

Re: Intergrating Zen Cart into 1 prebuilt product page - Help

Hello again, i got it to work from my new asp.net pages. Take a look here for some ideas for the newones.... :clap:

=========================================

<formaction='http://www.YOURDOMAIN.com/shop/index.php?main_page=product_info&action=add_product'enctype="multipart/form-data"method="post"name="cart_quantity"target="shopcart">
<
divalign="center"style="width: 562px">
<palign="center">
</p>
<divid="producttext8">
<inputmaxlength="2"name="cart_quantity"size="2"type="text"value="1"/></div>
<palign="center"style="width: 553px">
 <asp:DataListID="DataList1"runat="server"DataSourceID="ProductSummaryBoxEN">
<ItemTemplate>
zencart_id:
<asp:LabelID="zencart_idLabel"runat="server"Text='<%# Eval("zencart_id") %>'/>
<br/>
<inputname="products_id"type="hidden"value="<%# Eval("zencart_id") %>"/>
</
ItemTemplate>
</
asp:DataList>
<inputalt="Add to Cart"src="http://www.YOURDOMAIN.com/shop/includes/templates/4lifeparatodos/buttons/english/button_in_cartBlack.gif"title=" Add to Cart "type="image"/>
</p>
</
div>
</
form>

=================================