Zen Cart Logo
Forums / All Other Contributions/Addons / Wordpress On ZC [Support Thread]

Wordpress On ZC [Support Thread]

Views: 620,391

Results 1,701 to 1,720 of 1,861
18 Sep 2010, 01:20
#1701
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Wordpress On ZC [Support Thread]

I also disabled my shipping methods one by one to see if one was causing a problem but i dont think any of them were. Also downloaded the latest version of woz and reinstalled everything but that didnt work either. There is no problem with the shipping estimator when you are logged in just if your a visitor?

18 Sep 2010, 03:01
#1702
hira avatar

hira

Zen Follower

Join Date:
Jun 2004
Location:
Japan
Posts:
169
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

gee38l:

Thanks for the reply.

I added the red into my includes/init_includes/init_woz.php, Now it seems the shipping estimator doesnt load any more i just get a blank page. Any other suggestions?

A mistake was discovered on the last cord.
I'm sorry.:(

includes\init_includes\init_woz.php

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') {
18 Sep 2010, 03:08
#1703
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

hira:

A mistake was discovered on the last cord.
I'm sorry.:(

includes\init_includes\init_woz.php

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
<?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();
  }
}
?>
18 Sep 2010, 04:48
#1704
hira avatar

hira

Zen Follower

Join Date:
Jun 2004
Location:
Japan
Posts:
169
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

Oh, it is so.
I confuse you and am sorry.
Because I contribute it after confirming it, give me time

18 Sep 2010, 06:43
#1705
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

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.

18 Sep 2010, 13:24
#1706
hira avatar

hira

Zen Follower

Join Date:
Jun 2004
Location:
Japan
Posts:
169
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

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

  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

if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true' && !defined('WOZ_IGNORE_FLAG')) {
18 Sep 2010, 13:51
#1707
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

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

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
> 
> ```
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?

18 Sep 2010, 14:03
#1708
hira avatar

hira

Zen Follower

Join Date:
Jun 2004
Location:
Japan
Posts:
169
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

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)??

19 Sep 2010, 08:09
#1709
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

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.

http://www.truwater.com.au/images/Shipping Rate.png
19 Sep 2010, 10:12
#1710
hira avatar

hira

Zen Follower

Join Date:
Jun 2004
Location:
Japan
Posts:
169
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

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

includes\init_includes\init_woz.php

  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

if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true' && !defined('WOZ_IGNORE_FLAG')) {
19 Sep 2010, 10:37
#1711
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Thanks Hira, That seem to fix the problem.

19 Sep 2010, 11:24
#1712
hira avatar

hira

Zen Follower

Join Date:
Jun 2004
Location:
Japan
Posts:
169
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

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:

19 Sep 2010, 11:37
#1713
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

hira:

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:

No problem hopefully it will help others with the same problem.

One last thing currently my blog address is /wordpress/ and my install is /blog/ is it possible to change the zen cart URL from wordpress to something else?

19 Sep 2010, 12:41
#1714
hira avatar

hira

Zen Follower

Join Date:
Jun 2004
Location:
Japan
Posts:
169
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

gee38l:

No problem hopefully it will help others with the same problem.

One last thing currently my blog address is /wordpress/ and my install is /blog/ is it possible to change the zen cart URL from wordpress to something else?

Thank you.
It was good that a problem was settled.
Is an SEO module Ceon URI Mapping?

19 Sep 2010, 12:45
#1715
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Yeah im using Simple SEO URL

20 Sep 2010, 14:45
#1716
hira avatar

hira

Zen Follower

Join Date:
Jun 2004
Location:
Japan
Posts:
169
Plugin Contributions:
1

Re: Wordpress On ZC [Support Thread]

gee38l:

Yeah im using Simple SEO URL

I tried it in a demonstration site.
http://demo.s-page.net/woz/en_v139/ZC_ROOT/blog/

I edit two files.
In addition, setting of Zen-Cart and WordPress is necessary.

includes\classes\ssu\cores\link.php

				// if this page is our exclude list, let zen handle the job
				if($page == 'wordpress') $page = 'blog';
				if($this->checkPageExcludedList($page)) return false;				

includes\init_includes\overrides\init_sanitize.php
(copy from includes\init_includes\init_sanitize.php)

/**
 * We do some checks here to ensure $_GET['main_page'] has a sane value
 */
  if (!isset($_GET['main_page']) || !zen_not_null($_GET['main_page'])) $_GET['main_page'] = 'index';
  if (!isset($_GET['main_page']) || $_GET['main_page'] == 'blog') $_GET['main_page'] = 'wordpress';

  if (!is_dir(DIR_WS_MODULES .  'pages/' . $_GET['main_page'])) {

WordPress Admin Setting
General Settings > Site address (URL) > Zen-Cart URL/blog
Permalink Settings Day and name etc...

Zen-Cart Admin Setting
Configuration > Simple SEO URL > Exclude list
Remove wordpress.

24 Sep 2010, 02:55
#1717
gun520rose avatar

gun520rose

New Zenner

Join Date:
Sep 2010
Posts:
1
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

i use some other theme,but i find the html have two title,two keyword,two description in wordpress; woo,i think i must make some mistake.

i read the text in woz,and i really can't understand somewhere . example
replace wp_head() to woz_wp_head(). where find woz_wp_head()?

my english is not bad...:cry: can you talk in detail,thanks...

To use other themes?
--------------------------------
I customized the woz_default theme for this modules based on a default theme of WordPress. I put down the point that I customized.
Please compare woz_default with woz_default_old.

It is copied text between <head></head> of [header.php] to [includes/templates/MY_TEMP/common/html_header.php]
The thing defined in Zen-Cart does not copy it. ex)<title,<meta http-equiv
and replace wp_head() to woz_wp_head().

Delete text between <html></head> and <body> of [header.php]. 
Delete </body> and </html> of [footer.php].

The style sheet of the theme comes to be read by the above, too. 

The style sheet is read in the other pages of Zen-Cart. Therefore the indication of other pages is just confused, too. 
The item which I want to apply only in a page of WordPress please add "#wordpressDefault" in front of the item.

In search of "get_sidebar();" in the theme file, please comment out entirely.
27 Sep 2010, 14:12
#1718
pkfrizzlefry avatar

pkfrizzlefry

New Zenner

Join Date:
Mar 2005
Posts:
5
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

I installed WOZ, i though everything was ok but i noticed many customers and no payments...I went through the payment and i noticed checkout issues

My issue was once the person checked out AT paypals site then was re-directed back to my site i would get
10571 address missing error and the order was never completed

After doing much debugging i finally narrowed it down to WOZ and specifically init_woz.php and the initlization of WP

I added something like this to the top of it (so the WP() doesnt get executed on payment processing)

I replaced

if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true')

with

if (defined('WOZ_CONFIG_STATUS') && WOZ_CONFIG_STATUS == 'true' && $_GET['main_page']=='wordpress')

And it all jives now...wish i figured it out earlier!!

BTW I dont use any sideboxes so this might be a fix only if your not using sideboxes...not sure

Pete

28 Sep 2010, 18:48
#1719
perfumbg avatar

perfumbg

Zen Follower

Join Date:
May 2010
Posts:
192
Plugin Contributions:
5

Re: Wordpress On ZC [Support Thread]

Hi I installed WOZ and after all is done i get this *** An above file is not be it for overriding from template_default on a server. 7.With the above installation is completion. Please check the operation from the following URL. Thank you. http://parfumite.biz/index.php?main_page=wordpress** on the top of my page...
I'll be very hapy if somebody know's how to remove it.

Txs in advance.

13 Oct 2010, 23:12
#1720
gee38l avatar

gee38l

Zen Follower

Join Date:
Jul 2008
Posts:
362
Plugin Contributions:
0

Re: Wordpress On ZC [Support Thread]

Hi All,

I installed this module about 4 weeks ago and all seem to be working fine untill yesterday when i found out google had de indexed 900 links on my webpage all with 500 errors. After investigation from a third party developer we narrowed it down to the way wordpress was implemented with the woz addon.

It seems that the html_header code was redirecting google to wordpress and as a result did not find any of the existing products or links that had already been indexed.

We had a period of about a week where crawlers had not been to my site and the only results in google related to my word press blog. Not even the homepage came up on google anymore.

Im not sure if it was a mistake on my side with the installation but after uninstalling the module i am finally back on track and wont be loosing any business anymore.

I just wanted to let people know my experience with this module and to see if anyone else found this?