Peace2u Posted June 20, 2015 Share Posted June 20, 2015 (edited) @kymation I had the same problem when you insert new product, the product meta description and meta keywords won't appear. But they only appear when you edit a product. I think there is a problem is the last version of the file products_insert.php, the file starts with: $products_id = 0; // Default in case no product is set $products_id = ( int )$pInfo->products_id; if( $products_id > 0 ) { When a new product is added $pInfo->products_id will be null and the page wil not go through the if statement, and will not show any fields. I have made a modification that works (maybe some one could make it better ;-), search: $products_id = 0; // Default in case no product is set $products_id = ( int )$pInfo->products_id; if( $products_id > 0 ) { Replace with: $products_id = 0; // Default in case no product is set $products_id = ( int )$pInfo->products_id; //FvD 20-6-2015 get new product_id if ( (int)$pInfo->products_id == 0 ) { $product_last_query = tep_db_query("select products_id from " . TABLE_PRODUCTS . " order by products_id desc limit 1"); $product_last = tep_db_fetch_array($product_last_query); $products_id = $product_last[products_id] + 1; } if( $products_id > 0 ) { I hope this helps and maybe some one knows a better solution, kind greetings, Fabien Edited June 20, 2015 by Peace2u Quote Link to comment Share on other sites More sharing options...
♥kymation Posted June 20, 2015 Author Share Posted June 20, 2015 That looks like it should work. I suggest that you test carefully. Are the values always saved? If it works, then go with it. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Peace2u Posted June 20, 2015 Share Posted June 20, 2015 (edited) Hi Jim, The values are saved correctly. But i think it could be a problem when several people are inserting at the same time and than the solution as used in the categories_insert.php with the cases would be better.... Kind greetings, Fabien Edited June 20, 2015 by Peace2u Quote Link to comment Share on other sites More sharing options...
zallen Posted August 3, 2015 Share Posted August 3, 2015 When I create a new product, new product page cannot be loaded Products Meta Description: Products Meta Keywords: if my update producdt it do ,What should I do, new products will be loaded Products Meta Description: Products Meta Keywords box? Quote Link to comment Share on other sites More sharing options...
♥kymation Posted August 3, 2015 Author Share Posted August 3, 2015 Read this post. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
mystique71 Posted November 19, 2015 Share Posted November 19, 2015 (edited) Greetings, I also wanted to install this contri ( version. 1.4.6) but when I go to admin/modules/ header tags i see I have 32 new modules to install but when I want to click install modules the whole list is empty?? ohh i have osc 2.3.4 Edited November 19, 2015 by mystique71 Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 19, 2015 Author Share Posted November 19, 2015 It looks like one of your modules is corrupt. Try uploading the modules again, this time with your FTP client set to ASCII/text mode. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
mystique71 Posted November 20, 2015 Share Posted November 20, 2015 okay will try later today :) Quote Link to comment Share on other sites More sharing options...
mystique71 Posted November 20, 2015 Share Posted November 20, 2015 well tried it but I still can't see the list of new modules when I click on install :(( Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 20, 2015 Author Share Posted November 20, 2015 There is still something wrong in the /includes/modules/header_tags files. Check that you do not have anything there except the stock files and the files from this addon. If you still can't find the problem, edit your admin/includes/application_top.php to turn on error reporting. Find the line: error_reporting(E_ALL & ~E_NOTICE); and replace it with: ini_set('display_errors', '1'); error_reporting(E_ALL); Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
mystique71 Posted November 20, 2015 Share Posted November 20, 2015 these are the only files I originally have in the header_tag folder but the fun part is: when I upload all your files also the modified ones they don't even appaear in my database?is that normal? Quote Link to comment Share on other sites More sharing options...
♥kymation Posted November 20, 2015 Author Share Posted November 20, 2015 Modules will only show up in your database after they have been installed. Delete all of the modules from /includes/modules/header_tags, then add them back in one at a time, checking that they show on the install screen after each one. When you find one that does not show up after you added the file to that folder, that's the broken module. Delete that file and continue until you have uploaded the files that are not broken. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
mystique71 Posted November 22, 2015 Share Posted November 22, 2015 thanx for the tip :) I picked a few modules I want to use and did them one by one. they are working now :D Quote Link to comment Share on other sites More sharing options...
dvharrison Posted January 27, 2016 Share Posted January 27, 2016 Hi Is this add-on compatible with OSCommerce 2.3.4? And is it written for PHP 5.5? Please advise. Quote Debbie Harrison Link to comment Share on other sites More sharing options...
♥kymation Posted January 27, 2016 Author Share Posted January 27, 2016 It's compatible with any of the 2.3.x versions of osCommerce. And I have it running on several stores on PHP 5.5, so yes to that one too. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
dvharrison Posted January 27, 2016 Share Posted January 27, 2016 Thanks. I'll give it a go. Quote Debbie Harrison Link to comment Share on other sites More sharing options...
shoshoni Posted January 30, 2017 Share Posted January 30, 2017 Hi JimThanks for the contribution.I have only enabled "Front Page - Title' and nothing happens? Please see the attachments All the product related stuff works fine. Have I missed something? Thanks Quote Link to comment Share on other sites More sharing options...
♥kymation Posted January 30, 2017 Author Share Posted January 30, 2017 What version of osCommerce are you using? Are you looking at the front page of your site? That module only affects the front page. Regards Jim Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
shoshoni Posted January 31, 2017 Share Posted January 31, 2017 I am using V2.3.3 and yes I am looking at my front page ( index) Thanks Quote Link to comment Share on other sites More sharing options...
shoshoni Posted February 3, 2017 Share Posted February 3, 2017 Is it possible to show 1. A title for only the index page 2. Product description without the main title? Currently I am showing <title>Index title</title> for the index page and <title>Index title - Product title</title> for the individual products I want to show : <title>Index title</title> for the index page and <title>Product title</title> for the individual products Thanks.. :) Quote Link to comment Share on other sites More sharing options...
♥kymation Posted February 4, 2017 Author Share Posted February 4, 2017 The titles should work the way you want. I have no idea how you set it up to do what you're getting. Regards Jim Quote See my profile for a list of my addons and ways to get support. 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.