VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: dazmilliom on January 10, 2016, 22:07:01 PM

Title: (orderlistcontainer) How do I remove the +/- sign
Post by: dazmilliom on January 10, 2016, 22:07:01 PM
Hi,

I want to remove the +/- sign just after the product name. I cant seem to find the php file to modify. thanks
Title: Re: (orderlistcontainer) How do I remove the +/- sign
Post by: GJC Web Design on January 10, 2016, 23:53:22 PM
stolen from Spyros.. https://www.virtuemarttemplates.eu/

<?php
      $search  = array('+/-''-/+');
      $replace = array('''');
      $subject $this->orderByList['orderby'];
      echo str_replace($search$replace$subject);
    ?>
Title: Re: (orderlistcontainer) How do I remove the +/- sign
Post by: dazmilliom on January 11, 2016, 09:51:01 AM
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
Title: Re: (orderlistcontainer) How do I remove the +/- sign
Post by: GJC Web Design on January 11, 2016, 11:35:27 AM
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
Title: Re: (orderlistcontainer) How do I remove the +/- sign
Post by: jenkinhill on January 11, 2016, 12:04:37 PM
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....
Title: Re: (orderlistcontainer) How do I remove the +/- sign
Post by: dazmilliom on January 11, 2016, 13:22:52 PM
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
Title: Re: (orderlistcontainer) How do I remove the +/- sign
Post by: jenkinhill on January 11, 2016, 13:52:02 PM
Just remember to apply that hack every time the VM version is updated.
Title: Re: (orderlistcontainer) How do I remove the +/- sign
Post by: GJC Web Design on January 11, 2016, 17:46:14 PM
and Spyros's hack would not get over written as it is in a template