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)
-   -   Hightlight Wholesale Price on Product Listing Page (https://forum.x-cart.com/showthread.php?t=61007)

chamberinternet 09-26-2011 02:44 AM

Hightlight Wholesale Price on Product Listing Page
 
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

totaltec 09-26-2011 05:39 AM

Re: Hightlight Wholesale Price on Product Listing Page
 
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.

cflsystems 09-26-2011 05:43 AM

Re: Hightlight Wholesale Price on Product Listing Page
 
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

chamberinternet 09-26-2011 05:48 AM

Re: Hightlight Wholesale Price on Product Listing Page
 
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

cflsystems 09-26-2011 05:59 AM

Re: Hightlight Wholesale Price on Product Listing Page
 
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


All times are GMT -8. The time now is 05:33 PM.

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