Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Problem with ceon and add a javascript in product page...

    Hi, I have the module ceon ... works perfectly but there is a problem. if I try to share a link of a product (with ceon) on facebook, I do see the preview ... while if ceon off, everything works perfectly, how can I do? devvo add a java script? and where?
    Thank you, Regards.
    http://www.disotech.it/console_gioch..._edition_sport (with Ceon)
    http://www.disotech.it/index.php?mai...d=462(without)



  2. #2
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: Problem with ceon and add a javascript in product page...

    nobody can help me?

  3. #3
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Problem with ceon and add a javascript in product page...

    I do not see a "share" button on your site... I also do not see any opengraph data on the page. The like / unlike seems to work just fine. There "may" be a nesting error on your page with elements.

    You may want to clarify what you are asking (such as exactly what happens in both cases and what you want to happen). It also never hurts to answer the questions in the "Posting Tips" section right above where you are typing to reply.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  4. #4
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: Problem with ceon and add a javascript in product page...

    then .. I want that if I select all the product link and paste on facebook I get a preview of the prdotto .. as with the link without ceon activated ... how do I?

  5. #5
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default RE: Rewritten pages not working with Open Graph when sharing a URL

    The cause of your issue is multifold.
    First: Zen Cart does not specify the absolute path names to images by default - instead it uses the "base href" meta tag to tell browsers to prepend this URL to relative path names. Nothing wrong with this in and of itself. Second: FaceBook's Open Graph API does not read the "base href" meta tag when scraping your website to find an image. Not many websites use the "base href" meta tag... so understandable.

    Huh? Why is this an issue?
    Why can they find the image with URL rewriting disabled but not when URL rewriting is enabled? As FaceBook does not currently use the "base href" meta tag it assumes the path is relative to the current page - not the website. Zen Cart Dynamic URLs are always on the website root - so everything works. Your rewritten URL contains a directory and is not on the website root - so it tries to access "http://www.disotech.it/console_giochi/bmz_cache/a/a1e9901b302de7165e1bd14bbca5b5ab.image.190x190.jpg" because you are in the directory "/console_giochi/". As there is no image at the location (404) FaceBook does not include an image.

    How to Fix
    1) Use Zen Cart Dynamic URLs or do not use directories in your rewritten URLs. Relatively easy, but not as pretty.

    2) Change your templates to not depend on the "base href" meta tag. Specify all resources (images, css, javascript, etc) as absolute paths. This option works well and I have a couple client's whose templates do not use the "base href" meta tag. This can be complicated (find someone who knows templates and XHTML) and may involve changes to Image Handler (a plugin you are using).

    3) Add the appropriate Open Graph tags to your individual pages. See http://goo.gl/xFI0u for more details. This is currently FaceBook's preferred method for you to communicate how a URL is shared on FaceBook. I do not currently know of any plugins to automate / aid in this process.

    4) Request FaceBook update their API to utilize the "base href" meta tag when parsing a URL to determine the image / video to display. Wait for them to implement the change... No guarantee they ever will.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  6. #6
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: Rewritten pages not working with Open Graph when sharing a URL

    ok ok thank you you have been very kind and very clear .. and if I uninstall url ceon, there is another form for seo, it works perfectly without this problem? (when AEVO joomla with virtuemart, there was this problem ... what is the right form for me? Thank you very much ..

  7. #7
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: Rewritten pages not working with Open Graph when sharing a URL

    excuse me, I have not managed to solve the problem, but I found this site using url mapping ceon, on which we solved the problem .. how can I do?
    http://www.holyart.it/it/articoli-re...colorata-20-cm

 

 

Similar Threads

  1. v151 Problem with facebook ceon and previews products
    By onlysteg in forum General Questions
    Replies: 1
    Last Post: 4 Dec 2012, 01:59 PM
  2. v150 Problem with Ceon Uri Mapping Add on
    By GodfatherAntiques in forum General Questions
    Replies: 5
    Last Post: 2 Jul 2012, 08:04 PM
  3. Pagination problem on product listing page when ceon uri mapping is on.
    By kirti in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 16 Mar 2012, 02:01 PM
  4. Problem - session consistency and Add to Cart buttons - CEON URI
    By w0rl0ck in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 27 Aug 2011, 08:28 AM
  5. A bot to edit and save each product? CEON and others Add-on idea / exists?
    By edwardtilbury in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 24 Aug 2009, 01:04 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR