Jump to content

Hide / Show Summary based on Paid listing custom var on Comparison page


Nick Graham

Recommended Posts

Hello,

We've set up custom variables within our Paid Listings pricing plans, for example

 

paid_or_free|paid

retailer_or_manufacturer|retailer

 

We are able to use these variables successfully within theme modifications to detail.thtml and listings_tableview.thtml.

 

However, we are not able to see these variables with listings_compare.thtml.

 

<$php echo $Paid-getVar('paid_or_free',$listing) ?>

 

echoes nothing

 

A conditional such as

 

<?php if($Paid->getVar('paid_or_free', $listing) == 'paid'): ?>

<p>PRINT THIS</p>

<?php endif; ?>

 

likewise shows nothing.

 

We know we're editing the right file in the right place, because if we change the operator to != we see the message.

 

Is it the case that the custom variables are not passed through to the comparisons? We're prepared to hack jreviews.compare.js if this is necessary. Any guidance is appreciated.

 

Thanks,

clayc (on behalf of Nick, the account owner)

 

 

 

Link to comment
×
×
  • Create New...