Forums / General Questions / Showing Featured Products On Outside Page

Showing Featured Products On Outside Page

Locked

Started by ft11 on 24 Aug 2007, 7:40 PM · Views: 1,204

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
24 Aug 2007, 7:40 PM
#1
ft11 avatar

ft11

New Zenner

Join Date:
Feb 2007
Posts:
16
Plugin Contributions:
0

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?

<?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  -->
24 Aug 2007, 9:12 PM
#3
ft11 avatar

ft11

New Zenner

Join Date:
Feb 2007
Posts:
16
Plugin Contributions:
0

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.