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

Where did the "Add to Cart" go in the Category View?

Started by MAD King, January 05, 2015, 19:18:59 PM

Previous topic - Next topic

MAD King

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
Joomla! 4.4.5
VirtueMart 4.2.12 11012

GJC Web Design

versions?

components\com_virtuemart\sublayouts\addtocart.php

search sublayouts on here

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MAD King

Joomla! 4.4.5
VirtueMart 4.2.12 11012

AH

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
Regards
A

Joomla 4.4.5
php 8.1

MAD King

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?
Joomla! 4.4.5
VirtueMart 4.2.12 11012

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MAD King

Joomla! 4.4.5
VirtueMart 4.2.12 11012

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

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.
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

MAD King

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.
Joomla! 4.4.5
VirtueMart 4.2.12 11012

GJC Web Design

????    components\com_virtuemart\sublayouts\addtocart.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

A few messages earlier Hutson shows the line in the sublayouts/products.php above,  which  calls the addtocart sublayout...............
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

MAD King

Joomla! 4.4.5
VirtueMart 4.2.12 11012

GJC Web Design

already been reported - refresh the page again once your on it
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

MAD King

Joomla! 4.4.5
VirtueMart 4.2.12 11012