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

cart help

Started by Jason dsg, June 17, 2016, 18:40:53 PM

Previous topic - Next topic

Jason dsg

can someone tell me how to remove the cart form the category page all i want it the pic and be able to click it to go to the product info page. i have tried but have no luck thanks in advance www.dsgcentral.com

jenkinhill

Make a copy of components/com_virtuemart/sublayouts/products.php and edit the file to exclude the elements you do not need. Rename this file. eg as catproducts.php and upload it as a sublayouts override file. Then edit components/com_virtuemart/views/category/tmpl/default.php to call that new sublayout intead of the default products.php. Upload that file as a template override.

http://docs.virtuemart.net/tutorials/templating-layouts.html
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

jenkinhill

You need to use the sublayout override only for the category - that's why it is renamed and that renamed file is called from the category defult.php  The productdetails templates and sublayouts should work as normal.
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

jenkinhill

There is a limit to how much free help we can provide here.  If you really need help with this then you should commission a developer.
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

GJC Web Design

just call your renamed products.php (without the add to cart) by

e.g. newproducts.php

echo shopFunctionsF::renderVmSubLayout('newproducts',array('products'=>$products,'currency'=>$this->currency,'products_per_row'=>$this->perRow,'showRating'=>$this->showRating));
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