Forum Replies Created

Viewing 14 replies - 46 through 59 (of 59 total)
  • Thread Starter batman42ca

    (@batman42ca)

    I should clarify. I know where to see the mailing list id’s for myself. What I mean is, someone selects a program from my form and the name of the program is also the name of the mailing list. I could create my own look up table of hard coded numbers to translate a program name to a mailing list id, but I’d rather be able to use a mailing list name to look up the mailing list id in the database.

    Should I call alo_em_get_mailinglists() and loop through the returned array looking for an entry matching the mailing list name and get the mailing list id from that?

    Thread Starter batman42ca

    (@batman42ca)

    Thanks for the response. That’s very helpful.

    One further question. Only knowing the name of the mailing list, where can I look up the id of the list? The list ids will be dependent on the order in which they were added to WordPress. I’d rather not hard code those numbers. I like to use the name of the mailing list instead.

    I’ve poked around the WordPress database tables but I haven’t found where that information is stored yet.

    Thread Starter batman42ca

    (@batman42ca)

    Never mind. I had to give up on this and use a different plugin instead.

    Thread Starter batman42ca

    (@batman42ca)

    Never mind. I just figured it out. I need to declare my object as global not just where I use it but also where I instantiated it in header.php

    Thread Starter batman42ca

    (@batman42ca)

    Please do not forget to mark it as resolved

    Oops. Sorry about that.

    I also added a review. 5 stars.

    Thread Starter batman42ca

    (@batman42ca)

    Now I get it. I dragged this widget:

    Prestashop Integration Module

    .. to the side bar, selected “blockcart” as the module and “Top of Pages” as the Hook.

    Now everything seems to be working.

    Thank you very much for all your help and of course for sharing this WordPress plugin. Now that I can see it working, this is great!

    Thread Starter batman42ca

    (@batman42ca)

    “cart_block” is the cart block (or the basket) where you put the product inside to buy them (generally on the right columns).

    Sounds like I need to do something to get the shopping cart basket to appear on my WordPress site. I’m guessing that doesn’t happen automatically and I’ve missed a step somewhere?

    Thread Starter batman42ca

    (@batman42ca)

    Ok, I understand this now:

    For the products to be visible, you need first to choose active products under your post setting.

    So, I added a couple of product ids to a blog post and now the product appear in the side bar. BUT, on a page (rather than a blog post) and on a blog post that isn’t linked to any active products, I will still get just a title in the side bar with no products under it. It would be better if there was no title when there are no products linked to a blog post. Is there a way for me to hide the title when there are no linked products?

    I also moved this : [ps_product_list] from a wordpress page to a wordpress blog post but I still get the same error when I click add to cart.

    TypeError: $(...).offset(...) is null
    if ($('#cart_block').offset().top && $('#cart_block').offset().left)
    ajax.cart.js line 219

    It seems to be because there is no element with an id of “cart_block” which I confirmed by using Firefox to view source and then I searched for “cart_block”

    Where is “cart_block” supposed to be?

    Thread Starter batman42ca

    (@batman42ca)

    For the products to be visible, you need first to choose actives products under your post setting.

    I don’t understand what that means. What active products settings? Where?

    Do never do a copy, or your WordPress administration may not work anymore !

    I’m still having the same error after I changed the way I replaced jquery.js.

    I created my own template, based on twentytwelve, with a custom functions.php that looks like this:

    function current_jquery($version) {
      wp_deregister_script('jquery');
    
      wp_register_script('jquery',
        get_theme_root_uri().'/my-twentytwelve/jquery.js',
        false, $version);
    }
    add_action( 'wp_head', current_jquery('1.8.3' ) );

    Can you the post the head section of your blog frontpage ?

    The head section of my front page looks like this:

    <!DOCTYPE html>
    <!--[if IE 7]>
    <html class="ie ie7" lang="en-US">
    <![endif]-->
    <!--[if IE 8]>
    <html class="ie ie8" lang="en-US">
    <![endif]-->
    <!--[if !(IE 7) | !(IE 8)  ]><!-->
    <html lang="en-US">
    <!--<![endif]-->
    <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width" />
    <title>Sample Page | Test Site</title>
    <link rel="profile" href="https://gmpg.org/xfn/11" />
    <link rel="pingback" href="https://localhost/myphp/wordpress/w/xmlrpc.php" />
    <!--[if lt IE 9]>
    <script src="https://localhost/myphp/wordpress/w/wp-content/themes/twentytwelve/js/html5.js" type="text/javascript"></script>
    <![endif]-->
    <meta name='robots' content='noindex,nofollow' />
    <link rel="alternate" type="application/rss+xml" title="Test Site &raquo; Feed" href="https://localhost/myphp/wordpress/w/?feed=rss2" />
    <link rel="alternate" type="application/rss+xml" title="Test Site &raquo; Comments Feed" href="https://localhost/myphp/wordpress/w/?feed=comments-rss2" />
    <link rel="alternate" type="application/rss+xml" title="Test Site &raquo; Sample Page Comments Feed" href="https://localhost/myphp/wordpress/w/?feed=rss2&page_id=2" />
    <link rel='stylesheet' id='admin-bar-css'  href='https://localhost/myphp/wordpress/w/wp-includes/css/admin-bar.min.css?ver=3.5.1' type='text/css' media='all' />
    <link rel='stylesheet' id='twentytwelve-fonts-css'  href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext' type='text/css' media='all' />
    <link rel='stylesheet' id='twentytwelve-style-css'  href='https://localhost/myphp/wordpress/w/wp-content/themes/my-twentytwelve/style.css?ver=3.5.1' type='text/css' media='all' />
    <!--[if lt IE 9]>
    <link rel='stylesheet' id='twentytwelve-ie-css'  href='https://localhost/myphp/wordpress/w/wp-content/themes/twentytwelve/css/ie.css?ver=20121010' type='text/css' media='all' />
    <![endif]-->
    <script type='text/javascript' src='https://localhost/myphp/wordpress/w/wp-includes/js/comment-reply.min.js?ver=3.5.1'></script>
    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://localhost/myphp/wordpress/w/xmlrpc.php?rsd" />
    <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="https://localhost/myphp/wordpress/w/wp-includes/wlwmanifest.xml" />
    <link rel='next' title='Products Page' href='https://localhost/myphp/wordpress/w/?page_id=4' />
    <meta name="generator" content="WordPress 3.5.1" />
    <link rel='canonical' href='https://localhost/myphp/wordpress/w/?page_id=2' />
    <script type="text/javascript">
      var baseDir = 'https://localhost/myphp/prestashop/p/';
      var baseUri = '/myphp/prestashop/p/';
      var static_token = '66699001af95224ba32f8e59ed597d59';
      var token = '641b522c8edee7accc8febca17d0d30e';
      var priceDisplayPrecision = 2;
      var priceDisplayMethod = 0;
      var roundMode = 2;
    </script>
    <link href="/myphp/prestashop/p/themes/myCustomTheme/css/global.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blockbestsellers/blockbestsellers.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blockpermanentlinks/blockpermanentlinks.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blockviewed/blockviewed.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blockcart/blockcart.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blockcontact/blockcontact.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blockspecials/blockspecials.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blockcurrencies/blockcurrencies.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blocknewproducts/blocknewproducts.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blockmyaccountfooter/blockmyaccount.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blockuserinfo/blockuserinfo.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blocklanguages/blocklanguages.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blocktags/blocktags.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/js/jquery/plugins/autocomplete/jquery.autocomplete.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/themes/myCustomTheme/css/product_list.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blocksearch/blocksearch.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/favoriteproducts/favoriteproducts.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/homefeatured/homefeatured.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blocknewsletter/blocknewsletter.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/paypal/css/paypal.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blocktopmenu/css/superfish-modified.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/myphp/prestashop/p/modules/blockreinsurance/style.css" rel="stylesheet" type="text/css" media="all" />
    <script type="text/javascript" src="/myphp/prestashop/p/js/jquery/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/myphp/prestashop/p/js/jquery/plugins/jquery.easing.js"></script>
    <script type="text/javascript" src="/myphp/prestashop/p/js/tools.js"></script>
    <script type="text/javascript" src="/myphp/prestashop/p/modules/blockcart/ajax-cart.js"></script>
    <script type="text/javascript" src="/myphp/prestashop/p/themes/myCustomTheme/js/tools/treeManagement.js"></script>
    <script type="text/javascript" src="/myphp/prestashop/p/js/jquery/plugins/autocomplete/jquery.autocomplete.js"></script>
    <script type="text/javascript" src="/myphp/prestashop/p/modules/favoriteproducts/favoriteproducts.js"></script>
    <script type="text/javascript" src="/myphp/prestashop/p/modules/blocktopmenu/js/hoverIntent.js"></script>
    <script type="text/javascript" src="/myphp/prestashop/p/modules/blocktopmenu/js/superfish-modified.js"></script>
    <script type="text/javascript">
      var favorite_products_url_add = 'https://localhost/myphp/prestashop/p/index.php?process=add&fc=module&module=favoriteproducts&controller=actions';
      var favorite_products_url_remove = 'https://localhost/myphp/prestashop/p/index.php?process=remove&fc=module&module=favoriteproducts&controller=actions';
    
    </script>
    
    <link rel="alternate" type="application/rss+xml" title="my test shop" href="https://localhost/myphp/prestashop/p/modules/feeder/rss.php?id_category=0&orderby=position&orderway=asc" /><script type="text/javascript">
    $(document).ready( function() {
    
      $('#payment_paypal_express_checkout').click(function() {
        $('#paypal_payment_form').submit();
        return false;
      });
    
      $('#paypal_payment_form').live('submit', function() {
        var nb = $('#quantity_wanted').val();
        var id = $('#idCombination').val();
    
        $('#paypal_payment_form input[name=quantity]').val(nb);
        $('#paypal_payment_form input[name=id_p_attr]').val(id);
      });
    
      function displayExpressCheckoutShortcut() {
        var id_product = $('input[name="id_product"]').val();
        var id_product_attribute = $('input[name="id_product_attribute"]').val();
    
        $.ajax({
          type: "GET",
          url: baseDir+'/modules/paypal/express_checkout/ajax.php',
          data: { get_qty: "1", id_product: id_product, id_product_attribute: id_product_attribute },
          cache: false,
          success: function(result) {
            if (result >= '1')
              $('#container_express_checkout').slideDown();
            else
              $('#container_express_checkout').slideUp();
            return true;
          }
        });
      }
    
      $('select[name^="group_"]').change(function () {
        displayExpressCheckoutShortcut();
      });
    
      $('.color_pick').click(function () {
        displayExpressCheckoutShortcut();
      });
    
      var modulePath = 'modules/paypal';
      var subFolder = '/integral_evolution';
      var fullPath = baseDir + modulePath + subFolder;
      var confirmTimer = false;
    
      if ($('form[target="hss_iframe"]').length == 0) {
        if ($('select[name^="group_"]').length > 0)
          displayExpressCheckoutShortcut();
        return false;
      } else {
        checkOrder();
      }
    
      function checkOrder() {
        confirmTimer = setInterval(getOrdersCount, 1000);
      }
    
      });
    
    </script> <style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
    <style type="text/css" media="print">#wpadminbar { display:none; }</style>
    <style type="text/css" media="screen">
      html { margin-top: 28px !important; }
      * html body { margin-top: 28px !important; }
    </style>
    Thread Starter batman42ca

    (@batman42ca)

    Prestashop uses jQuery 1.7.2, WordPress uses 1.8.3.

    I copied the Prestashop jQuery core file, to WordPress, disabled all plugins but the error remains.

    Also, when I dragged the Prestashop Integration Products Widget over to my side bar, all I see is the title I chose. Nothing else appears under the title.

    Thread Starter batman42ca

    (@batman42ca)

    After disabling the php code widget I have this error:

    TypeError: $(…).offset(…) is null

    if ($(‘#cart_block’).offset().top && $(‘#cart_block’).offset().left)

    ajax.cart.js line 219

    Thread Starter batman42ca

    (@batman42ca)

    On second thought, is it a simple matter of ensuring I’m not listed as the author of any post or page? Will I only be notified if I’m the author of a post or a page even if I’m an admin?

    Thread Starter batman42ca

    (@batman42ca)

    On second thought, it might also be true that whatever is calling the filemanager, needs to pass the “Type” url parameter with a capital “T” instead of a lowercase “t”.

    I’m not sure which is wrong, the caller or upload.php

    Thread Starter batman42ca

    (@batman42ca)

    I found the cause but the plugin needs to be updated to fix it.

    In wp-content\plugins\ckeditor-for-wordpress\filemanager\connectors\php\upload.php

    On line 44, this:

    $sType = isset( $_GET[‘Type’] ) ? $_GET[‘Type’] : ‘Files’ ;

    …should be this:

    $sType = isset( $_GET[‘type’] ) ? $_GET[‘type’] : ‘Files’ ;

    “type” should be all lowercase

Viewing 14 replies - 46 through 59 (of 59 total)