Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2007
    Posts
    16
    Plugin Contributions
    0

    Default Showing Featured Products On Outside Page

    I have a wordpress installed on the root, and my ZC cart in /root/shop.

    I looked around for a bit of code to pull the featured products from the DB, and display them on a WP page.

    i tried using this in the template file, but all that was output was "ILLEGAL ACCESS". As im sure you can tell, im not exactly a programmer. I was kinda guessing at what might work.

    Has anyone come across a way to do this? Or perhaps a way to call it directly from the Database?

    Code:
    
    <?php
    
     include('shop/includes/configure.php');
    
    require('shop/includes/autoload_func.php');
    
    
       $zc_show_featured = true;
      include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_FEATURED_PRODUCTS_MODULE));
     
    require(DIR_WS_MODULES . zen_get_module_directory('footer.php'));
    // the following IF statement can be duplicated/modified as needed to set additional flags
      if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
        $flag_disable_right = true;
      }
    
    ?>
    
    
    
    
    
    
    
    
    <!-- bof: featured products  -->
    <?php if ($zc_show_featured == true) { ?>
    
    <?php
    /**
     * require the list_box_content template to display the product
     */
      require($template->get_template_dir('tpl_columnar_display.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_columnar_display.php');
    ?>
    
    <?php } ?>
    <!-- eof: featured products  -->

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Showing Featured Products On Outside Page

    There is a "dynamic sidebox" mod in downloads that is designed for this kind of use.

  3. #3
    Join Date
    Feb 2007
    Posts
    16
    Plugin Contributions
    0

    Default Re: Showing Featured Products On Outside Page

    Thanks for the lead.

    Here is the module you suggested.

    I tweaked it up to make it work with my Wordpress install.

 

 

Similar Threads

  1. v151 All products and featured products no longer showing
    By mrcastle in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 3 Nov 2015, 07:38 PM
  2. v154 Featured Products - View All - showing blank page
    By BlackOrchidCouture in forum General Questions
    Replies: 2
    Last Post: 14 May 2015, 07:02 PM
  3. Featured products not showing on home page.
    By bx32 in forum Basic Configuration
    Replies: 37
    Last Post: 10 Nov 2011, 07:04 AM
  4. Show Featured Products on Missing Product Page showing products weird
    By margecc in forum Customization from the Admin
    Replies: 7
    Last Post: 24 Sep 2009, 05:01 AM
  5. Help needed with Featured Products showing on category page?
    By monkey8 in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 23 Feb 2009, 08:12 PM

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