Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Displaying All User's Wishlists in Admin

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 05-20-2005, 09:17 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default

I'm really looking forward to it!
Thanks in advance, Carrie
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #32  
Old 05-30-2005, 05:43 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,063
 

Default

Available on my site now for free for 3.5.x and 4.0.x!

http://www.bcsengineering.com/store/customer/product.php?productid=116&MMCF_xf_wish

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #33  
Old 06-15-2005, 05:16 PM
 
Bella Forma Bella Forma is offline
 

Senior Member
  
Join Date: Nov 2004
Location: Australia
Posts: 150
 

Default

I have one minor issue with this but I am not sure if it's just my customised site that's causing the problem, not complaining too much though as it's free

All my products have variants of size/colour. In the Wishlist Viewer it will show the item for every single size/colour combination rather than just for the size/colour combination that has been selected.

Just thought you might want to know.
__________________
X-Cart Gold 4.0.12
X-AOM, X-RMA, X-FancyCat
Apache/Linux Server
PHP 4.3.8
Reply With Quote
  #34  
Old 06-15-2005, 05:44 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,063
 

Default

Thanks for the note. This was originally created for 3.3.5!! which seems so long ago.

I'll put it on our list to do some time.

Thanks for letting me know!

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #35  
Old 10-31-2005, 02:07 PM
 
fablot fablot is offline
 

Newbie
  
Join Date: Oct 2005
Posts: 2
 

Default

Displaying All Users Wish Lists in Admin 4.0.16
Here is the same solution for X-Cart 4.0.16


Change to module ../skin1/admin/menu.tpl
Code:

New module ../skin1/admin/main/adminwish.tpl

Code:
This page allows you to view all user's wishlists. {capture name=dialog} { include file="customer/main/navigation.tpl" } <table border="0" cellpadding="2" cellspacing="1" width="100%"> <tr class="TableHead"> <td valign=top>Name</td> <td valign=top>Products Desired</td> <td valign=top>Quantity</td> <td valign=top>Price Each</td> <td valign=top>Purchased</td> </tr> {section name=cust_num loop=$wl_data} <tr {cycle values=", class='TableSubHead'"}> <td valign=top align=left>{$wl_data[cust_num].firstname} {$wl_data[cust_num].lastname}</td> <td valign=top align=left>{$wl_data[cust_num].product}</td> <td valign=top align=center>{$wl_data[cust_num].amount}</td> <td valign=top align=right>${$wl_data[cust_num].price}</td> <td valign=top align=center>{$wl_data[cust_num].amount_purchased}</td> </tr> {/section} </table> { include file="customer/main/navigation.tpl" } {/capture} {include file="dialog.tpl" title="Wish Lists" content=$smarty.capture.dialog extra="width=100%"}

New module ../admin/adminwish.php

Code:
<? require "./auth.php"; require $xcart_dir."/include/security.php"; $objects_per_page = $config["Appearance"]["users_per_page_admin"]; # # Obtain wishlist from database # $wl_data = func_query("select $sql_tbl[customers].firstname, $sql_tbl[customers].lastname, $sql_tbl[products].productid, $sql_tbl[products].product,$sql_tbl[wishlist].amount, $sql_tbl[pricing].price, $sql_tbl[wishlist].amount_purchased from $sql_tbl[customers], $sql_tbl[wishlist], $sql_tbl[products], $sql_tbl[pricing] where $sql_tbl[wishlist].login=$sql_tbl[customers].login and $sql_tbl[wishlist].productid=$sql_tbl[products].productid and $sql_tbl[wishlist].productid=$sql_tbl[pricing].productid"); $total_items = count($wl_data); $total_nav_pages = ceil($total_items/$objects_per_page)+1; require $xcart_dir."/include/navigation.php"; if (is_array($wl_data)) $wl_data = array_slice($wl_data, $first_page, $objects_per_page);; $smarty->assign("navigation_script","adminwish.php?"); $location[] = array("All Wish-list"); $smarty->assign("location", $location); $smarty->assign("wl_data",$wl_data); $smarty->assign("main","adminwish"); @include $xcart_dir."/modules/gold_display.php"; func_display("admin/home.tpl",$smarty); ?>

Change to module ../skin1/single/home.tpl

Code:
{elseif $main eq "adminwish"} {include file="admin/main/adminwish.tpl"}

salutes and good job
Reply With Quote
  #36  
Old 11-03-2005, 09:06 PM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default

Hi fablot,
Thanks for posting the code
This code is perfectly working with version 4.0.12 also \

Thanks.
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #37  
Old 07-21-2006, 12:56 PM
 
mrkenzie mrkenzie is offline
 

Senior Member
  
Join Date: May 2006
Posts: 182
 

Default

Has anyone got this to work in 4.1.x? I keep getting the following output for adminwish.php:

Quote:
assign("navigation_script","adminwish.php?"); $location[] = array("All Wish-list"); $smarty->assign("location", $location); $smarty->assign("wl_data",$wl_data); $smarty->assign("main","adminwish"); @include $xcart_dir."/modules/gold_display.php"; func_display("admin/home.tpl",$smarty); ?>

Never mind, I fixed it:

Needed to be:
Code:
<?php
in the beginning (just in case anyone else has the same problem).

Thanks.
__________________
Mike Kenzie
X Cart Gold Ver. 4.1.3
X-RMA
X-AOM
X-Product Comparison
Reply With Quote
  #38  
Old 07-25-2006, 04:13 PM
 
jeanne jeanne is offline
 

Advanced Member
  
Join Date: Aug 2004
Posts: 85
 

Default variants

Has anyone gotten this to work properly with variants?
I like the way that it works in 4.1.2, but I can't seem to wrap my head around how to get it to work with variants in 4.0.17

Jeanne
4.0.17 Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:13 AM.

   

 
X-Cart forums © 2001-2020