News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

VM cart: quantity column issue

Started by Sebastian_29, November 12, 2016, 19:56:52 PM

Previous topic - Next topic

Sebastian_29

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.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation