Jump to content

Recommended Posts

Hi all, I have found that some of google and facebook pages say "you must have Javascript enabled in your browser to utilize the functionality of this website"

Which is not the best of things to tell the public. How can I resolve this / stop this happening?

On face books it's only as the type of ad from Facebook wanted me to promote my website showing my a sample of what an ad could be...

image.png.4ca062dc2b46ef758364e818fe10ed78.png

Share this post


Link to post
Share on other sites

You could edit the noscript message and put a paragraph as the beginning with a welcome to the site message, a summary of it or something along those lines...

it's in the language file at the bottom

// noscript helper
define('TEXT_NOSCRIPT', '<p><strong>JavaScript seems to be disabled in your browser.</strong></p><p>You must have JavaScript enabled in your browser to utilize the functionality of this website.<br><a class="alert-link" href="https://www.enable-javascript.com/" target="_blank" rel="nofollow">Click here for instructions on enabling javascript in your browser</a>.</p>');

It wouldn't do any harm to tell people what they're missing with js turned off anyway

while you're at it you might want to get rid of "utilize" :shudder:


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/releases

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

Turn on Open Graph HT Module.  So many things to explore...


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 Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites
12 minutes ago, burt said:

Turn on Open Graph HT Module.  So many things to explore...

is there one for non-product pages now?


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/releases

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

Yep already have Product OpenGraph Module in header tags installed.

Grepwin only found the script in english/modules/content/header/cm_header_noscript.php so now sitting here trying to work out what to change the test too

 

Share this post


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

is there one for non-product pages now?

No, I assumed that the link from FB would be to a product page.

17 minutes ago, SCH_001 said:

Yep already have Product OpenGraph Module in header tags installed.

If you use the OG tester tool ( https://developers.facebook.com/tools/debug/ ), on a product page it should give a lot of useful data, I just tried the Pears on demo Phoenix;

fb_1.jpg.37c31d93ba77a134628cebe70cbaf98a.jpg

fb-2.jpg.af35e35c72d1a606e69ceb4dde4f6c63.jpg

I suppose that the OG module should be updated for a sitewide use, as someone on FB might link to your homepage or specials page or something.


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 Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites
Posted (edited)

Ok so the link preview for specials.php is

domain name
business name
Then the you must have java script stuff

and then
og:description  You must have JavaScript enabled in your browser to utilize the functionality of this website. Click here for instructions on enabling javascript in your browser.

at the top of the report it says
Warnings That Should Be Fixed

Inferred Property The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

Missing Properties The following required properties are missing: og:url, og:type, og:title, og:image, og:description, fb:app_id

----------------------

So I guess this has to do with your comment of " the OG module should be updated for a sitewide use" is this easy to do?
Is there anything else I can do to stop the Javascript stuff coming up for the og:descrition?
 

Edited by SCH_001

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

×