VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: MAD King on January 05, 2015, 19:18:59 PM

Title: Where did the "Add to Cart" go in the Category View?
Post by: MAD King on January 05, 2015, 19:18:59 PM
I am searching my butt off to find the "Add to Cart" button in the category view, but is is not in components/com_virtuemart/views/category/tmpl/default.php anymore.

Where do I find the code now to hide this button?

Thank you
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: GJC Web Design on January 05, 2015, 20:07:38 PM
versions?

components\com_virtuemart\sublayouts\addtocart.php

search sublayouts on here

Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: MAD King on January 05, 2015, 20:21:14 PM
Sorry. Latest one. Joomla 3.3.6 and VM 3.0.2
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: AH on January 05, 2015, 20:40:02 PM
This is the line in the browse view page that now renders the add to cart

   <?php echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'rowHeights'=>$rowsHeight[$row])); ?>

Just remove or comment it out
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: MAD King on January 05, 2015, 22:00:44 PM
Quote from: Hutson on January 05, 2015, 20:40:02 PM
This is the line in the browse view page that now renders the add to cart

   <?php echo shopFunctionsF::renderVmSubLayout('addtocart',array('product'=>$product,'rowHeights'=>$rowsHeight[$row])); ?>

Just remove or comment it out

Thank you, but there is also no more browse view page to find.

Why did the whole structure change in VM 3?
I like VM a lot and I would like to pay for support as on many other commercial products, if the issues get solved in a good time.
May the developer will consider such support through a membership in the future?
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: GJC Web Design on January 05, 2015, 22:43:55 PM
You can buy support here: http://extensions.virtuemart.net/support

some of us are cheaper still...  ;)
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: MAD King on January 05, 2015, 22:53:16 PM
Indeed, it is expensive. Did not expect that.
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: GJC Web Design on January 05, 2015, 22:56:02 PM
hint:  some of us are cheaper still...  ;)
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: jenkinhill on January 05, 2015, 23:19:27 PM
60.00 € for 12 months support is pretty cheap to me. http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail


The "browse view" template is components/com_virtuemart/views/category/tmpl/default.php  - the template system is much improved, much more flexible for customising, and follows Joomla 3 convention.
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: MAD King on January 05, 2015, 23:25:50 PM
Thank you, but the "Add to Cart" function cannot be found there.

It might be more flexible now, but to get behind of all this new flexibility, it takes a while for most of the VM users.
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: GJC Web Design on January 05, 2015, 23:34:15 PM
????    components\com_virtuemart\sublayouts\addtocart.php
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: jenkinhill on January 05, 2015, 23:38:57 PM
A few messages earlier Hutson shows the line in the sublayouts/products.php above,  which  calls the addtocart sublayout...............
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: MAD King on January 06, 2015, 05:14:41 AM
Quote from: jenkinhill on January 05, 2015, 23:19:27 PM
60.00 € for 12 months support is pretty cheap to me. http://extensions.virtuemart.net/support/virtuemart-supporter-membership-detail

There is nothing coming up except a white blank page.
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: GJC Web Design on January 06, 2015, 09:58:35 AM
already been reported - refresh the page again once your on it
Title: Re: Where did the "Add to Cart" go in the Category View?
Post by: MAD King on January 06, 2015, 15:48:38 PM
Weird.