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

Need Wholesale Prices to show on Prodicts LIST page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-06-2012, 07:50 AM
 
mcpilot mcpilot is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Cincinnati
Posts: 68
 

Default Need Wholesale Prices to show on Prodicts LIST page

Folks,

I need the wholesale pricing to show on the list page.

If you look here: http://208.84.152.25/~polybagt/03X03-1-mil-Flat-Poly-Bag/

you will see the wholesale bulk pricing. I need that same list to show up here: http://208.84.152.25/~polybagt/1-mil/

It you look at product_details.tpl, you find this: {include file="customer/main/product_prices.tpl"} which displays bulk prices.

Simply moving taht code to products_list.tpl does not work.

After reading several threads on this I tried adding this:

{include file="customer/main/product_prices.tpl" product_wholesale=$product.wholesale} to products_list.tpl.

Still no luck.

I then tried this:

##########################################
# Display Lowest Wholesale Prices Start
if (!empty($products) && !empty($active_modules["Wholesale_Trading"]))
foreach($products as $i=>$p) {
$productid=$p["productid"];
include $xcart_dir."/modules/Wholesale_Trading/product.php";
if ($wresult)
$products[$i]["wholesale"] = $wresult;
}
# Display Lowest Wholesale Prices End
##########################################

to products.php

Still no luck.

Seems like it ought to be easier than this. I need to display these wholesale prices on the list page.

Can someone assist?
__________________
thebookfarminc.com
Version 4.7.0
Reply With Quote
  #2  
Old 05-06-2012, 08:10 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,078
 

Default Re: Need Wholesale Prices to show on Prodicts LIST page

These prices are not added to products array by default, you need to first modify php code to do that, then you can access them in smarty and show them on the page for each product. Seems like you started on it so you need to debug your code and see what it outputs
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 05-06-2012, 02:48 PM
 
mcpilot mcpilot is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Cincinnati
Posts: 68
 

Default Re: Need Wholesale Prices to show on Prodicts LIST page

Unfortunately, I can see the output but it's not telling me much. Meaning, I am not sure what I am looking at.

It should be easier than this. Has this issue NEVER been raised before?
__________________
thebookfarminc.com
Version 4.7.0
Reply With Quote
  #4  
Old 05-06-2012, 08:41 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,078
 

Default Re: Need Wholesale Prices to show on Prodicts LIST page

Well the logic behind is that this is products list page - the less info you have for each product the faster the page loads. And also - if you show all product details on that page what are you going to show on product details page? The listing pages are just that - to give general idea of the products and if customers need to know more they can go to details page.

Anyway - this and other request like showing extra fields, variants, options, etc. on products list pages has been raised before and you can find info on the forum. Still this has to be custom coded as it is not part of the default XC install
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 05-07-2012, 05:38 AM
 
mcpilot mcpilot is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Cincinnati
Posts: 68
 

Default Re: Need Wholesale Prices to show on Prodicts LIST page

Anyone else?

I need this done. I have my reasons, Steve. It's going to make the shopping experience for the particular product I am laying out much easier for the user. Trust me.

And trust me on this: I have searched the forums in detail and have not found a solution to this.

If there is anyone else that can offer a solution, please do so.
__________________
thebookfarminc.com
Version 4.7.0
Reply With Quote
  #6  
Old 05-07-2012, 06:23 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Need Wholesale Prices to show on Prodicts LIST page

I have done this before, but it has been years. Steve is right, this simply has to be custom coded.

Here is a thread that should get you looking in the right places:
http://forum.x-cart.com/showthread.php?t=43880&page=2&highlight=wholesale
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #7  
Old 05-10-2012, 06:16 AM
 
mcpilot mcpilot is offline
 

Advanced Member
  
Join Date: Dec 2004
Location: Cincinnati
Posts: 68
 

Default Re: Need Wholesale Prices to show on Prodicts LIST page

I am getting close. Here is what I have done so far:

In product_prices.tpl there was a "display:none" that I removed which finally showed the wholesale prices on the products list page.

the only problme is this: its showing, I believe, the first pull from the database on every product.

If you look at this page: http://208.84.152.25/~polybagt/1-mil/ on the debug console in the variables, you WILL SEE taht the array shows proper whjolesale procies being queried for each product in the list. However, those being queried are not being displayed. the same example template is pulling and displaying the proper prices on the products details page just not the list page.

Any thoughts as to why the array in the debug console is correct but th template is displaying the incorrect pricing?
__________________
thebookfarminc.com
Version 4.7.0
Reply With Quote
  #8  
Old 07-18-2012, 10:22 PM
  HAS's Avatar 
HAS HAS is offline
 

Member
  
Join Date: Apr 2010
Location: The Netherlands
Posts: 20
 

Default Re: Need Wholesale Prices to show on Prodicts LIST page

Maybe you can use this mod, works perfect.

http://www.bcsengineering.com/store/free-x-cart-wholesale_pricing-on-category_pages.html
__________________
http://www.batterijservice.nl
v.4.3.1

Xbanner | CDSEO | Marketing manager pro | Hidden Cat. | Glossary Tiptool | MM OPC | Social bookmarks | Advanced filter | Mega menu | Store Manager | Custom datafeed | MSP payment
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 03:06 PM.

   

 
X-Cart forums © 2001-2020