News:

Looking for documentation? Take a look on our wiki

Main Menu

Show Cart Module is what I need to edit but where is it?

Started by hollywooood, January 18, 2012, 11:34:22 AM

Previous topic - Next topic

hollywooood

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
Joomla 2.5.4
Virtuemart 2.0.6
PHP 5.2.17
MySQL 5.5.21-55
APACHE 2.2.22

hollywooood

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
Joomla 2.5.4
Virtuemart 2.0.6
PHP 5.2.17
MySQL 5.5.21-55
APACHE 2.2.22

hollywooood

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..
Joomla 2.5.4
Virtuemart 2.0.6
PHP 5.2.17
MySQL 5.5.21-55
APACHE 2.2.22

PRO


hollywooood

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...

Joomla 2.5.4
Virtuemart 2.0.6
PHP 5.2.17
MySQL 5.5.21-55
APACHE 2.2.22

manga79

Thanks for expanding on this. I had a similar problem and this post cleared things up a bit.