News:

Support the VirtueMart project and become a member

Main Menu

Change Product layout Shop Listing Pages (Screenshot Attached)

Started by gifts.wine, February 01, 2020, 19:37:46 PM

Previous topic - Next topic

gifts.wine

Im using Joomla! 3.9.15 with VirtueMart 3.6.10 10211

I was wondering if I can change how the products are displayed when someone clicks on a product category on even on the shop home page etc...  Please see the image attached for example.

Thank you in advance for any help with this.


Studio 42

The defualt file is components/com_virtuemart/sublayouts/products.php and you have to modify the line
echo shopFunctionsF::renderVmSubLayout('prices',array('product'=>$product,'currency'=>$currency)); ?>
prices is the sublayout/prices.php, you have to create a copy and modify the render and rename  prices in this line wiht your own filename

GJC Web Design

as it looks like your $19.99... is the short desc all you need to do is comment out the prices and addtocart in the an overridden sublayout products

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

gifts.wine

Thank you for the replies. I have not tried to build a website in years and I have seen to have forgotten everything I learned. I am looking in my folder to find the file that needs to be edited but I cannot seem to find it, Im not sure if I even understand where you mention "comment out the prices and addtocart", I assuming I am to just delete that part?

Can you direct me to which folder has the file I need to be looking for please ?


GJC Web Design

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

add a # in front
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

gifts.wine

You guys are awesome, worked perfectly with how I wanted it to look...

THANK YOU FOR ALL THE HELP