Jump to content
Sign in to follow this  
devless

Call for Pricing Not Working with Column Layout in Product_listing

Recommended Posts

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

Untitled-1.jpg

 

Any Ideas??

Share this post


Link to post
Share on other sites

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 '.' :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×