Dear all,
I am using joomla 3.6.2, PHP 5.6.23, and VM 3.0.14.
I have some issues in the quantity column in the cart: The quantity input field and the update/delete button are not on the same horizontal level if I use the purity III (with T3 framework) template. For the protostar template, the quantity field and the button are nicely aligned (see attached images). The corresponding lines of code from pricelist_default.php are:
<td class="vm-cart-item-quantity" ><?php
if ($prow->step_order_level)
$step=$prow->step_order_level;
else
$step=1;
if($step==0)
$step=1;
?>
<input type="text"
onblur="Virtuemart.checkQuantity(this,<?php echo $step?>,'<?php echo vmText::_ ('COM_VIRTUEMART_WRONG_AMOUNT_ADDED',true)?>');"
onclick="Virtuemart.checkQuantity(this,<?php echo $step?>,'<?php echo vmText::_ ('COM_VIRTUEMART_WRONG_AMOUNT_ADDED',true)?>');"
onchange="Virtuemart.checkQuantity(this,<?php echo $step?>,'<?php echo vmText::_ ('COM_VIRTUEMART_WRONG_AMOUNT_ADDED',true)?>');"
onsubmit="Virtuemart.checkQuantity(this,<?php echo $step?>,'<?php echo vmText::_ ('COM_VIRTUEMART_WRONG_AMOUNT_ADDED',true)?>');"
title="<?php echo vmText::_('COM_VIRTUEMART_CART_UPDATE') ?>" class="quantity-input js-recalculate" size="5" maxlength="5" name="quantity[<?php echo $pkey; ?>]" value="<?php echo $prow->quantity ?>" />
<button type="submit" class="vmicon vm2-add_quantity_cart" name="updatecart.<?php echo $pkey ?>" title="<?php echo vmText::_ ('COM_VIRTUEMART_CART_UPDATE') ?>" ></button>
<button type="submit" class="vmicon vm2-remove_from_cart" name="delete.<?php echo $pkey ?>" title="<?php echo vmText::_ ('COM_VIRTUEMART_CART_DELETE') ?>" ></button>
</td>
Surprisingly, the lower line with the total sum also behaves differently for the purity and protostar template:
According to the code below, the phrase "Zwischensumme der Produktpreise" should be aligned to the right (as correctly shown in protostar) and not left aligned (as in purity III).
<tr class="sectiontableentry1">
<td colspan="6" align="right"><?php echo vmText::_ ('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_PRICES_TOTAL'); ?></td>
<td colspan ="1" class="vm-cart-item-total" > <?php echo $this->currencyDisplay->createPriceDiv ('salesPrice', '', $this->cart->cartPrices, FALSE) ?></td>
</tr>
Probably, both issues are related to each other. However, after some extensive search, I couldn't find a solution why the layout in the purity case looks so different. It would great, if someone has any hints where the problem may be!
Thanks in advance
Sebastian
P.S: Where is the class "sectiontableentry1" defined??? I was searching, but couldn't find anything.
Quotejoomla 3.6.2
stand by to be hacked unless of course u already have been
https://www.joomla.org/announcements/release-news/5678-joomla-3-6-4-released.html
http://www.theregister.co.uk/2016/11/02/hurried_crims_target_30000_sites_to_pop_unpatched_joomla/
the layout is simply a matter of adjusting the css to suit