devless Posted December 7, 2006 Posted December 7, 2006 Hey People! I've installed the Call for Pricing / Neogtiable Pricing and cannot for the LIFE of me find the support forum specifically for it. I have this contribution working in new_products, Specials and Product_info. However, I cannot seem to get it working for product_listing. I am using the column listing layout for product_info so the install instructions do not apply. So I'm sure that I have the right idea about what code to put where, but when I try to implement it, my entire page layout goes haywire! Below is the appropriate area to edit the /catalog/includes/modules/product_listing code: if (PRODUCT_LIST_PRICE > 0) { $lc_text .= '<td class="newprodimage3"> </td></td> </tr> <tr> <td> <img src="images/newprodimages_05.jpg" width="27" height="6" alt=""></td> <td height="6" background="images/newprodimages_06.jpg"></td> <td> <img src="images/newprodimages_07.jpg" width="21" height="6" alt=""></td> </tr> <tr> <td> <img src="images/newprodimages_08.jpg" width="27" height="17" alt=""></td> <td height="17" background="images/newprodimages_09.jpg" class="newprodprice">'; 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'])) . ' '; } $lc_text .= '</td> <td> <img src="images/newprodimages_10.jpg" width="21" height="17" alt=""></td> </tr> </table>'; And I would have assumed that below is how I would need to edit it: if (PRODUCT_LIST_PRICE > 0) { $lc_text .= '<td class="newprodimage3"> </td></td> </tr> <tr> <td> <img src="images/newprodimages_05.jpg" width="27" height="6" alt=""></td> <td height="6" background="images/newprodimages_06.jpg"></td> <td> <img src="images/newprodimages_07.jpg" width="21" height="6" alt=""></td> </tr> <tr> <td> <img src="images/newprodimages_08.jpg" width="27" height="17" alt=""></td> <td height="17" background="images/newprodimages_09.jpg" class="newprodprice">'; 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> '; [b][color=#FF6600] } elseif ($listing['products_price'] == 999999){ $lc_text = TEXT_CALL_FOR_PRICE; } else { $lc_text = ' ' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . ' '; } [/color][/b] $lc_text .= '</td> <td> <img src="images/newprodimages_10.jpg" width="21" height="17" alt=""></td> </tr> </table>'; But that completely breaks my site layout as shown below: ORIGINAL ------> BROKEN Any Ideas?? Quote
devless Posted December 7, 2006 Author Posted December 7, 2006 OMG!! I found it! :) Change the following code from my suggested example: $lc_text = TEXT_CALL_FOR_PRICE; to the following: $lc_text .= TEXT_CALL_FOR_PRICE; Little bastard of a '.' :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.