News:

Looking for documentation? Take a look on our wiki

Main Menu

(orderlistcontainer) How do I remove the +/- sign

Started by dazmilliom, January 10, 2016, 22:07:01 PM

Previous topic - Next topic

dazmilliom

Hi,

I want to remove the +/- sign just after the product name. I cant seem to find the php file to modify. thanks

GJC Web Design

stolen from Spyros.. https://www.virtuemarttemplates.eu/

<?php
      $search  = array('+/-''-/+');
      $replace = array('''');
      $subject $this->orderByList['orderby'];
      echo str_replace($search$replace$subject);
    ?>
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

dazmilliom

Thanks alot for the code. But in which PHP file do i paste it in and what code do I have to comment out?
I am using VM3 and the lastest Joomla

GJC Web Design

replaces what ever is displaying the sort field in what ever template you are displaying on.

Other than that I can't see more in my crystal ball.....

http://forum.virtuemart.net/index.php?topic=79799.0
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 removed +/- for a client site by using Nonumber's Rereplacer.  It was such a bad all singing & dancing template that installing another extension would not matter to him!  It was just a 2 minute job....
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

dazmilliom

Hi,

I got it removed finally. I removed it by going to the file components/com_virtuemart/model/ product.php and removing the correct element in line 2436. Thats where the divs and the +/- sign element were coded.

Thanks for your help

jenkinhill

Just remember to apply that hack every time the VM version is updated.
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

GJC Web Design

and Spyros's hack would not get over written as it is in a template
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