Plugin Directory

Changeset 711608


Ignore:
Timestamp:
05/12/2013 05:17:18 AM (13 years ago)
Author:
allprowebtools
Message:

bug fixes from first launch

Location:
allprowebtools-shopping-cart-ecommerce-tools/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • allprowebtools-shopping-cart-ecommerce-tools/trunk/allprowebtools.php

    r711589 r711608  
    5353
    5454    //ajax
    55     define('AJAXLOADPOSTURL', WP_PLUGIN_URL."/".dirname( plugin_basename( __FILE__ ) ) );
     55//  define('AJAXLOADPOSTURL', WP_PLUGIN_URL."/".dirname( plugin_basename( __FILE__ ) ) );
     56    define( 'APWT_PLUGIN_PATH', plugin_dir_path(__FILE__) );
     57    define( 'APWT_AJAX_POST_URL', plugin_dir_url(__FILE__) );
    5658
    5759    function ajaxloadpost_enqueuescripts() {
    58         wp_enqueue_script('ajaxloadpost', AJAXLOADPOSTURL.'/js/ajaxloadpost.js', array('jquery'));
     60        wp_enqueue_script('ajaxloadpost', APWT_AJAX_POST_URL.'js/ajaxloadpost.js', array('jquery'));
    5961        wp_localize_script( 'ajaxloadpost', 'ajaxloadpostajax', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ) ) );
    6062    }
  • allprowebtools-shopping-cart-ecommerce-tools/trunk/includes/apwt-cart.php

    r711600 r711608  
    100100    }
    101101
    102     require_once('wp-content/plugins/APWT-Cart/templates/shopping-cart.php');
     102    require_once(APWT_PLUGIN_PATH.'templates/shopping-cart.php');
     103
    103104}
    104105
     
    188189
    189190    //if not validated - show error msg and ask for re-entry
    190     require_once('wp-content/plugins/APWT-Cart/templates/secure-buyers.php');
     191    require_once(APWT_PLUGIN_PATH.'templates/secure-buyers.php');
    191192}
    192193
  • allprowebtools-shopping-cart-ecommerce-tools/trunk/templates/secure-buyers.php

    r711600 r711608  
    11<?php
    22    //christine hacking
    3         require_once('wp-content/plugins/APWT-Cart/includes/apwt-cart.php');
     3        require_once(APWT_PLUGIN_PATH.'includes/apwt-cart.php');
    44?>
    55<!-- begin main content -->
Note: See TracChangeset for help on using the changeset viewer.