Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Call for Pricing Not Working with Column Layout in Product_listing


devless

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??

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...