Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Hightlight Wholesale Price on Product Listing Page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-26-2011, 02:44 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default 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
__________________
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
Reply With Quote
  #2  
Old 09-26-2011, 05:39 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
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.
Reply With Quote
  #3  
Old 09-26-2011, 05:43 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 09-26-2011, 05:48 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,471
 

Default 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
__________________
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
Reply With Quote
  #5  
Old 09-26-2011, 05:59 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:01 AM.

   

 
X-Cart forums © 2001-2020