News:

Looking for documentation? Take a look on our wiki

Main Menu

[FIXED] Quantity text still shown when box set to hide

Started by RolandD, September 19, 2007, 23:11:38 PM

Previous topic - Next topic

RolandD

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
Regards,

RolandD

CSVI
http://www.csvimproved.com/