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

[Solved] How to hide price and addtocart-button in product category view

Started by barket, December 19, 2017, 23:37:32 PM

Previous topic - Next topic

barket

Hi! I am knew to this so pls be kind with me ;)

I am trying to remove the price and add-to-cart-button at the category view, but I would like to have the price and button in the detail view of the products.
How can i do that? Thank you for your time!

aftertaf

you need to do a template override:
this means copying some 'default' files to a different location under your frontend template's folder.
There you make the changes you need to...
I learned how to comment out things in php.

read this lot first....
then try and ask again ;)

https://docs.virtuemart.net/tutorials/33-templating-layouts/78-introduction-template-system.html
https://forum.virtuemart.net/index.php?topic=132441.0

From <https://forum.virtuemart.net/index.php?topic=114686.0>
From <https://forum.virtuemart.net/index.php?topic=125166.0>


barket

Well thank you very much for your respond. As far as I am concerened I will try to read that stuff, but I also do know how to comment stuff out. A small hint were I could find the code to commend it out, could be helpfull! Thx again!

Virtuemart 3.2.4

jenkinhill

The file to edit and override is components/com_virtuemart/sublayouts/products.php   Prices and add to cart are displayed using other sublayouts, called in this file.

echo shopFunctionsF::renderVmSubLayout('prices'....................

echo shopFunctionsF::renderVmSubLayout('addtocart'.................
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

barket

Thank you very much! It worked and I am so happy! Greetings too you kind helpers!

aftertaf

can u mark your topic as [SOLVED]? :)
Sorry, couldn't elaborate more but you got direct & precise help from one of the super heros :) !!

Jörgen

ehrmmm

already marked as solved  :D

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

aftertaf

ok, duhh moment for me :)