♥Tsimi Posted July 20, 2018 Share Posted July 20, 2018 Sorry no. Only local shop here. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted July 20, 2018 Author Share Posted July 20, 2018 3 hours ago, sinopia said: Anyone has a demo or prints to see how this works? I'll see what I can sort this weekend. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted August 5, 2018 Author Share Posted August 5, 2018 Getting these errors when trying to update /admin/builder_categories.php?action=update Quote Warning: Use of undefined constant editid - assumed 'editid' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 30Warning: Use of undefined constant editoscat - assumed 'editoscat' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 31Warning: Use of undefined constant editimage - assumed 'editimage' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 32Warning: Use of undefined constant newdepcat - assumed 'newdepcat' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 33Warning: Use of undefined constant editid - assumed 'editid' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 30Warning: Use of undefined constant editoscat - assumed 'editoscat' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 31Warning: Use of undefined constant editimage - assumed 'editimage' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 32Warning: Use of undefined constant newdepcat - assumed 'newdepcat' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 33Warning: Use of undefined constant editid - assumed 'editid' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 30Warning: Use of undefined constant editoscat - assumed 'editoscat' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 31Warning: Use of undefined constant editimage - assumed 'editimage' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 32Warning: Use of undefined constant newdepcat - assumed 'newdepcat' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 33Warning: Use of undefined constant newrow - assumed 'newrow' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 53Warning: Use of undefined constant neworder - assumed 'neworder' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 54Warning: Use of undefined constant newimage - assumed 'newimage' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 55Warning: Use of undefined constant newoscat - assumed 'newoscat' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 56Warning: Use of undefined constant delrow - assumed 'delrow' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 76Warning: Use of undefined constant fromrow - assumed 'fromrow' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 135Warning: Use of undefined constant torow - assumed 'torow' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 136Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\valley\admin\builder_categories.php:136) in C:\xampp\htdocs\valley\admin\includes\functions\general.php on line 38 Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted August 5, 2018 Author Share Posted August 5, 2018 Clicking to select doesn't select. Also I've added a boxes language file so you only need to make one change to core code. Custom-Product-Builder-for-BS-Tsimi.zip Quote Link to comment Share on other sites More sharing options...
♥Tsimi Posted August 5, 2018 Share Posted August 5, 2018 (edited) @LeeFoster Thanks for testing. What PHP version are you running? Edited August 5, 2018 by Tsimi Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted August 5, 2018 Author Share Posted August 5, 2018 7.2.5 and using @burt frozen version of oscommerce and the bs4 admin made by whitehat or whatever name he's using. Quote Link to comment Share on other sites More sharing options...
♥Tsimi Posted August 5, 2018 Share Posted August 5, 2018 Ah I see. I was using PHP 7.0.21 when I was working and it didn't throw any errors. I quickly swapped to 7.2.1 and I can see the same errors now. I'll have a closer look asap. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted August 5, 2018 Author Share Posted August 5, 2018 (edited) 3 hours ago, LeeFoster said: Warning: Use of undefined constant editid - assumed 'editid' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 30Warning: Use of undefined constant editoscat - assumed 'editoscat' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 31Warning: Use of undefined constant editimage - assumed 'editimage' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 32Warning: Use of undefined constant newdepcat - assumed 'newdepcat' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\valley\admin\builder_categories.php on line 33 Fixed this issue, update attached Custom-Product-Builder-for-BS-Tsimi.zip Edited August 5, 2018 by LeeFoster Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted August 7, 2018 Author Share Posted August 7, 2018 @Tsimi did you get chance to look into this yet? Can't do any further testing until this is resolved. On 8/5/2018 at 2:59 PM, LeeFoster said: Clicking to select doesn't select. Also I've added a boxes language file so you only need to make one change to core code. Custom-Product-Builder-for-BS-Tsimi.zip Quote Link to comment Share on other sites More sharing options...
♥Tsimi Posted August 7, 2018 Share Posted August 7, 2018 @LeeFoster I cannot recreate that problem. I can select products without any issues. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted August 7, 2018 Author Share Posted August 7, 2018 4 minutes ago, Tsimi said: @LeeFoster I cannot recreate that problem. I can select products without any issues. What browser? php version? etc Quote Link to comment Share on other sites More sharing options...
♥Tsimi Posted August 7, 2018 Share Posted August 7, 2018 Firefox 61.0.1 PHP 7.2.1 Clean Frozen shop no other apps or mods installed running on XAMPP local server. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted August 7, 2018 Author Share Posted August 7, 2018 Just now, Tsimi said: Firefox 61.0.1 PHP 7.2.1 Clean Frozen shop no other apps or mods installed running on XAMPP local server. I'm on chrome with php 7.2.5 Also clean Frozen on local XAMPP. Will test on Firefox later Quote Link to comment Share on other sites More sharing options...
♥Tsimi Posted August 7, 2018 Share Posted August 7, 2018 (edited) Just had a look with Chrome (v67.0.3396.99), no issues either. I can select items. 6.5 inch base plate?? That is not a vanilla osC product. Did you try it with regular osC products like DVDs? However I do get an error inside the Builder box on the catalog side. My guess would be another PHP 7.2 related issue. Quote Warning: Use of undefined constant cpb_product_builder_name - assumed 'cpb_product_builder_name' (this will throw an Error in a future version of PHP) in C:\xampp\htdocs\frozen2\includes\modules\boxes\templates\builder.phpon line 4 Edited August 7, 2018 by Tsimi Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted August 7, 2018 Author Share Posted August 7, 2018 (edited) 14 minutes ago, Tsimi said: Just had a look with Chrome (v67.0.3396.99), no issues either. I can select items. 6.5 inch base plate?? That is not a vanilla osC product. Did you try it with regular osC products like DVDs? However I do get an error inside the Builder box on the catalog side. My guess would be another PHP 7.2 related issue. You're right, it appears to be an issue with my product. Note to self - 'Don't use " in product description' The other error I have fixed, there is an instance of cpb_product_builder_name that is missing ' ' around it. Edited August 7, 2018 by LeeFoster Tsimi 1 Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted August 7, 2018 Author Share Posted August 7, 2018 Works for adding to cart, doesn't reduce stock though. Any idea @Tsimi? Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted November 13, 2018 Author Share Posted November 13, 2018 Anyone interested in getting this fully working? @Tsimi @raiwa Quote Link to comment Share on other sites More sharing options...
♥raiwa Posted November 14, 2018 Share Posted November 14, 2018 On 11/13/2018 at 10:32 AM, LeeFoster said: Anyone interested in getting this fully working? @Tsimi @raiwa Interested, yes, time to do it, no. Maybe next month, maybe next year 🙄 Quote 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...
LeeFoster Posted November 14, 2018 Author Share Posted November 14, 2018 3 minutes ago, raiwa said: Interested, yes, time to do it, no. Maybe next month, maybe next year 🙄 I know that feeling. How far did we get with it? Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted November 15, 2018 Author Share Posted November 15, 2018 From what I can tell we just need to make the last manual change hard coded. Quote $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); ## REPLACE WITH: // BUILDER INTERVENTION - redirect to builder_product_info if this is a builder product $product_check_query = tep_db_query("select p.builder_product_flag, count(*) as total from products p, products_description pd where (p.products_status = '1' or p.builder_product_flag = '1') and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' group by p.products_id"); $product_check = tep_db_fetch_array($product_check_query); if ($product_check['builder_product_flag'] == '1') { tep_redirect(tep_href_link('builder_product_info.php?products_id=' . $_GET['products_id'])); } // END OF BUILDER INTERVENTION Quote Link to comment Share on other sites More sharing options...
♥Tsimi Posted November 16, 2018 Share Posted November 16, 2018 (edited) @LeeFoster Sorry for chiming in late. Wasn't there an issue about product stock not being subtracted? Edited November 16, 2018 by Tsimi Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted November 16, 2018 Author Share Posted November 16, 2018 Yes there was, I was hoping to get this as a no code change install before looking into that though. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted February 24, 2019 Author Share Posted February 24, 2019 On 11/16/2018 at 6:10 AM, Tsimi said: @LeeFoster Sorry for chiming in late. Wasn't there an issue about product stock not being subtracted? I've just installed this and it is now deducting stock. Must have been something I did wrong. Just the core code change to fix now. Quote Link to comment Share on other sites More sharing options...
LeeFoster Posted February 24, 2019 Author Share Posted February 24, 2019 On 11/15/2018 at 10:53 AM, LeeFoster said: From what I can tell we just need to make the last manual change hard coded. $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); ## REPLACE WITH: // BUILDER INTERVENTION - redirect to builder_product_info if this is a builder product $product_check_query = tep_db_query("select p.builder_product_flag, count(*) as total from products p, products_description pd where (p.products_status = '1' or p.builder_product_flag = '1') and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' group by p.products_id"); $product_check = tep_db_fetch_array($product_check_query); if ($product_check['builder_product_flag'] == '1') { tep_redirect(tep_href_link('builder_product_info.php?products_id=' . $_GET['products_id'])); } // END OF BUILDER INTERVENTION @burt you know more about oscommerce than most. Any idea on a work around? Quote Link to comment Share on other sites More sharing options...
burt Posted February 24, 2019 Share Posted February 24, 2019 2 hours ago, LeeFoster said: @burt you know more about oscommerce than most. Any idea on a work around? A workaround for what? I've never looked at this addon... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.