
Originally Posted by
snakes7575
thank you for your time and patience.
I also added the last modification you made in the previous post, I'm continuing to try and I noticed that if I make the quantity available in the warehouse appear on the selection of the attribute, they are replicated 2 times, I attach photos.
if instead the article has multiple attributes then it works I attach photos

Found where this issue is generated. Apparently in my test site I've been working on/with attempting to display the customid on the "left" which caused this issue to be "hidden".
in the file: includes/classes/observers/class.products_with_attributes_stock.php
When I reverted to the default of customid being displayed on the right as assigned in lines 15-17:
Code:
if (!defined('PWA_DISPLAY_CUSTOMID')) {
define('PWA_DISPLAY_CUSTOMID', 'right'); // Three values currently used: 'right', 'left', or ''. Original design considered right.
}
I was able to see the problem you described and showed above.
If you do nothing else, then modify line 480 of: includes/classes/observers/class.products_with_attributes_stock.php
from:
Code:
$products_options_display_price .= $originalpricedisplaytext . $PWA_STOCK_QTY;
to:
Code:
$products_options_display_price .= $originalpricedisplaytext;
And this should resolve the issue of the duplicate information on the right side of the text...
But if you would like to see a more comprehensive incorporation/ability to place information, then may I suggest the below which I would like to merge into the master if someone else identifies successful use or provides comment in github.
I'm still working on more properly incorporating the ability to sequence the displayed information. It appears that at some point I originally intended the customid to possibly be displayed at the beginning of the text or at the end; however, looking at the various pieces that are put together, it appears that more control is needed. I've addressed the above as well as added some additional placement options (when using a single attribute type display such as the option name type: SBA Select List (Dropdown) Basic) with the changes found at: https://github.com/mc12345678/Stock_.../pull/79/files
Bookmarks