VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jlover on February 13, 2015, 05:39:58 AM

Title: Hide Add to cart for non-registered user
Post by: jlover on February 13, 2015, 05:39:58 AM
Hi
In v 2, we can have this feature follow this tread

http://forum.virtuemart.net/index.php?topic=106959.15

ิีbut for v3 I cannot find this file in the component.  /component/com_virtuemart/views/productdetails/tmpl/default_addtocart.php

How to do it again on v3.

thanks
Title: Re: Hide Add to card for registered user
Post by: jenkinhill on February 13, 2015, 12:30:43 PM
The equiavalent file is now a sublayout,  components/com_virtuemart/sublayouts/addtocart.php  (see also components/com_virtuemart/sublayouts/addtocartbar.php )
Title: Re: Hide Add to card for non-register user
Post by: jlover on February 16, 2015, 12:54:41 PM
Quote from: jenkinhill on February 13, 2015, 12:30:43 PM
The equiavalent file is now a sublayout,  components/com_virtuemart/sublayouts/addtocart.php  (see also components/com_virtuemart/sublayouts/addtocartbar.php )

Dear jenkinhill,

thank you. Now I can do the same again.

Also want to correct my topic  "Hide Add to card for non-register user"
:) :)
Title: Re: Hide Add to cart for non-registered user
Post by: tecnocoppe on March 03, 2015, 07:58:35 AM
Hello Jlover

then you managed to hide Add to cart?

I would do it in the category page, but still have not figured out how to do ...

For example I would like to remove it from here:

http://www.tecnocoppe.it/prodotti/medagliette-per-cani-e-gatti.html
Title: Re: Hide Add to cart for non-registered user
Post by: jlover on March 06, 2015, 23:41:39 PM
tecnocoppe
yes. it work.

just apply the same mod from
http://forum.virtuemart.net/index.php?topic=106959.15

the mod has modify the file header and at the end of file.
Title: Hide Add to cart for usergroups with no price
Post by: OskarMaria on March 24, 2015, 14:40:07 PM
I have a similar problem. In my shop there are usergroups which has no price assigned for some products.

In this case I want to hide the "add to cart" in the product detail page.

Is there an easy solution?