Hide Package on Pricing Module

Discussion in 'TemplateCodes' started by metrony, May 16, 2010.

Thread Status:
Not open for further replies.
  1. metrony Customer

    Is there a way to hide a package from appearing on the pricing module page (modules.php?mod=prices)? I have some packages that will only be available to a specific user group and I don't want them to appear to everyone.

    Thanks.
  2. seymourjames All Hands On Deck

    You would need to modify the prices module as there is no built in functionality to do this. Put in a test for the productID around where it displays the packages.
  3. metrony Customer

    Thanks for letting me know to look at the product id. I was able to follow your code on how you pulled in the other product fields and just put some conditional logic in the loop.

    If anyone wants the code to exclude a specific product from the ad prices page just enter the following directly above <div class="prices"> in prices.tpl

    {if $results[numloop].pID <> 6}

    Where 6 is the product id I didn't want to include (I had to look in the database to find the product id). Also remember to close the condition {/if} right after the </div>.
Thread Status:
Not open for further replies.

Share This Page