Page 171 of 186 FirstFirst ... 71121161169170171172173181 ... LastLast
Results 1,701 to 1,710 of 1859
  1. #1701
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by hira View Post
    A mistake was discovered on the last cord.
    I'm sorry.

    includes\init_includes\init_woz.php

    Code:
    if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
    }
    if(
    $_GET['main_page'] == 'popup_shipping_estimator';
    ){
    // do nothing
    }else
    if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true') {
    Ok i added the new code you posted above and it breaks my website it wont load anymore. After removing the ; it fixes it and my website loads again.

    Here is a copy of my init_woz.php file:
    PHP Code:
    <?php
    /**
     * Do not delete this copyright link/text when you use free edition. 
     * When you want to delete it, please purchase a professional edition. 
     * Please understand that I spend time on development.
     * 
     * @package    WordPress On ZenCart
     * @author     HIRAOKA Tadahito (hira)
     * @copyright  Copyright 2008-2010 S-page
     * @copyright  Copyright 2003-2007 Zen Cart Development Team
     * @copyright  Portions Copyright 2003 osCommerce
     * @link       http://www.s-page.net/products/62.html
     * @license    http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     */
      
    if (!defined('IS_ADMIN_FLAG')) {
       die(
    'Illegal Access');
      }
    if(
    $_GET['main_page'] == 'popup_shipping_estimator';
    ){
    // do nothing
    }else
    if (
    defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true') {
      
    $woz_dir "";
      
    $sql "select woz_dir
                from " 
    TABLE_WOZ "
                where woz_language = 0"
    ;
      
    $woz_query $db->Execute($sql);
      
    $woz_dir $woz_query->fields['woz_dir'];

      
    $sql "select woz_dir
                from " 
    TABLE_WOZ "
                where woz_language = '" 
    $_SESSION['languages_id'] . "'";
      
    $woz_query $db->Execute($sql);
      if (
    $woz_query->RecordCount() > 0) {
        
    $woz_dir $woz_query->fields['woz_dir'];
      }

      
    define('ABSPATH'$woz_dir);
      
    define('WP_USE_THEMES'true);
      
    $wp_did_header true;
      
      require_once(
    ABSPATH 'wp-config.php');
      
    wp();

      
    /*$i = strlen(DIR_WS_CATALOG);
      $req = substr($_SERVER['REQUEST_URI'],$i,1);
      if($req == '?'){
        $_GET['main_page'] = FILENAME_WORDPRESS;
      }*/

      
    if ($_GET['main_page'] == FILENAME_WORDPRESS && isset($_GET['feed']) && ($_GET['feed'] == 'rss2' || $_GET['feed'] == 'comments-rss2')) {
        
    gzip_compression();
        require_once(
    ABSPATH WPINC '/template-loader.php');
        exit();
      }
    }
    ?>

  2. #1702
    Join Date
    Jun 2004
    Location
    Japan
    Posts
    169
    Plugin Contributions
    1

    Default Re: Wordpress On Zencart / Released

    Oh, it is so.
    I confuse you and am sorry.
    Because I contribute it after confirming it, give me time
    http://www.s-page.net/en/
    I develop the module which Zen-Cart integrates with other CMS. (WordPress and XOOPS)
    It may be funny English, but please endure it. (I am weak in English)

  3. #1703
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by hira View Post
    Oh, it is so.
    I confuse you and am sorry.
    Because I contribute it after confirming it, give me time
    Ok Thanks. It seems very odd that on your demo site it seems to work fine.

  4. #1704
    Join Date
    Jun 2004
    Location
    Japan
    Posts
    169
    Plugin Contributions
    1

    Idea or Suggestion Re: Wordpress On Zencart / Released

    The solution of the shipping estimator problem with WOZ v1.5
    Please add the part of this color

    includes\init_includes\init_woz.php

    Code:
      if (!defined('IS_ADMIN_FLAG')) {
       die('Illegal Access');
      }
    
    if(substr($_GET['main_page'],0,6) == 'popup_'){
      define('WOZ_IGNORE_FLAG', true);
    }else
    if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true') {
    includes\templates\template_default\templates\tpl_modules_wordpress_header.php

    Code:
    if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true' && !defined('WOZ_IGNORE_FLAG')) {
    http://www.s-page.net/en/
    I develop the module which Zen-Cart integrates with other CMS. (WordPress and XOOPS)
    It may be funny English, but please endure it. (I am weak in English)

  5. #1705
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by hira View Post
    The solution of the shipping estimator problem with WOZ v1.5
    Please add the part of this color

    includes\init_includes\init_woz.php

    Code:
      if (!defined('IS_ADMIN_FLAG')) {
       die('Illegal Access');
      }
    
    if(substr($_GET['main_page'],0,6) == 'popup_'){
      define('WOZ_IGNORE_FLAG', true);
    }else
    if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true') {
    includes\templates\template_default\templates\tpl_modules_wordpress_header.php

    Code:
    if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true' && !defined('WOZ_IGNORE_FLAG')) {
    Thanks for the reply!

    I made the changes and the popup shipping estimator seems to be working now for visitors.

    The only think that still not working is the shipping cost being displayed in the shopping cart which is with the total price. Any ideas on this?

  6. #1706
    Join Date
    Jun 2004
    Location
    Japan
    Posts
    169
    Plugin Contributions
    1

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by gee38l View Post
    Thanks for the reply!

    I made the changes and the popup shipping estimator seems to be working now for visitors.

    The only think that still not working is the shipping cost being displayed in the shopping cart which is with the total price. Any ideas on this?
    Thank you for confirmation.
    The popup does not have any problem,
    but is it that it is not calculated in a shipping page(index.php?main_page=checkout_shipping)??
    http://www.s-page.net/en/
    I develop the module which Zen-Cart integrates with other CMS. (WordPress and XOOPS)
    It may be funny English, but please endure it. (I am weak in English)

  7. #1707
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by hira View Post
    Thank you for confirmation.
    The popup does not have any problem,
    but is it that it is not calculated in a shipping page(index.php?main_page=checkout_shipping)??
    Im using the mod Shipping Rates in Cart which displays the shipping in the shopping cart.

    Here is an image with what im referring to outlined in red.

    [scr]http://www.truwater.com.au/images/Shipping Rate.png[/scr]

  8. #1708
    Join Date
    Jun 2004
    Location
    Japan
    Posts
    169
    Plugin Contributions
    1

    Default Re: Wordpress On Zencart / Released

    I see. Roger.
    You had better invalidate it rather in the shopping cart page.

    includes\init_includes\init_woz.php

    Code:
      if (!defined('IS_ADMIN_FLAG')) {
       die('Illegal Access');
      }
    
    if(
      substr($_GET['main_page'],0,6) == 'popup_' or 
      substr($_GET['main_page'],0,9) == 'checkout_' or 
      $_GET['main_page'] == 'shopping_cart'
      ){
      define('WOZ_IGNORE_FLAG', true);
    }else
    if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true') {
    includes\modules\sideboxes\wp_***.php

    Code:
    if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true' && !defined('WOZ_IGNORE_FLAG')) {
    http://www.s-page.net/en/
    I develop the module which Zen-Cart integrates with other CMS. (WordPress and XOOPS)
    It may be funny English, but please endure it. (I am weak in English)

  9. #1709
    Join Date
    Jul 2008
    Posts
    362
    Plugin Contributions
    0

    Default Re: Wordpress On Zencart / Released

    Thanks Hira, That seem to fix the problem.

  10. #1710
    Join Date
    Jun 2004
    Location
    Japan
    Posts
    169
    Plugin Contributions
    1

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by gee38l View Post
    Thanks Hira, That seem to fix the problem.
    In fact, it should be taken the cause of the error seriously.
    I coped by the method that did not display WOZ in a specific page first of all.
    A report, thank you.
    http://www.s-page.net/en/
    I develop the module which Zen-Cart integrates with other CMS. (WordPress and XOOPS)
    It may be funny English, but please endure it. (I am weak in English)

 

 

Similar Threads

  1. EasyPopulate 4.0 Support Thread
    By chadderuski in forum Addon Admin Tools
    Replies: 3610
    Last Post: 1 May 2024, 08:30 AM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 19
    Last Post: 23 Jan 2023, 08:04 AM
  3. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 107
    Last Post: 13 Jan 2019, 12:32 PM
  4. PurpleShades Support Thread
    By kobra in forum Addon Templates
    Replies: 122
    Last Post: 18 May 2011, 07:18 PM
  5. ZJ Black 2 support thread
    By Liamv in forum Addon Templates
    Replies: 1
    Last Post: 15 Feb 2010, 02:53 PM

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