Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Add To Cart Button - Specials Page

Add To Cart Button - Specials Page

Locked

Views: 1,002

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
3 Jun 2010, 3:03 PM
#1
katea avatar

katea

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

Add To Cart Button - Specials Page

Hi Guys,

I'm looking to have an Add To Cart button on my specials page.

I have them on the specials in my main page no problem, along with products for month etc ...

But I can't seem to get it display on the specials page, in what looks to be the same layout as the main page for specials.

I've tired editing:

specials_index.php

and
tpl_specials_default

And whilst this works for the main page, it doesn't work for the specials page.

I also used the Developer Toolkit looking for specialsListBoxContents

As that seems to be the holding div, but the only result I get is:

includes/modules/pages/specials/main_template_vars.php

Surely I wouldn't need to edit this and there should be something in my template folder right?

Any help would be highly appreciated.

I have this:

<div class="addtocartfeat"><a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $specials_index->fields['products_id']) . '">' . '<img src="includes/templates/mytemplatet/images/icons/addtocart.png" alt="add to cart" />

In my specials_index.php .... Which as I say works for the main page, just not for the specials page?????

3 Jun 2010, 3:42 PM
#2
katea avatar

katea

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

Re: Add To Cart Button - Specials Page

tpl_columnar_display.php in your template/common folder

Put your code inside the final div ..

Just won;t add the product to cart, just lists the item .. so another issue

3 Jun 2010, 4:53 PM
#3
jean10 avatar

jean10

New Zenner

Join Date:
Jun 2010
Posts:
2
Plugin Contributions:
0

Re: Add To Cart Button - Specials Page

<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $specials_index->fields['products_id']) . '">' . '<img src="includes/templates/mytemplatet/images/icons/addtocart.png" alt="add to cart" />

I wonder if this link right?
specials page.. if that something like:
zen_href_link('products_new'.'&cPath=' . $productsInCategory[$specials->fields['products_id']].'&action=buy_now' . '&products_id=' . $specials->fields['products_id'])

$specials_index is work for main page, $specials is specials page.
:smile:

3 Jun 2010, 6:05 PM
#4
katea avatar

katea

New Zenner

Join Date:
May 2010
Posts:
13
Plugin Contributions:
0

Re: Add To Cart Button - Specials Page

jean10:

<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $specials_index->fields['products_id']) . '">' . '<img src="includes/templates/mytemplatet/images/icons/addtocart.png" alt="add to cart" />

I wonder if this link right?
specials page.. if that something like:
zen_href_link('products_new'.'&cPath=' . $productsInCategory[$specials->fields['products_id']].'&action=buy_now' . '&products_id=' . $specials->fields['products_id'])

$specials_index is work for main page, $specials is specials page.
:smile:

Yes, I did spot $specials ... Just posted before I removed _index :)

However, that link provides a 'Sorry, this product was not found :(