Page 72 of 186 FirstFirst ... 2262707172737482122172 ... LastLast
Results 711 to 720 of 1859
  1. #711

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by loosefast View Post
    Thanks for sharing. Looks like an effective solution.

    How are you getting the blog to show up on home page?
    Thanks, fun stuff!

    To get the blog on the home page I just added this code to the includes/languages/english/html_includes/define_main_page.php
    (edited directly and ftp'd <- I don't think you can add php code through the admin editing way)

    Code:
    <?php wp();
        require_once(ABSPATH . WPINC . '/template-loader.php');
    
        $template = new template_func(DIR_WS_TEMPLATE);?>
    That calls up wordpress with the first function. Then calls the template-loader.php file located in the wordpress-includes directory. This file has the $template variable in it, which is modified in the last statement so that ZenCart starts loading the rest of its template i.e. the right column.

    Mind you, I have made other edits that have helped to make this work properly, so if you run into an error if you try this, let me know the error.

  2. #712

    Default Re: Wordpress On Zencart / Released

    It is possible to have the Wordpress header load in the Zen Cart header.

    The gist of it is that you add get_header(); between the stylesheets and javascript in html_includes.php file.

    After that has been done, you take get_header(); out of all your themes page, archive, single, index files. You may need to modify header.php in that directory to work correctly.

  3. #713
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: Wordpress On Zencart / Released

    Hi All,
    I have just installed WOZ and most of it is working great. I had to do a little to get it working but all is well.

    An UGLY problem has showed up. I remember this problem from my early days and trying to install WOZ.

    Clicking on a manufacturer name takes you to all products by that manufacturer. The user is then presented with a "Filter List" drop down menu. Selecting an option from the Filter List Drop Down doesn't take you to products it instead takes you to the blog.

    Why?

    Thanks in Advance,
    John
    Last edited by bumba000; 3 Apr 2009 at 06:38 PM.

  4. #714
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by rainthebat View Post
    Whole Wordpress blog on main Zen Cart page (Wordpress 2.7.4 / ZenCart 1.3.8):
    fabricstashinc.com
    Two questions:
    1. Are you using the WOZ add-on without the sideboxes??
    2. Am I seeing the version of WOrdPres you are using correctly?? (it is the older version of WordPress right??)

  5. #715
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by rainthebat View Post
    Thanks, fun stuff!

    To get the blog on the home page I just added this code to the includes/languages/english/html_includes/define_main_page.php
    (edited directly and ftp'd <- I don't think you can add php code through the admin editing way)

    Code:
    <?php wp();
        require_once(ABSPATH . WPINC . '/template-loader.php');
     
        $template = new template_func(DIR_WS_TEMPLATE);?>
    That calls up wordpress with the first function. Then calls the template-loader.php file located in the wordpress-includes directory. This file has the $template variable in it, which is modified in the last statement so that ZenCart starts loading the rest of its template i.e. the right column.

    Mind you, I have made other edits that have helped to make this work properly, so if you run into an error if you try this, let me know the error.
    You can add following code to define main page to call posts from wordpress mod
    Code:
    <?php
    require('./wp-blog-header.php');
    ?><?php
    $posts = get_posts('numberposts=3'); // change to whatever number of posts to show
    foreach($posts as $post) :
    setup_postdata($post);
    ?>
    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    <?php the_date(); ?>
    <?php the_content(); ?><hr />
    <?php endforeach; ?>
    as shown at
    http://dezinashop.com/demo/index.php

  6. #716
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Wordpress On Zencart / Released

    Misty at the risk of stating the obvious.. In theory, I could use this code on any of the define pages, correct??

    Quote Originally Posted by misty View Post
    You can add following code to define main page to call posts from wordpress mod
    Code:
    <?php
    require('./wp-blog-header.php');
    ?><?php
    $posts = get_posts('numberposts=3'); // change to whatever number of posts to show
    foreach($posts as $post) :
    setup_postdata($post);
    ?>
    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    <?php the_date(); ?>
    <?php the_content(); ?><hr />
    <?php endforeach; ?>
    as shown at
    http://dezinashop.com/demo/index.php

  7. #717
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Wordpress On Zencart / Released

    In theory, I could use this code on any of the define pages, correct??
    define pages 2, 3 and or 4, yes..not sure how it would work
    on the others...or could use mod, define pages generator,
    and add another custom page...

  8. #718
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    814
    Plugin Contributions
    0

    Default Re: Wordpress On Zencart / Released

    Anyone??

    Quote Originally Posted by bumba000 View Post
    Hi All,
    I have just installed WOZ and most of it is working great. I had to do a little to get it working but all is well.

    An UGLY problem has showed up. I remember this problem from my early days and trying to install WOZ.

    Clicking on a manufacturer name takes you to all products by that manufacturer. The user is then presented with a "Filter List" drop down menu. Selecting an option from the Filter List Drop Down doesn't take you to products it instead takes you to the blog.

    Why?

    Thanks in Advance,
    John

  9. #719

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by DivaVocals View Post
    Two questions:
    1. Are you using the WOZ add-on without the sideboxes??
    2. Am I seeing the version of WOrdPres you are using correctly?? (it is the older version of WordPress right??)
    1. I do have two sideboxes enabled (as a test sort of) on the lower right side of the webpage. They are 'blog links' and 'blog pages'. Mostly this page is relying on the wordpress sidebar itself (displayed in the blog part) as opposed to the sidebar appearing in the zencart sideboxes. On another note, when I enabled the sidebar sidebox, it would display the sidebar in the sidebox (on the left column) and would not display the blog in the page.

    2. This uses the latest version of Wordpress 2.7.1

    Blog on main page.

  10. #720

    Default Re: Wordpress On Zencart / Released

    Quote Originally Posted by bumba000 View Post
    Selecting an option from the Filter List Drop Down doesn't take you to products it instead takes you to the blog.
    Why?
    After a little research, that one is beyond me, but I have some clue as to what is going on. The blogs address usually has a yoursite.com/? question mark at the beginning. You probably know that that is the beginning of a query string. In the past I've had software that also used a query string, and when clicking on a link you would instead be brought to the blog. But in this case the alpha sorter doesn't seem to be using a query string, so that may not be it.

    How do you have your blog set up? Same directory/different?

    Here is some code that renders the alpha sorter from modules/product_listing_alpha_sorter.php:

    Code:
    (isset($_GET['alpha_filter_id']) ? $_GET['alpha_filter_id']
    That question mark in the middle may be causing problems. Perhaps it could be replaced with && . I would experiment on that.

    I've got zen cart and blog in different locations on a test site (with all the zen cart test products on) and the alpha sorter does not interfere. However I do not have any sideboxes for wp enabled, so maybe thats why.

 

 

Similar Threads

  1. EasyPopulate 4.0 Support Thread
    By chadderuski in forum Addon Admin Tools
    Replies: 3668
    Last Post: 7 Jun 2025, 11:33 PM
  2. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 20
    Last Post: 23 Apr 2025, 08:49 AM
  3. WordPress® for Zen Cart® (wp4zen) [Support Thread]
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 109
    Last Post: 1 Dec 2024, 01:36 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