News:

Looking for documentation? Take a look on our wiki

Main Menu

sub total not displaying

Started by peterc, December 09, 2009, 20:32:42 PM

Previous topic - Next topic

peterc

I have a problem with my newly installed store - the sub total is not appearing on the cart page


[attachment cleanup by admin]

vhv_alex

What is the version of VM + Joomla that you are using ?

peterc


vhv_alex

It's weird, I've checked with my installation in localhost and it works well. Are there anybody else can confirm this issue?

PRO

can you see it when you view source?

MikeUK

Why is there 'undefined' twice under the name? Looks like something wrong with the attributes or some mod not mentioned.
Get answers faster:
    [li]
Search forum. You might find answer[/li]
[li]Use existing threads. Keep Q + A consolidated[/li]
[li]Troubleshooting? See http://forum.virtuemart.net/index.php?topic=60033.0[/li]
[li]For admin user manual - http://virtuemart.net/documentation/User_Manual/index.html[/li]
[li]For coding (developer manual) - http://virtuemart.net/documentation/Developer_Manual/index.html[/li][/list]

I can build your online shop, setup or customize Virtuemart or help your existing shop maximize its potential. Email / PM for info

peterc

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>

PRO

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>

peterc

Thanks - I'll try these changes in the basket_b2c.html.php file

peterc

I have made the chnages as suggested but still not displaying the sub totals

PRO

You are goig to have to style it

change the width of the cell,, etc.