Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Addon} Modular SEO Header Tags


kymation

Recommended Posts

@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 by Peace2u
Link to comment
Share on other sites

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

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

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 by Peace2u
Link to comment
Share on other sites

  • 1 month later...

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?

Link to comment
Share on other sites

  • 3 months later...

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

 

 

 

post-337115-0-26784500-1447927527_thumb.jpg

Edited by mystique71
Link to comment
Share on other sites

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

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

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

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

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

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

  • 2 months later...

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

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

  • 1 year later...

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

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

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.. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...