| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Hightlight Wholesale Price on Product Listing Page | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hi all ...
We have a client still using XC 4.1.x and uses the membership pricing facility (wholesale) quite extensively. They want to know if it's possible to highlight (or bold) prices on the product listing page to alert the customer that this is special price assigned to their membership level. Products that don't done have a wholesale price assigned will remain unchanged... Is this possible? Thanks a lot Shafiq
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() Its got to be possible, the system is after all checking their membership level, and reacting to it by changing the price. Now all you have to do is determine how it is doing that, and insert your bold text attribute if so.
I don't have 4.1.X anywhere, if you can provide the code controlling that section of the store, I could help more.
__________________
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. |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() You can use membershipid
{if $userinfo.membershipid ne ""} or {if $userinfo.membershipid ne "0"} - not sure which one will be for "all" then bold the price {/if} or check for $wholesale array if available on products list pages, the debug window should tell you
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Thanks for the help guys...
The above code will bold all prices (regardless if they are discounted or not). I'm looking for a way to bold prices which have ONLY been discounted/assigned a membership price (once the customer is logged in) I've enabled debug mode and don't see the $wholesale array and there doesn't seem to be anything within the $products array to tell if the product is discounted or not... Can I get the this information somehow and assigned it to a smarty variable? Cheers for the help again... Shafiq
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!) Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x Multiple Instances of X-Cart MySQL 5.6.37 CentOS 7.4 Chamber Internet - Lancashire, United Kingdom http://www.chamberelancs.co.uk |
|||||||||
#5
|
|||||||||
|
|||||||||
![]() Then you have to modify products.php and query pricing table to check if wholesale prices are available for the memebrshipid the user is assigned to
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
|||
X-Cart forums © 2001-2020
|