Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
hira
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();
}
}
?>
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
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
hira
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.
Re: Wordpress On Zencart / Released
The solution of the shipping estimator problem with WOZ v1.5
Please add the part of this color:smile:
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')) {
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
hira
The solution of the shipping estimator problem with WOZ v1.5
Please add the part of
this color:smile:
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?
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
gee38l
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)??
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
hira
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]
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')) {
Re: Wordpress On Zencart / Released
Thanks Hira, That seem to fix the problem.
Re: Wordpress On Zencart / Released
Quote:
Originally Posted by
gee38l
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.:smile: