News:

Support the VirtueMart project and become a member

Main Menu

Remove Prices on grid view

Started by hendrikdebeer, October 22, 2018, 08:30:11 AM

Previous topic - Next topic

hendrikdebeer

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.

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

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));

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

hendrikdebeer

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?

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

hendrikdebeer

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));

GJC Web Design

VirtuePlanet is using a totally different over ride system to the standard method -- ask them

I assume the templates are in their plugin somewhere
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

I see you had a reply last week from the template developer to your question on https://www.virtueplanet.com/forum
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

hendrikdebeer

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.

GJC Web Design

Man...  have u tried?

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

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