Results 1 to 4 of 4
  1. #1
    Join Date
    May 2010
    Posts
    13
    Plugin Contributions
    0

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

    Code:
    <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?????

  2. #2
    Join Date
    May 2010
    Posts
    13
    Plugin Contributions
    0

    Default 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
    Last edited by katea; 3 Jun 2010 at 04:45 PM.

  3. #3
    Join Date
    Jun 2010
    Posts
    2
    Plugin Contributions
    0

    Default 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.
    Last edited by jean10; 3 Jun 2010 at 05:56 PM.

  4. #4
    Join Date
    May 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: Add To Cart Button - Specials Page

    Quote Originally Posted by jean10 View Post
    <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.
    Yes, I did spot $specials ... Just posted before I removed _index :)

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

 

 

Similar Threads

  1. Disable add to cart button in specials sidebox
    By lala rock in forum General Questions
    Replies: 3
    Last Post: 6 Feb 2012, 08:01 AM
  2. Add to cart button doesn't add - from any page
    By jguttman in forum General Questions
    Replies: 23
    Last Post: 3 Oct 2009, 03:12 PM
  3. Adding add to cart button to specials sidebox
    By ctcentralinfo in forum Basic Configuration
    Replies: 2
    Last Post: 8 Jun 2008, 05:53 PM
  4. Adding quantity box to add to cart button on featured, new, specials displays
    By lankeeyankee in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Sep 2007, 11:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg