News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Hide Add to cart for non-registered user

Started by jlover, February 13, 2015, 05:39:58 AM

Previous topic - Next topic

jlover

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

jenkinhill

The equiavalent file is now a sublayout,  components/com_virtuemart/sublayouts/addtocart.php  (see also components/com_virtuemart/sublayouts/addtocartbar.php )
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jlover

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"
:) :)

tecnocoppe

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

jlover

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.

OskarMaria

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?