Yup, and I'll look at how "best" such a statement can be easily added in the future. (Have an idea, but want to try to keep it easy for those that choose to modify it such as the above request.)
File: includes/classes/pad_sba_sequenced_dropdowns.php
Line 508:
Can change from:
Code:
$out.=" + '" . PWA_STOCK_QTY . "' + stk2";
to:
Code:
$out.=" + '" . PWA_STOCK_QTY . "' + stk2" . " Available";
For the fix, I'm looking at modifying PWA_STOCK_QTY and the remainder of that statement to possibly sprint the value, or more simply to have it defined as the entire text that follows the current PWA_STOCK_QTY, such that the define in: includes/languages/english/extra_definitions/products_with_attributes.php
Line 15 would be changed from:
Code:
define('PWA_STOCK_QTY', ' Qty: ');
to (untested):
Code:
define('PWA_STOCK_QTY', ' + " Qty: " + stk2 + " Available"');
Might have to reverse all the quotes on the right side of the define changing single quotes into double and double into single to support the javascript portion, and then line 508 of the previous file would be simply:
Code:
$out.= PWA_STOCK_QTY;
Or some variation on that "thought"...
Or since I see the constant is used in the class, that it would need to be a different constant in order to work or back to the previous "thought" of using sprint to provide the data... Again, the reason behind at least offering such a "prefix"/"suffix" option is to handle multiple languages as well where the word(s) may need to follow the number instead and further why an sprint option may be better so that the code can be consistent, but the resulting text be as desired/formed.
Anyways, more than you needed, but there ya' go. :)
Bookmarks