VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: anca on November 14, 2012, 08:08:13 AM

Title: [ SOLVED ] no price information visible on the shopping cart
Post by: anca on November 14, 2012, 08:08:13 AM
joomla 2.5.7
vm 2.0.14
Template: JV Framework 2.5

I have installed and configured the vm-shop and I have only this problem:
If customers are going to the shopping cart no price informations are visible (Tax and Total of each article).
After the customer is checking out on the e-Mail to the customer (and also to me) are all price information correct and visible.


[attachment cleanup by admin]
Title: Re: no price information visible on the shopping cart
Post by: jenkinhill on November 14, 2012, 15:41:27 PM
Are the prices there but hidden by wrong css? Look at the code with Firebug.

Check that any template overrides are correct for the VM version you are using. Check using the Beez5 template.
Title: Re: no price information visible on the shopping cart
Post by: anca on November 14, 2012, 22:35:32 PM
You are right jenkinhill. Using the Beez5 template on the shopping cart the TAX and the prices are visible.  I'm not a developer and I don't know what I have to do.
Have I to change something on ../templates/jv-framework/themes/jv-melody.254/html/mod_virtuemart_cart/default.php ?:
Quotephp // no direct access
defined('_JEXEC') or die('Restricted access');

//dump ($cart,'mod cart');
// Ajax is displayed in vm_cart_products
// ALL THE DISPLAY IS Done by Ajax using "hiddencontainer" ?>

<!-- Virtuemart 2 Ajax Card -->
<div class="vmCartModule <?php echo $params->get('moduleclass_sfx'); ?>">
<?php
if ($show_product_list) {
   ?>
   <div id="hiddencontainer" style=" display: none; ">
      <div class="container">
         <?php if ($show_price) { ?>
           <div class="prices" style="float: right;"></div>
         <?php } ?>
         <div class="product_row">
            <span class="quantity"></span>&nbsp;x&nbsp;<span class="product_name"></span>
         </div>

         <div class="product_attributes"></div>
      </div>
   </div>
   <div class="vm_cart_products">
      <div class="container">
      <?php foreach ($data->products as $product)
      {
         if ($show_price) { ?>
              <div class="prices" style="float: right;"><?php echo  $product['prices'] ?></div>
            <?php } ?>
         <div class="product_row">
            <span class="quantity"><?php echo  $product['quantity'] ?></span>&nbsp;x&nbsp;<span class="product_name"><?php echo  $product['product_name'] ?></span>
         </div>
         <?php if ( !empty($product['product_attributes']) ) { ?>
            <div class="product_attributes"><?php echo  $product['product_attributes'] ?></div>

         <?php }
      }
      ?>
      </div>
   </div>
<?php } ?>

<div class="total" style="float: right;">
   <?php if ($data->totalProduct) echo  $data->billTotal; ?>
</div>
<div class="total_products"><?php echo  $data->totalProductTxt ?></div>
<div class="show_cart">
   <?php if ($data->totalProduct) echo  $data->cart_show; ?>
</div>
<div style="clear:both;"></div>

<noscript>
<?php echo JText::_('MOD_VIRTUEMART_CART_AJAX_CART_PLZ_JAVASCRIPT') ?>
</noscript>
</div>
<?

Title: Re: no price information visible on the shopping cart
Post by: jenkinhill on November 14, 2012, 23:10:38 PM
For a quick fix either remove that file from the server, or rename the file so it is not read as a php file - eg default.php.not  - then the default VirtueMart cart template will be used instead.
Title: Re: no price information visible on the shopping cart
Post by: anca on November 14, 2012, 23:38:01 PM
I tryed to rename the fiele but the same result.  :(
Title: Re: no price information visible on the shopping cart
Post by: jenkinhill on November 14, 2012, 23:43:47 PM
Just noticed this url you gave - /templates/jv-framework/themes/jv-melody.254/html/mod_virtuemart_cart/default.php   is for the cart module, not the component

The component overrides (which is shown in your image)  will be in /templates/jv-framework/themes/jv-melody.254/html/com_virtuemart/cart/ (default.php)

Sorry - it has been a long day............
Title: Re: no price information visible on the shopping cart
Post by: anca on November 15, 2012, 07:35:20 AM
good morning jenkinhill

It works, you are my hero!  :D

many greetings