Forums / Templates, Stylesheets, Page Layout / add buy now buttom to specials

add buy now buttom to specials

Views: 382

Results 1 to 1 of 1
17 Mar 2011, 4:30 PM
#1
petlife avatar

petlife

New Zenner

Join Date:
Jun 2010
Location:
Denmark
Posts:
62
Plugin Contributions:
0

add buy now buttom to specials

Hi

I add this mod to my specials ```php
$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> <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);


it works fine, but i have one problem the "Buy now" button i placed over the product, and i want it to be under the product se img.
![](http://www.petlife.dk/annika/005.png)

How do I change that???

Link to test site where im trying this mod : <https://www.petlife.dk/subway/test>

Morten Andersen
Petlife
Web: http://www.Petlife.dk