Jump to content
Latest News: (loading..)
spidometrs

[CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo

Recommended Posts

1 hour ago, burt said:

In any case, it takes 30 seconds to perform a database hit to update seo_title to match name.

He still would have an additional copy paste action for each new or modified product or to run again the sql query.

With my suggested "core" change the following 3 options for products breadcrumb would be available:

1. product model like by default

2. product SEO name like in existing core

3. product name like he asked for, instead of empty. Who wants an empty entrance for product in breadcrumb?

This has been suggested some time ago (but rejected) as a core change/fix also for the misleading info text in admin products:

Products Title for SEO:
Replaces the product name in the <title> Meta Element
and optionally in the Breadcrumb Trail.
Leave blank to default to product name.

 

Edited by raiwa

Share this post


Link to post
Share on other sites

pffffff, as I said at the time, we can revisit this at a later date. 

Edited by burt

This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites
1 hour ago, raiwa said:

With my suggested "core" change the following 3 options for products breadcrumb would be available:

In the meantime, for those using Header Tags SEO, you can display the name of the item in the breadcrumb or make up your own. There is also an option to include the model number.

Share this post


Link to post
Share on other sites

Brian @brian_cee,

Sorry, I didn't know that you are using Jack's Header Tags SEO and I neither knew that it also allows to use the products name in breadcrumb.

My breadcrumb modification in application_top.php is for shops which do not use Header Tags SEO. So please, use one thing: Jack's Heeader Tags SEO OR my modification, not both.

Your question should still be posted in another topic: Header Tags SEO

Share this post


Link to post
Share on other sites
2 hours ago, raiwa said:

Brian @brian_cee,

Sorry, I didn't know that you are using Jack's Header Tags SEO and I neither knew that it also allows to use the products name in breadcrumb.

My breadcrumb modification in application_top.php is for shops which do not use Header Tags SEO. So please, use one thing: Jack's Heeader Tags SEO OR my modification, not both.

Your question should still be posted in another topic: Header Tags SEO

I don't currently use Header Tags SEO, but if there's an option in that to use product titles in the breadcrumb, I guess I will.

I quoted Jack's signature because I thought you were differentiating  between version of the Ultimate SEO urls, now I see that you were referring to the difference between Header Tags SEO and Ultimate SEO urls..... my fault completely, as I'm so lost I thought the breadcrumb override thing was part of the Ultimate SEO addon installation.....

Share this post


Link to post
Share on other sites

Hello every body ! :smile:

I work on an Oscommerce shop with Ultimate SEO URL, how to remove .html?

http://www.treuil4x4.com/catalogue/treuils-tmax-c-124.html

to

http://www.treuil4x4.com/catalogue/treuils-tmax-c-124/

I have already done some tests but if I delete the .html (on .htaccess and include/class/seo.class.php

It make me duplicate page ! (by deleting the '-')... like this

http://www.treuil4x4.com/catalogue/treuils-tmax-c-124.html
http://www.treuil4x4.com/catalogue/treuils-tmax-c-124/
http://www.treuil4x4.com/catalogue/treuilstmax-c-124/

How to remove .html properly? without making the contribution bug?

Thank you !

Share this post


Link to post
Share on other sites

Hello , @Jack_mcs
It would be nice to update the installation instructions of Ultimate SEO V 2.2d to the latest version of OsCommerce 2.3.4.1 BS Edge.

Many of the "Find this code:" do not match, and maybe the "REPLACE with this function:" should also be updated ... ??

If this contribution is so important, why not incorporate it into the version Edge "Final" of @burt ?

Best regards

Valqui


I'm using oscommerce Edge v2.3.4.1

Get here the latest osCommerce Online Merchant Community Bootstrap Edition v2.3.4.1 CE

Share this post


Link to post
Share on other sites
2 hours ago, valquiria23 said:

If this contribution is so important, why not incorporate it into the version Edge "Final" of @burt ?

You know that thing that the Rock does with the eyebrow...

I'm doing that now :huh:


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites
5 hours ago, valquiria23 said:

It would be nice to update the installation instructions of Ultimate SEO V 2.2d to the latest version of OsCommerce 2.3.4.1 BS Edge.

It's on my list of things to do. But this addon isn't locked so please feel free to make the changes and upload a new version. If you do that, please upload a full version since partial uploads cause confusion.

Share this post


Link to post
Share on other sites
On 9/4/2018 at 6:45 PM, burt said:

You know that thing that the Rock does with the eyebrow...

I'm doing that now :huh:

sorry @burt 

I did not understand what you wanted to say, could you please clarify?

Best regards,

Valqui


I'm using oscommerce Edge v2.3.4.1

Get here the latest osCommerce Online Merchant Community Bootstrap Edition v2.3.4.1 CE

Share this post


Link to post
Share on other sites
On 5/14/2018 at 1:13 AM, valquiria23 said:

sorry @burt 

I did not understand what you wanted to say, could you please clarify?

Best regards,

Valqui

URLs for SEO have been irrelevant for a long time.

To suggest that this code goes into Edge...make me raise my eyebrow.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites

Hi @burt 

I do not remember where I read that it was very important for SEO, but you know more than me about it hehe!

Anyway that addon likes many and it would be good to include it. what do you think?

Kiss

Valqui


I'm using oscommerce Edge v2.3.4.1

Get here the latest osCommerce Online Merchant Community Bootstrap Edition v2.3.4.1 CE

Share this post


Link to post
Share on other sites
Posted (edited)

Hi

I want to remove this c id or convert the _ underscore of the URL to a - please?

Example from this url

additions-c-25_68.html

I want to either remove this cID from the url completely

It would be great if it can be made like this

like

additions.html

or

remove the underscore.

additions-c-25-68.html

Please can you guide me on how to do it...

Thank you in advance;

Regds/

radhavallabh

Edited by radhavallabh

Share this post


Link to post
Share on other sites

Secondly I am having an issue after installing it on latest Frozen Version the product URL appears like this WITHOUT THE PRODUCT NAME-

-p-2484.html

The product name does not appear at all please help

Share this post


Link to post
Share on other sites
Posted (edited)
1 hour ago, radhavallabh said:

Hi

I want to remove this c id or convert the _ underscore of the URL to a - please?

Example from this url

additions-c-25_68.html

I want to either remove this cID from the url completely

It would be great if it can be made like this

like

additions.html

or

remove the underscore.

additions-c-25-68.html

Please can you guide me on how to do it...

@radhavallabh,

this is not possible without mayor code changes and not recommended for this contribution. It would break the URLs if numbers are used in the categories or product names.

It has already been discussed here:

If you wish to use URLs without category and product numbers, have a look on this:

https://apps.oscommerce.com/hjiu1

There is another one, but it seems it is not updated to work with latest 2.3.4.1 CE Frozen:

https://apps.oscommerce.com/1U3lG&seo-g

 

Kind regards

Rainer

Edited by raiwa

Share this post


Link to post
Share on other sites

@radhavallabhI haven't tried the addons @raiwamentioned so I can't say how well they work. But be aware that they may not work with the google sitemap addon which, in my opinion, all sites should install.

Also, I'm curious, why does the numbers in the url bother you? This has come up many times before but I don't recall a reason for it. They don't have an affect on SEO so the only reason I can think of is appearance.

Share this post


Link to post
Share on other sites

A new version has been uploaded with these changes:

  • Changed some of the definitions that were previously missed, like FILENAME_INFORMATION
  • Fixed typo in seo.class.php as found by member @altoid.
  • Updated the instructions to match the latest CE version of oscommrece.
  • Updated seo.class.php file to work with php 7.0 supplied by member @raiwa.

Share this post


Link to post
Share on other sites

Hi Jack, running php 7.2.8 here and in the error checking mode I see this:

Notice: Undefined variable: seo_urls in /home/barkav5/public_html/includes/application_top.php on line 295

Line 295 is:

   if ( !is_object($seo_urls) ){

Any suggestions?


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites
7 minutes ago, altoid said:

Hi Jack, running php 7.2.8 here and in the error checking mode I see this:

Notice: Undefined variable: seo_urls in /home/barkav5/public_html/includes/application_top.php on line 295

Line 295 is:

   if ( !is_object($seo_urls) ){

Any suggestions?

try checking for existence first:

   if ( ! (isset($seo_urls) && is_object($seo_urls)) ){

 


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (2.3.4.1 CE) here: https://github.com/gburton/Responsive-osCommerce/archive/2341-Frozen.zip

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
17 hours ago, BrockleyJohn said:

try checking for existence first:


   if ( ! (isset($seo_urls) && is_object($seo_urls)) ){

 

John, I updated the code and ran an error check.  All's good now.

Thank you


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

In checking my error log I find this:

 PHP Notice:  Undefined variable: page in /home/barkav5/public_html/includes/classes/seo.class.php on line 2626
 
 the lines 2626-2628 show
 
$url = $this->make_url($page, $this
->get_category_name($actualID), 'cPath',
 $fullID, '.html');


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

I don't see this warning so I can't say for sure but I think this will fix it. Find this line

 $url = $this->make_url($page, $this->get_category_name($actualID), 'cPath', $fullID, '.html');

and add this above it

 $page = (! (isset($page) && tep_not_null($page) ?: basename($_SERVER['SCRIPT_NAME']));
 

 

Share this post


Link to post
Share on other sites
1 hour ago, Jack_mcs said:

I don't see this warning so I can't say for sure but I think this will fix it. Find this line


 $url = $this->make_url($page, $this->get_category_name($actualID), 'cPath', $fullID, '.html');

and add this above it


 $page = (! (isset($page) && tep_not_null($page) ?: basename($_SERVER['SCRIPT_NAME']));
 

 

Got this error...but added an ) at the end as so and it seems OK

PHP Parse error:  syntax error, unexpected ';' in /home/barkav5/public_html/includes/classes/seo.class.php on line 2626

$page = (! (isset($page) && tep_not_null($page) ?: basename($_SERVER['SCRIPT_NAME'])));

Checking error log, I don't see any more for this issue after the update.

So looks goo on that.  Thank you


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×