| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Need Wholesale Prices to show on Prodicts LIST page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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? |
|||||||
#2
|
|||||||||
|
|||||||||
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 |
|||||||||
#3
|
|||||||
|
|||||||
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? |
|||||||
#4
|
|||||||||
|
|||||||||
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 |
|||||||||
#5
|
|||||||
|
|||||||
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. |
|||||||
#6
|
|||||||||
|
|||||||||
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. |
|||||||||
#7
|
|||||||
|
|||||||
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? |
|||||||
#8
|
|||||||||
|
|||||||||
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 |
|||||||||
|
|||
X-Cart forums © 2001-2020
|