Author Topic: [SOLVED] VM 1.1 how to remove 'Recently Viewed Products' from product view page.  (Read 9081 times)

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Downloaded VirtuMart 1.1 SVN r875.

How to remove from product view page and frontpage 'Recently Viewed Products', in the backend there is an option to limit the display of products but can't find option to remove it, even if I enter 0 for the number it still shows 1 item.

Edgar. R. Koster

  • Jr. Member
  • **
  • Posts: 102
    • Go To My Site
Re: VM 1.1 how to remove 'Recently Viewed Products
« Reply #1 on: August 09, 2007, 20:04:58 pm »
I'm not testing that version yet. I say it should have a checkbox where you say you enter the number to display. maybe an enhancement?
I have all my hacks, tweaks, & mods on my site. I'm happy to help you out, even if you want a new one!

macallf

  • Full Member
  • ***
  • Posts: 2411
    • Mark Callf Design
Re: VM 1.1 how to remove 'Recently Viewed Products' from product view page.
« Reply #2 on: September 09, 2007, 17:15:15 pm »
This is a flypage template setting. The main setting is number of recently visited products.

In the flypage you have this

Code: [Select]
if( !empty( $recent_products )) { ?>
<div class="vmRecent">
<?php echo $recent_products?>
</div>
<?php 
}

If the recently viewed products limit is set to 0, then no recently viewed products will be displayed. I have tested this and confirm that it is working.
Mark
All of My old mods are now available on my website.
Mark Callf Designs

If you like the work I've done for VM please fell free to Donate

Please Note: I am no longer actively developing or involved with VM development.