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

2.0.3 G cart/default_pricelist.php error & fix

Started by bohemier, March 25, 2012, 16:57:40 PM

Previous topic - Next topic

bohemier

Hi,

In components/com_virtuemart/views/cart/tmpl/default_pricelist.php line 173

$i = 1 ? 2 : 1;

I believe was meant to be

$i = $i==1 ? 2 : 1;

Aptopa

#1
Hi, it is a error?
ver. 2.0.22a
Line ~203

onsubmit="check(<?php echo $step?>this);"


<form action="<?php echo JRoute::('index.php'); ?>" method="post" class="inline">
<input type="hidden" name="option" value="com_virtuemart"/>
<!--<input type="text" title="<?php echo  JText::_('COM_VIRTUEMART_CART_UPDATE'?>" class="inputbox" size="3" maxlength="4" name="quantity" value="<?php echo $prow->quantity ?>" /> -->
                <input type="text"
   onblur="check<?php echo $step?>(this);"
   onclick="check<?php echo $step?>(this);"
   onchange="check<?php echo $step?>(this);"
→→→→onsubmit="check(<?php echo $step?>this);"
   title="<?php echo  JText::_('COM_VIRTUEMART_CART_UPDATE'?>"
   class="quantity-input js-recalculate" size="3" maxlength="4" name="quantity" value="<?php echo $prow->quantity ?>" />
<input type="hidden" name="view" value="cart"/>
<input type="hidden" name="task" value="update"/>
<input type="hidden" name="cart_virtuemart_product_id" value="<?php echo $prow->cart_item_id  ?>"/>
<input type="submit" class="vmicon vm2-add_quantity_cart" name="update" title="<?php echo  JText::('COM_VIRTUEMART_CART_UPDATE'?>" align="middle" value=" "/>
</form>


good=


<form action="<?php echo JRoute::('index.php'); ?>" method="post" class="inline">
<input type="hidden" name="option" value="com_virtuemart"/>
<!--<input type="text" title="<?php echo  JText::_('COM_VIRTUEMART_CART_UPDATE'?>" class="inputbox" size="3" maxlength="4" name="quantity" value="<?php echo $prow->quantity ?>" /> -->
                <input type="text"
   onblur="check<?php echo $step?>(this);"
   onclick="check<?php echo $step?>(this);"
   onchange="check<?php echo $step?>(this);"
→→→→onsubmit="check<?php echo $step?>(this);"
   title="<?php echo  JText::_('COM_VIRTUEMART_CART_UPDATE'?>"
   class="quantity-input js-recalculate" size="3" maxlength="4" name="quantity" value="<?php echo $prow->quantity ?>" />
<input type="hidden" name="view" value="cart"/>
<input type="hidden" name="task" value="update"/>
<input type="hidden" name="cart_virtuemart_product_id" value="<?php echo $prow->cart_item_id  ?>"/>
<input type="submit" class="vmicon vm2-add_quantity_cart" name="update" title="<?php echo  JText::('COM_VIRTUEMART_CART_UPDATE'?>" align="middle" value=" "/>
</form>



Thz
regards

Milbo

#2
Hmmm, the thread was for 2.0.3.G
But

onblur="check<?php echo $step?>(this);"
onclick="check<?php echo $step?>(this);"
onchange="check<?php echo $step?>(this);"
onsubmit="check(<?php echo $step?>this);"

Looks indeed wrong, but what should check1(this), or check2(this) do?. This is in any case wrong, yes onsubmit="check(<?php echo $step?>this);" [/code]
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/