VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: RolandD on September 19, 2007, 23:11:38 PM

Title: [FIXED] Quantity text still shown when box set to hide
Post by: RolandD on September 19, 2007, 23:11:38 PM
Hey,

When display type for the show_quantity_box is set to hide, the text for quantity is still shown.

In the ps_product_attribute.php file move the code:

//Determine if label to be used
$html = "";
if(!$child) {
$html ="<label for=\"quantity$prod_id\" class=\"quantity_box\">".$VM_LANG->_PHPSHOP_CART_QUANTITY.":&nbsp;</label>";
}


below:


//Start output of quantity
//Check for incompatabilities and reset to normal

if(!@$display_type || (@$display_type == "hide" && $child == 'Y') || (@$display_type == "radio" && $child == 'YM') || (@$display_type == "radio" && !$child)) {
$display_type = "none";
}


and change it to read:


//Determine if label to be used
$html = "";
if(!$child && $display_type != 'hide') {
$html ="<label for=\"quantity$prod_id\" class=\"quantity_box\">".$VM_LANG->_PHPSHOP_CART_QUANTITY.":&nbsp;</label>";
}


Regards,

RolandD
Title: Re: [CONFIRM] Quantity text still shown when box set to hide
Post by: aravot on September 24, 2007, 23:24:38 PM
Q&T note; Tracker URL http://virtuemart.net/index.php?do=details&task_id=1465&option=com_flyspray&Itemid=91&option=com_flyspray&Itemid=91