VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: hendrikdebeer on October 22, 2018, 08:30:11 AM

Title: Remove Prices on grid view
Post by: hendrikdebeer on October 22, 2018, 08:30:11 AM
Hi Guys

Is it possible to remove or hide the prices on a product gridview listing?

See attached image

Basically my client only wants the price when viewing the Full description product.
Title: Re: Remove Prices on grid view
Post by: Jörgen on October 22, 2018, 09:27:36 AM
Yes

Just remove the code that displays the price in the category override.

Look in templates/your-template/html/com_virtuemart/category/
or
templates/your-template/html/com_virtuemart/sublayouts/categories.php

regards

Jörgen @ Kreativ Fotografi
Title: Re: Remove Prices on grid view
Post by: GJC Web Design on October 22, 2018, 10:55:29 AM
Template dependent but on an up to date template remove from

templates\xxxxxxx\html\com_virtuemart\sublayouts\products.php

echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$product,'currency'=>$currency));

Title: Re: Remove Prices on grid view
Post by: hendrikdebeer on October 22, 2018, 10:56:54 AM
Hi Jörgen

I'm not good with coding at all...

This is the PHP file I found.

Editing file "/html/com_virtuemart/sublayouts/categories.php" in template "vp_merchant".

<?php
/**
* ---------------------------------------------------------------------------------------
* @package       VirtuePlanet Framework for Joomla
* ---------------------------------------------------------------------------------------
* @subpackage    VP Merchant Template
* @author        Abhishek Das <info@virtueplanet.com>
* @copyright     Copyright (C) 2012-2016. VirtuePlanet Services LLP. All rights reserved.
* @license       GNU General Public License version 2 or later; see LICENSE.txt
* @link          https://www.virtueplanet.com
* ---------------------------------------------------------------------------------------
* HTML         : templates/vp_merchant/html/com_virtuemart/sublayouts/categories.php
* TEMPLATE HTML: templates/vp_merchant/layouts/default/html/com_virtuemart/sublayouts/categories.php
* ---------------------------------------------------------------------------------------
*/
defined ('_JEXEC') or die('Restricted access');

// Find and load selected template layout
require plgSystemVPFrameworkHelper::getTemplate()->getHTMLLayout(__FILE__);

Am I at the right place?
Title: Re: Remove Prices on grid view
Post by: GJC Web Design on October 22, 2018, 11:09:28 AM
not even slightly -- see my post
Title: Re: Remove Prices on grid view
Post by: hendrikdebeer on October 22, 2018, 11:22:18 AM
Editing file "/html/com_virtuemart/sublayouts/products.php" in template "vp_merchant".

<?php
/**
* ---------------------------------------------------------------------------------------
* @package       VirtuePlanet Framework for Joomla
* ---------------------------------------------------------------------------------------
* @subpackage    VP Merchant Template
* @author        Abhishek Das <info@virtueplanet.com>
* @copyright     Copyright (C) 2012-2016. VirtuePlanet Services LLP. All rights reserved.
* @license       GNU General Public License version 2 or later; see LICENSE.txt
* @link          https://www.virtueplanet.com
* ---------------------------------------------------------------------------------------
* HTML         : templates/vp_merchant/html/com_virtuemart/sublayouts/products.php
* TEMPLATE HTML: templates/vp_merchant/layouts/default/html/com_virtuemart/sublayouts/products.php
* ---------------------------------------------------------------------------------------
*/
defined ('_JEXEC') or die('Restricted access');

// Find and load selected template layout
require plgSystemVPFrameworkHelper::getTemplate()->getHTMLLayout(__FILE__);

-----------------------------------------------------------------------------------------------------

Not sure what area or text to delete and where to ADD:
echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$product,'currency'=>$currency));
Title: Re: Remove Prices on grid view
Post by: GJC Web Design on October 22, 2018, 12:23:53 PM
VirtuePlanet is using a totally different over ride system to the standard method -- ask them

I assume the templates are in their plugin somewhere
Title: Re: Remove Prices on grid view
Post by: jenkinhill on October 22, 2018, 12:30:57 PM
I see you had a reply last week from the template developer to your question on https://www.virtueplanet.com/forum
Title: Remove Prices on grid view
Post by: hendrikdebeer on October 22, 2018, 12:59:00 PM
Yes, indeed they did.

They said to use my own css.

"You need to use your own custom css to make the other customisation. If you have some css experience then you can easily make those changes yourself."


I do not know coding that well. and I am so close to the final draft.

If anyone can help me. I would really appreciate it.
Title: Re: Remove Prices on grid view
Post by: GJC Web Design on October 22, 2018, 13:38:43 PM
Man...  have u tried?

.browse-view .product-sales-price {
   display: none;
}