![]() |
Display Wholesale price
I need to display both the default and wholesale price for a product regardless of weather or not a user gets the wholesale price...
Can someone help please... Basically on prducts and product page: display like this: $20.00 Price; $17:50 Wholsale When user checks out then they get the price that's associated with their group. Thanks in advance. |
Re: Display Wholesale price
Anyone? please...
|
Re: Display Wholesale price
Try turning on your debug console (edit the /smarty.php file and change the line $smarty->debug_tpl = "file:debug_templates.tpl"; to $smarty->debug_tpl = "file:debug.tpl"; then you'll be able to see the variables, not just the files)
Then browse to the product details page, that page does include the value you want, then search for that value in the console, you'll see it way down in a multidimensional array, its under $variants for me: Code:
{$variants}Array (3) You may have to loop through some stuff to get at it, but thats where it is. And you will probably have to do some more includes on your products/products_t page because its not available to that page by default, you can see what files are being used as well in the debug console. |
Re: Display Wholesale price
Do I have to change any other settings in the store to see this? I changed smarty.php as you specified - but I don't see the variables anywhere.
Thanks in advance. |
Re: Display Wholesale price
OH yeah, sorry, go into the admin area under general settings and check the box that says 'enable debug console', and you also have to have your popup blocker (if any) set to allow because it comes in a javascript popup.
|
Re: Display Wholesale price
Very cool; This is goin gto help me tremendously...
Thank you! |
Re: Display Wholesale price
I'm almost there - just need a little more guidance;
I got it to do exactly what I need but it only works for registered users - basically when a user is logged in they see waht I want: Quote:
Quote:
Code:
{include file="currency.tpl" value=$product.list_price} {$lng.regionUSA} - Code:
{include file="currency.tpl" value=$product.list_price} {$lng.regionUSA} - I'm obviously not retreiving the variable $variants.wholesale.price out correctly - I think - Is my syntax correct? or do I have to add anything to the variable because it's part of a multidimensional array? Thanks in advance for your help. |
Re: Display Wholesale price
Not sure, the array is going to be pieced together differently depending on the variants and other things as well. If its working for logged in people, the syntax is probably correct. Make sure that the data you want is even available to non logged in customers, typically it does not show you the wholesale price unless you're logged in as an approved wholesale member.
|
All times are GMT -8. The time now is 04:48 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.