siavash Posted July 19, 2004 Posted July 19, 2004 hi all, i need to move the "buy now" button beneath/next to price or put it in a fixed place like amazon. is there a contribution i can use? i couldn't find it! or which pages do i need to edit? Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
siavash Posted July 19, 2004 Author Posted July 19, 2004 anybody? Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
TomThumb Posted July 20, 2004 Posted July 20, 2004 In Admin, Configuration, Product Listing, Set Buy Now = 0 Edit /catalog/includes/modules/products_listing.php Starting at line 107 is ? ? ? ? ?case 'PRODUCT_LIST_PRICE': ? ? ? ? ? ?$lc_align = 'right'; ? ? ? ? ? ?if (tep_not_null($listing['specials_new_products_price'])) { ? ? ? ? ? ? ?$lc_text = ' <s>' . ?$currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span> '; ? ? ? ? ? ?} else { ? ? ? ? ? ? ?$lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; ? ? ? ? ? ?} ? ? ? ? ? ?break; on the line directly above the break; insert this $lc_text .= '<br><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a>'; while (!succeed) {try()}; GMT -6:00
siavash Posted July 20, 2004 Author Posted July 20, 2004 thanks TomThumb. will give it a go. Did you try? Did you fail? No matter! Try again. Fail again! But fail better!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.