Lioelx Posted September 23, 2016 Share Posted September 23, 2016 Hi, in list mode the addon show the stock quatity but on grid view no, how made for show stock quantity in grid view? Regards No external links here, thank you Link to comment Share on other sites More sharing options...
♥raiwa Posted September 24, 2016 Share Posted September 24, 2016 Hello Lionel @@Lioelx, Please post this problem in the support forum for the add-on, if it exists. Otherwise tell us at least which add-on you refer to and exact version. rgds Rainer About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
milerwan Posted September 24, 2016 Share Posted September 24, 2016 Hi, in list mode the addon show the stock quatity but on grid view no, how made for show stock quantity in grid view? Regards You have to go into Admin -> Configuration -> Product listing -> Display quantities and set to 1 (= yes). Osc v2.3.4 BS "custom" PHP 7.3 compatible (710 modified files => o_O') Link to comment Share on other sites More sharing options...
♥raiwa Posted September 24, 2016 Share Posted September 24, 2016 Hello Lionel @@Lioelx, Sorry understood wrong. You shouldn't call it "add-on". It's part of the standard installation. In: includes/modules/product_listing.php search for this part: if ( (PRODUCT_LIST_QUANTITY > 0) && (tep_get_products_stock($listing['products_id']) > 0) ) { $extra_list_contents .= '<dt>' . TABLE_HEADING_QUANTITY . '</dt>'; $extra_list_contents .= '<dd>' . tep_get_products_stock($listing['products_id']) . '</dd>'; } and change "$extra_list_contents" to "$prod_list_contents". Like this you get it to show in grid view. Then you'll need to style it with <div>s or move the section to get ot to show where you like. rgds Rainer About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Lioelx Posted September 24, 2016 Author Share Posted September 24, 2016 Hi, thanks for your replies, when making the change @@raiwa wrote, was below the amount and number. I've put well and is aligned $prod_list_contents .= '<dt>' . TABLE_HEADING_QUANTITY . ' '. tep_get_products_stock($listing['products_id']) . '</dt>'; /*$prod_list_contents .= '<dd>' . tep_get_products_stock($listing['products_id']) . '</dd>';*/ to do the same in product_info? Regards No external links here, thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.