VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: mabeall32 on November 23, 2011, 04:08:32 AM

Title: How to restrict shopping cart display
Post by: mabeall32 on November 23, 2011, 04:08:32 AM
I need to either not show prices in the shopping cart or not allow to add to shopping cart until log-in.  I have tried different setting in the config -> checkout screen.  but nothing seems to change.  Any help will be appreciated.
Title: Re: How to restrict shopping cart display
Post by: JtouchMobile.com on November 24, 2011, 08:13:19 AM
On VM - Shopping Cart module, select "No" on Show Price to turn off price on each product items (but the total cost is still available)

At current version of VM 2 (1.9.8.RC-2M), event you checked to "Only registered users can checkout" of Shop configuration, VM is also allow user add product to cart. I think we should "hack" to VM to have your feature :)
Title: Re: How to restrict shopping cart display
Post by: mabeall32 on November 24, 2011, 16:03:51 PM
I went to the VM - Shopping Module and set to "Show Product Price" to No   and it didn't work.  I still see prices if not log-on.  (How can I attach a pic of my settings, everytime I try to attach something it just set there.  I have to leave and come back rekey my reply and post.  do I need to have that feature enabled?)
Title: Re: How to restrict shopping cart display
Post by: prismalight on February 20, 2012, 01:25:26 AM
I managed to show prices only for registered users.
the issue I have is that when a non registered user clicks on add to cart, then he sees there all prices.
any hint to prevent this?
Title: Re: How to restrict shopping cart display
Post by: mabeall32 on February 20, 2012, 12:40:36 PM
I modified the php for the product detail default.php to test for registered users and if not registered not to show "add to cart". It requires to do it release but my user doesn't want them to see prices unless they are registered users.
Title: Re: How to restrict shopping cart display
Post by: prismalight on February 20, 2012, 15:56:25 PM
hi,
can you send me the file or post the changed code here?
thanks.