VirtueMart Forum

VirtueMart General => About VirtueMart - not for support posts => Topic started by: peterc on December 09, 2009, 20:32:42 PM

Title: sub total not displaying
Post by: peterc on December 09, 2009, 20:32:42 PM
I have a problem with my newly installed store - the sub total is not appearing on the cart page


[attachment cleanup by admin]
Title: Re: sub total not displaying
Post by: vhv_alex on December 10, 2009, 14:56:41 PM
What is the version of VM + Joomla that you are using ?
Title: Re: sub total not displaying
Post by: peterc on December 11, 2009, 09:47:43 AM
VM = 1.1.4  Joomla = 1.5.15
Title: Re: sub total not displaying
Post by: vhv_alex on December 11, 2009, 15:49:08 PM
It's weird, I've checked with my installation in localhost and it works well. Are there anybody else can confirm this issue?
Title: Re: sub total not displaying
Post by: PRO on December 11, 2009, 20:44:08 PM
can you see it when you view source?
Title: Re: sub total not displaying
Post by: MikeUK on December 11, 2009, 21:33:18 PM
Why is there 'undefined' twice under the name? Looks like something wrong with the attributes or some mod not mentioned.
Title: Re: sub total not displaying
Post by: peterc on December 14, 2009, 15:30:19 PM
Ah!! Might be getting somewhere. I have removed attributes from the product. No apparent change. Here is the snippet of source code for that area. Could it be a table width/align problem?   </tr>
<!--Begin of SubTotal, Tax, Shipping, Coupon Discount and Total listing -->
  <tr class="sectiontableentry1">
    <td colspan="4" align="right">Subtotal:</td>
    <td colspan="3" align="right">&pound;169.00</td>
  </tr>
  <tr>
    <td colspan="4">&nbsp;</td>
    <td colspan="3"><hr /></td>
  </tr>
  <tr class="sectiontableentry1">
    <td colspan="4" align="right">Total: </td>
    <td colspan="3" align="right"><strong>&pound;169.00</strong></td>
  </tr>
  <tr class="sectiontableentry1">
        <td colspan="4" align="right" valign="top">Tax Total: </td>
        <td colspan="3" align="right">&pound;0.00</td>
  </tr>
  <tr>
    <td colspan="7"><hr /></td>
  </tr>
</table>
Title: Re: sub total not displaying
Post by: PRO on December 15, 2009, 02:58:29 AM
I had problems with the basket until I assigned classes to the tds and styled them accordingly.

basket_b2c.html.php
<?php foreach( $product_rows as $product ) { ?>
 <tr valign="top" class="cart_content">
   <td class="cart_contentName"><?php echo $product['product_name'] . $product['product_attributes'] ?></td>
   <td class="cart_contentSku"><?php echo $product['product_sku'] ?></td>
   <td class="cart_contentPrice"><?php echo $product['product_price'] ?></td>
   <td class="cart_contentUpdate"><?php echo $product['update_form'] ?><?php echo $product['delete_form'] ?>
   </td>
   <td align="left" class="cart_contentSub"><?php echo $product['subtotal'] ?></td><td></td>
 </tr>
Title: Re: sub total not displaying
Post by: peterc on December 15, 2009, 08:45:56 AM
Thanks - I'll try these changes in the basket_b2c.html.php file
Title: Re: sub total not displaying
Post by: peterc on December 15, 2009, 20:20:22 PM
I have made the chnages as suggested but still not displaying the sub totals
Title: Re: sub total not displaying
Post by: PRO on December 15, 2009, 20:52:09 PM
You are goig to have to style it

change the width of the cell,, etc.