Support » Plugin: Bol.com Partner Program Plugin » Plugin not working anymore

  • Resolved rowvdb1973

    (@rowvdb1973)


    Hello,

    The plugin does not work correctly anymore after an update.I also reinstalled the latest plugin version but still it is not working. Everything seems to be oke when using the plugin but when I check my site I only see a white box with the bol.com logo in it and when I click on it I go to the homepage instead of the productpage. I already checked the suggestions in earlier posts but my php settings are oke.
    It did work before but after updating it stopped working. Can you give me a suggestion how I can get it to work again? API code ect are all oke.

    Regards
    Rowena

    https://wordpress.org/plugins/bolcom-partnerprogramma-wordpress-plugin/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Bol.com

    (@netvlies)

    Can you provide your website so we can look at it?Did you check your settings on the config page and does it says status successful under the Bol.com Open API test?Do you have any javascript errors on the page?

    Thread Starter rowvdb1973

    (@rowvdb1973)

    Yes I did check the settings and the status is successful at the Open API test. This is my website https://tinyurl.com/ovrjrza

    Regards,
    Rowena

    Plugin Author Bol.com

    (@netvlies)

    We found the problem. When rendering the widgets on the frontend inline javascript is used. In this javascript an method is tried to render but it does not exists. This is caused by the way the theme loads the javascript files.

    It places all javascript files in the footer and loads them after the inline javascript method is called. Since the source files are loaded later the function cannot be found.

    To solve this for now you should make sure the line responsible for loading the bol-partner-frontend.js javascript is placed before the line that executes the widget loading.

    Make sure this line comes first.
    <script type=’text/javascript’ src=’http://www.kooktijdschrift.nl/wp-content/plugins/bolcom-partnerprogramma-wordpress-plugin/resources/js/bol-partner-frontend.js?ver=3.8.1′></script&gt;

    After that the inline javascript lines.
    <script type=”text/javascript”>BolPartner_SelectedProducts = {“bol_51d25cf3d0a88_selected-products”:{“title”:””,”block_id”:”bol_51d25cf3d0a88_selected-products”,”products”:”9200000009933528″,”name”:”meer dan 80 spannende salades”,”sub_id”:””,”width”:”200″,”cols”:”1″,”link_target”:”1″,”image_size”:”1″,”custom_css”:false,”custom_css_style”:””,”text_color”:”664F38″,”link_color”:”99CB25″,”subtitle_color”:”000000″,”pricetype_color”:”000000″,”price_color”:”CC3300″,”deliverytime_color”:”99CB25″,”background_color”:”FFFFFF”,”border_color”:”D2D2D2″,”show_bol_logo”:”0″,”show_price”:”1″,”show_rating”:”0″,”show_deliverytime”:”on”}};BolPartner.SelectedProducts.fillPlaceHolders(BolPartner_SelectedProducts);</script>

    In the future we will take a look how we can improve the plugin so this problem won’t be happening again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin not working anymore’ is closed to new replies.