Author Topic: Remove confusing "Empty cart" link to Virtuemart  (Read 34358 times)

websnail

  • Beginner
  • *
  • Posts: 32
Remove confusing "Empty cart" link to Virtuemart
« on: May 01, 2008, 18:36:51 pm »
No offense to the developers here but putting a link to Virtuemart in the mini-cart module is not going to be a welcome addition to a users e-commerce site as it immediately leads the potential customer off on a goose chase around this site instead of around the users store buying things :)

So, to turn off this little feature quick mod for you.

Open: components/com_virtuemart/themes/default/templates/common/minicart.tpl.php

Find:
Code: [Select]
        <a href="http://virtuemart.net/" target="_blank">
        <img src="<?php echo $mm_action_url ?>components/com_virtuemart/shop_image/ps_image/menu_logo.gif" alt="VirtueMart" width="80" border="0" /></a>

Replace with:
Code: [Select]
        <!--  <a href="http://virtuemart.net/" target="_blank">
        <img src="<?php echo $mm_action_url ?>components/com_virtuemart/shop_image/ps_image/menu_logo.gif" alt="VirtueMart" width="80" border="0" />
        </a> -->

Just to note I'd never suggest removing any attribution code.. It just seems this wasn't perhaps the best plan.. and besides the logo is still there.


EDIT: Updated to remove unnecessary 2 tags and actually comment out the image.

winfreepcs

  • Jr. Member
  • **
  • Posts: 59
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #1 on: May 07, 2008, 16:43:00 pm »
You were missing out the comment out on the second line, so here's my fix:

<!--  <a href="http://virtuemart.net/" target="_blank">  -->
<!--   <img src="<?php echo $mm_action_url ?>components/com_virtuemart/shop_image/ps_image/menu_logo.gif" alt="VirtueMart" width="80" border="0" />  -->
<!--  </a> -->

This works - no more image.

leontb

  • Beginner
  • *
  • Posts: 19
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #2 on: May 16, 2008, 22:23:53 pm »
Thanx Winfreepcs! This works!

websnail

  • Beginner
  • *
  • Posts: 32
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #3 on: May 29, 2008, 13:52:47 pm »
You were missing out the comment out on the second line, so here's my fix:
<!--  <a href="http://virtuemart.net/" target="_blank">  -->
<!--   <img src="<?php echo $mm_action_url ?>components/com_virtuemart/shop_image/ps_image/menu_logo.gif" alt="VirtueMart" width="80" border="0" />  -->
<!--  </a> -->
This works - no more image.

Actually the mod was only to remove the link, not the image... but I've updated it accordingly.

roberth

  • Beginner
  • *
  • Posts: 3
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #4 on: June 07, 2008, 19:45:25 pm »
All my considerations for both websnail and winfreepcs.
Thank you very much for this tip.

anax

  • Beginner
  • *
  • Posts: 5
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #5 on: June 10, 2008, 14:13:49 pm »
Yes... many cheers to websnail and winfreepcs from me too. That kind of advertising to users isn't very useful, while I agree deserved credit should be shown.

storm4u

  • Beginner
  • *
  • Posts: 3
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #6 on: June 11, 2008, 22:36:11 pm »
Another thanks to both! I enjoy this quite a bit!

Janeta

  • Beginner
  • *
  • Posts: 9
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #7 on: June 12, 2008, 11:11:15 am »
Thank you! Not very obvious how to do this otherwise ... crazy thing to put that logo there.

juandre

  • Beginner
  • *
  • Posts: 1
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #8 on: June 14, 2008, 22:48:39 pm »
Hi,

What you guys are saying here makes perfect sense to me, but for some reason I just cant do it. In cpanel I replace the code with yours but it does'nt save. When I open the file again in notepad it just shows the original code. Why does it not save the modification? Yes, I'm new here, and I have no idea what to do next. Please help me out, I will honestly appreciate that... Thanx

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27466
  • Always on vacation
    • Jenkin Hill Internet
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #9 on: June 15, 2008, 11:03:43 am »
If you are using cPanel you should make sure that the files you are trying to edit are owned by you, the user. If owned by Apache then you won't be able to edit, in which case you will need to CHOWN all files (CHange OWNersip) or get your host to do it.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.10 PHP 7.0.33
Testing VM 3.5.0.10097 on Joomla 3.9.10

baker

  • Beginner
  • *
  • Posts: 7
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #10 on: June 19, 2008, 20:29:48 pm »
No offense to the developers here but putting a link to Virtuemart in the mini-cart module is not going to be a welcome addition to a users e-commerce site as it immediately leads the potential customer off on a goose chase around this site instead of around the users store buying things :)
So, to turn off this little feature quick mod for you.
Open: components/com_virtuemart/themes/default/templates/common/minicart.tpl.php
Find:
Code: [Select]
        <a href="http://virtuemart.net/" target="_blank">
        <img src="<?php echo $mm_action_url ?>components/com_virtuemart/shop_image/ps_image/menu_logo.gif" alt="VirtueMart" width="80" border="0" /></a>
Replace with:
Code: [Select]
        <!--  <a href="http://virtuemart.net/" target="_blank">
        <img src="<?php echo $mm_action_url ?>components/com_virtuemart/shop_image/ps_image/menu_logo.gif" alt="VirtueMart" width="80" border="0" />
        </a> -->
Just to note I'd never suggest removing any attribution code.. It just seems this wasn't perhaps the best plan.. and besides the logo is still there.
EDIT: Updated to remove unnecessary 2 tags and actually comment out the image.

Thanks for posting that... I was looking everywhere for that file!

lagoworks

  • Beginner
  • *
  • Posts: 8
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #11 on: June 20, 2008, 16:47:38 pm »
Code: [Select]
.vmCartModule div a img {
display:none;
}

in your css will do the same

MrBoza

  • Beginner
  • *
  • Posts: 14
    • preorder figure
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #12 on: June 21, 2008, 01:54:01 am »
Simple is best lagoworks!!!

SteveOh_UK

  • Beginner
  • *
  • Posts: 15
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #13 on: June 23, 2008, 23:35:31 pm »
touche

MikeUK

  • Global Moderator
  • Full Member
  • *
  • Posts: 1344
Re: Remove confusing "Empty cart" link to Virtuemart
« Reply #14 on: June 28, 2008, 15:15:55 pm »
Thanks websnail and winfreepcs!
Get answers faster:

I can build your online shop, setup or customize Virtuemart or help your existing shop maximize its potential. Email / PM for info