| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Display Wholesale price | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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.
__________________
Gold 4.1.6 |
|||||||
#2
|
|||||||
|
|||||||
![]() Anyone? please...
__________________
Gold 4.1.6 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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:
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.
__________________
-matt version 4.1.5 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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.
__________________
Gold 4.1.6 |
|||||||
#5
|
|||||||
|
|||||||
![]() 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.
__________________
-matt version 4.1.5 |
|||||||
#6
|
|||||||
|
|||||||
![]() Very cool; This is goin gto help me tremendously...
Thank you!
__________________
Gold 4.1.6 |
|||||||
#7
|
|||||||
|
|||||||
![]() 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:
Code:
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.
__________________
Gold 4.1.6 |
|||||||
#8
|
|||||||
|
|||||||
![]() 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.
__________________
-matt version 4.1.5 |
|||||||
|
|||
X-Cart forums © 2001-2020
|