DataMouse Posted October 11, 2009 Posted October 11, 2009 Hi all I hope everyone's well! I'm customising a store and have hit a snag. There are some products that I don't want to show a price for. Instead I would like to show a message saying "call us for pricing". I have this done already by changnig my currencies.php file (includes/classes): function display_price($products_price, $products_tax, $quantity = 1) { if ($products_price > 0.01){ //for change price by 'contact' return $this->format(tep_add_tax($products_price, $products_tax) * $quantity); }else{ return 'Contact us for pricing'; } } That changes the text and is perfect when used in new products etc. However, in product_info.php and other places, the "add to cart" button is an image, which I need to replace - both with a new image and a new link location. Can anyone help, please? Thanks all DM I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
linuxadmin Posted October 11, 2009 Posted October 11, 2009 click here this should do the feature you are looking for ----
DataMouse Posted October 11, 2009 Author Posted October 11, 2009 Thanks! That's part way there. Rather than a text <a href"#"> link, I would like it to show an image. How is this done? I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
DataMouse Posted October 11, 2009 Author Posted October 11, 2009 I got it. // LINE ADDED: MOD - EASY CALL FOR PRICE v1.4 define('TEXT_CALL_FOR_PRICE', '<a href="contact_us.php">' . tep_image_button('button_contact_pricing.gif', IMAGE_BUTTON_CONTACT) . '</a>'); ?> In Includes/languages/english.php I had a blind date last night. Her name was ..:. :.: :: .. ::. :. ::. Black Web 2.0 Buttons Blue Orb Web 2.0 Buttons Mac "Aqua" Buttons Black Gloss Buttons Red Gloss Buttons (with metal edging)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.