VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: hollywooood on January 18, 2012, 11:34:22 AM

Title: Show Cart Module is what I need to edit but where is it?
Post by: hollywooood on January 18, 2012, 11:34:22 AM
Hi all,

Right now my show cart module says "Empty Cart" when nothing is in it.  I would like it to show this way"SHOPPING CART: Your Cart is currently empty.Show Cart" If a proudct is added then the number of products will be displayed instead of "Your Cart is currently empty".

Where can I make this change?

Any and all help is greatly appreciated,

Version: Joomla 1.7 & Virtuemart 2.0
Title: Re: Show Cart Module is what I need to edit but where is it?
Post by: hollywooood on January 18, 2012, 11:39:50 AM
I see now where i need to edit this but now i don't know where the "$data->totalProductTxt" part is to change the text displays.  Where is that pulling from?

Thanks again for any help on this
Title: Re: Show Cart Module is what I need to edit but where is it?
Post by: hollywooood on January 19, 2012, 11:04:11 AM
In the default.php file of the mod_virtuemart_cart > tmpl folder this piece of code doesn't seem to be firing properly.

<div class="show_cart">
<?php if ($data->totalProduct) echo  $data->cart_show?>
</div>


in the mod_virtuemart_cart.php file this piece of code exists:

$data->cart_show = '<a style ="float:right;" href="'.JRoute::_("index.php?option=com_virtuemart&view=cart".$taskRoute,$useXHTML,$useSSL).'">'.$linkName.'</a>';

This is what is displayed:

<!-- Virtuemart 2 Ajax Card -->
<div class="vmCartModule ">

<div class="total" style="float: right;">
</div>
<div class="total_products">Cart empty</div>
<div class="show_cart">
</div>
<div style="clear:both;"></div>

<noscript>
Please wait</noscript>
</div>


There is nothing in the "show_cart" div class but I don't understand why.

Can anyone help me out here...I really need this to display the proper links.

Thanks for any help on this..
Title: Re: Show Cart Module is what I need to edit but where is it?
Post by: PRO on January 19, 2012, 13:31:11 PM
http://forum.virtuemart.net/index.php?topic=92944.0

you dont need to edit the file, change the text
Title: Re: Show Cart Module is what I need to edit but where is it?
Post by: hollywooood on January 25, 2012, 12:54:50 PM
Thanks for this...

I see the content I want to use.  It seems that what I need is already there but I am not sure how to get it to display properly.

Appreciate any expansion on this...

Title: Re: Show Cart Module is what I need to edit but where is it?
Post by: manga79 on May 21, 2013, 18:02:35 PM
Thanks for expanding on this. I had a similar problem and this post cleared things up a bit.