News:

Looking for documentation? Take a look on our wiki

Main Menu

[ SOLVED ] no price information visible on the shopping cart

Started by anca, November 14, 2012, 08:08:13 AM

Previous topic - Next topic

anca

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]

jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

anca

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


jenkinhill

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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

anca

I tryed to rename the fiele but the same result.  :(

jenkinhill

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............
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

anca

good morning jenkinhill

It works, you are my hero!  :D

many greetings