X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Need Wholesale Prices to show on Prodicts LIST page (https://forum.x-cart.com/showthread.php?t=63549)

mcpilot 05-06-2012 07:50 AM

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?

cflsystems 05-06-2012 08:10 AM

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

mcpilot 05-06-2012 02:48 PM

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?

cflsystems 05-06-2012 08:41 PM

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

mcpilot 05-07-2012 05:38 AM

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.

totaltec 05-07-2012 06:23 AM

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

mcpilot 05-10-2012 06:16 AM

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?

HAS 07-18-2012 10:22 PM

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


All times are GMT -8. The time now is 07:06 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.