News:

Support the VirtueMart project and become a member

Main Menu

Unable to locate in VM3 the code I changed in prev VM2 version.

Started by ewcandia, December 13, 2014, 19:25:41 PM

Previous topic - Next topic

ewcandia

I update from VM2 to VM3

Now Im trying to locate the old components/com_virtuemart/views/category/tmpl/default.php where I added some html text:

echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $product->prices);
echo '&nbsp;<span style="color:#CB1010;"><strong>I.V.A. Incluido</strong></span>'


when I look to the same file in VM3 code is completely different can you tell me where is located the code I added?

thanks for helping

GJC Web Design

It is gone.. over written with the VM3 version

This is why we have template over rides... so changes you make to your templates are not over written by up dates

You have to re-add it and make a template over ride so it isn't over written on the next update
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

ewcandia

Understood, but I still can see the code I added (attached)
If I want to remove it or change it how can I do it?
where is the code the front page is printing?

thanks

ewcandia

attachment I forgot to add...

[attachment cleanup by admin]

jenkinhill

VM3 uses a combination of "Old style" template files with the addition of sublayouts. The template files are in components/com_virtuemart/views/####/tmpl/ and sublayouts which are in components/com_virtuemart/sublayouts

Both types of file can be overriden.

If you already have overrides in [yourjoomlatemplate]/html/com_virtuemart/ then they will take priority over the new templates.

From your image it looks like the file you need there should be  components/com_virtuemart/sublayouts/prices.php
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