Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    help question buy now button - specials on main page

    I am using this code:

    $products_price = zen_get_products_display_price($specials_index->fields['products_id']);
    $products_desc = substr(strip_tags(trim(zen_get_products_description($specials_index->fields['products_id'], $_SESSION['languages_id']))),0,100).'…';
    $buy_now_link = zen_get_buy_now_button($specials_index->fields['products_id'],'<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']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) .'<br/>'.'</a>&nbsp;<br /');
    if (!isset($productsInCategory[$specials_index->fields['products_id']])) $productsInCategory[$specials_index->fields['products_id']] = zen_get_generated_category_path_rev($specials_index->fields['master_categories_id']);
    $list_box_contents[$row][$col] = array('params' =>'class="back"' . ' ' . 'style="width:' . $col_width .'%;">'.$buy_now_link,
    'text' => (($specials_index->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . $specials_index->fields['products_id']) . '">'.zen_image(DIR_WS_IMAGES .$specials_index->fields['products_image'], $specials_index->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a></div><p>') . '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . $specials_index->fields['products_id']) . '">' . $specials_index->fields['products_name'] . '</a></p>'. $products_price . '<p>' . $buy_now_link.'</p>');


    I used something with similar logic for the featured products and it worked but am having no luck with specials. Can anyone see what Is wrong? TIA Tom

  2. #2
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    Default Re: buy now button - specials on main page

    This is the web page: http://www.stitchboutiqueboston.com

  3. #3
    Join Date
    Jan 2011
    Posts
    9
    Plugin Contributions
    0

    Default Re: buy now button - specials on main page

    were do you put this code?

  4. #4
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    Default Re: buy now button - specials on main page

    /includes/modules/specials_index.

 

 

Similar Threads

  1. Buy now button in main page products
    By soki in forum All Other Contributions/Addons
    Replies: 28
    Last Post: 3 Jan 2016, 11:09 PM
  2. add buy now button main page products
    By marlon20 in forum General Questions
    Replies: 7
    Last Post: 26 Nov 2013, 07:12 AM
  3. Buy Now Button on main page for new products help
    By KenshiroU in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 25 Nov 2013, 11:22 PM
  4. v138a Want Quantiy Box Instead of Buy Now Button on Specials
    By ribow in forum General Questions
    Replies: 0
    Last Post: 22 Jun 2012, 01:06 AM
  5. Display Buy Now button on Specials Listing
    By markj in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Sep 2009, 02:52 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR