WordPress.org

Ready to get started?Download WordPress

Forums

Magento WordPress Integration
JS load problem (wordpress end) (4 posts)

  1. ciampam9
    Member
    Posted 1 year ago #

    I have portfolio setup within wordpress that uses jquery isotope to dynamically cascade items by category. When adding this code:

    <?php
    // Echo full Magento head file
    the_block('head');

    // Get specific elements from the head
    $head = get_block('head', false);
    echo $head->getCssHtml(); // All CSS and JS files defined in your Magento head
    echo $head->getChildHtml();
    echo $head->getIncludes();
    ?>

    <div id="container">
    <?php the_block('header');

    ?>
    It loads the css and jquery from magento just fine but it stops the isotope jquery function. When removing the magento blocks from header the jquery loads. I have also tried loading js files into the magento directory and defining them within page.xml under head. let me know your thoughts. Here is some more code reference:

    page.xml with added js:
    http://screencast.com/t/zrUp2yXCX
    header.php (wordpress with magento blocks):
    http://screencast.com/t/6BOEgtqOr75w
    functions.php (calls js for wordpress):
    http://screencast.com/t/rkdzNKeUp
    portfolio.php:
    http://screencast.com/t/Bh5LnvQZn4M5

    I tried be as detailed as possible, I hope this helps. Any direction at the least would be great! Thanks again, this product has allowed great things to happen.

    http://wordpress.org/extend/plugins/magento-wordpress-integration/

  2. jamesckemp
    Member
    Plugin Author

    Posted 1 year ago #

    Hi ciampam,

    Are you using jQuery noconflict for you isotope code?

    Thanks,
    James

  3. ciampam9
    Member
    Posted 1 year ago #

    I'm not 100% sure, how can I find out

  4. ciampam9
    Member
    Posted 1 year ago #

    Its not loading the custom jquery. I tried adding the custom jquery code to the wordpress custom jquery file but no dice. When the item gets added to the cart everything below my header on wordpress is lost. I have also tried adding the custom jquery code for the cart directly into catalog/header.phtml
    wordpress end when item in cart is added:
    http://screencast.com/t/FWa1Iai5
    (there is a dropdown that animated via jquery and lists products in the cart. this will still show up in wordpress but no jquery)

    without an item in the shopping cart on wordpresss:
    http://screencast.com/t/WYtAcif9VG86

    dropdown in magento:
    http://screencast.com/t/SZ9Fqkeisl

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic