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

Wholesale only price problem

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-01-2004, 06:43 AM
 
Ian Ian is offline
 

Senior Member
  
Join Date: Sep 2002
Location: Adelaide, South Australia
Posts: 127
 

Default Wholesale only price problem

Has anyone got over this problem?

I am setting up a cart for a wholesale only company. They want everyone to see all products but no prices. They will issue user accounts to those that can buy wholesale and therefore see wholesale prices. I set up all the products with a zero value but because the wholesale price is higher than the zero retail nothing shows up. As soon as I enter a retail price higher than a wholesale price it displays correctly.

Does anyone have a tweak for this so I can get this working correctly?

Heres hoping
__________________
_____________________________________

4.6.6 Gold Plus
and 4.7.4 Gold
MySQL server 5.6.29
PHP 5.5.34
Reply With Quote
  #2  
Old 06-28-2004, 03:34 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Did you get this solved?

My solution would be to use an {if} statement around the pricing display in product.tpl and products.tpl.

You would have to wrap the regular pricing as well as the quantity discount pricing statements in code similar to this

{if login eq ""}Contact us for wholesaler pricing{else} SHOW PRICING{/if}
Reply With Quote
  #3  
Old 06-28-2004, 03:47 PM
 
Ian Ian is offline
 

Senior Member
  
Join Date: Sep 2002
Location: Adelaide, South Australia
Posts: 127
 

Default

Thanks, I did get around it. The only problem I hit was the client didn't have any retail prices and didn't want to display anything to a non- wholesale visitor. I got it to display "Wholesale Only" in place of a retail price but I had to make every retail price $1000 as when I set them to zero no wholesale price would display. It seemed that because the wholesale price was higher than the zero retail it wouldn't display to wholesale users so, we had to bump it up to a silly price for all so they would display. I am sure there could have been a better way but the client wanted it quick and it's working very well as it is.

Thanks again
__________________
_____________________________________

4.6.6 Gold Plus
and 4.7.4 Gold
MySQL server 5.6.29
PHP 5.5.34
Reply With Quote
  #4  
Old 01-06-2005, 09:54 AM
 
chilll33 chilll33 is offline
 

Senior Member
  
Join Date: Oct 2003
Location: Miami, FL
Posts: 100
 

Default

Quote:
Originally Posted by adpboss
Did you get this solved?

My solution would be to use an {if} statement around the pricing display in product.tpl and products.tpl.

You would have to wrap the regular pricing as well as the quantity discount pricing statements in code similar to this

{if login eq ""}Contact us for wholesaler pricing{else} SHOW PRICING{/if}

Is it possible to do something like this but with the retail prices?

I want the customer to see prices when logged in only.
__________________
Core version:
5.3.2.7

PHP:
5.6.29
MySQL server:
5.5.5-10.0.27-MariaDB-cll-lve  (InnoDB engine support enabled)
Web server:
Apache
Operating system:
Linux
XML parser:
found
GDLib:
found (0)
Translation driver:
Database
Curl version:
7.29.0
Reply With Quote
  #5  
Old 01-06-2005, 09:57 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Code:
{if $login ne ""}SHOW STUFF TO LOGGED IN CUSTOMER{else}Please login to view pricing or place an order.{/if}

or if you just want it hidden

Code:
{if $login ne ""}SHOW STUFF TO LOGGED IN CUSTOMER{/if}

That will work.
Reply With Quote
  #6  
Old 01-06-2005, 11:41 AM
 
chilll33 chilll33 is offline
 

Senior Member
  
Join Date: Oct 2003
Location: Miami, FL
Posts: 100
 

Default

Quote:
Originally Posted by adpboss
Code:
{if $login ne ""}SHOW STUFF TO LOGGED IN CUSTOMER{else}Please login to view pricing or place an order.{/if}

or if you just want it hidden

Code:
{if $login ne ""}SHOW STUFF TO LOGGED IN CUSTOMER{/if}

That will work.

Thanks abpboss, I will try that. One more question, do you know how this can be done only for some products maybe using the extra fields? I know it could be done with the older 3.xx versions, but on 4.xx I could not figure this one out.

Thanks.
__________________
Core version:
5.3.2.7

PHP:
5.6.29
MySQL server:
5.5.5-10.0.27-MariaDB-cll-lve  (InnoDB engine support enabled)
Web server:
Apache
Operating system:
Linux
XML parser:
found
GDLib:
found (0)
Translation driver:
Database
Curl version:
7.29.0
Reply With Quote
  #7  
Old 01-06-2005, 11:43 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Sorry, maybe someone else could help you with that. I'm not sure what it would be.
Reply With Quote
  #8  
Old 01-18-2005, 05:59 AM
 
mffowler mffowler is offline
 

X-Adept
  
Join Date: Mar 2003
Location: Melbourne, Australia
Posts: 811
 

Default

How about using "Memberships"? I was disappointed with "moderated" memberships, as then all users had to be members (there are no non-moderated defaults) and verified to buy. But, I made the memberships non-moderated and now no one can actually sign-up as a member, but they must be assigned membership in the admin. That would fit wholesale customers. Thus, non-moderated meberships still count, but the user doesn't ever see them.

You could then have displayed "" or whatever by using membership and login statements, like in /main/register_account.tpl for example ...
Code:
{if $userinfo.login eq $login and $login and $userinfo.usertype ne "C"}

- mike
__________________
4.1.9
Reply With Quote
  #9  
Old 01-27-2005, 03:05 PM
 
x-online x-online is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Australia, Sydney
Posts: 189
 

Default Try this

I have done this before.

i do not want to give the site out... please PM for the site (and including your website in the PM, i dont' want to give out to may be one of my dealer)

We have 4 pricing levels.

If you are end-user see nothing
if enduser registered (trying....) still see nothing (auto-assigned membership to 'end-user')
if the end user is requested for wholesaler membership then he send a requst to us.. then we assigned him to ... membeship we think it is for him.

each membership can see their own pricing and won't be able to see other pricing. (except end-user... se no pricing)

The mod i created is also be able to 'import pricing' for each membership levels. (this is great coz we have more than 1000 of products)

Let me know if you want something like this...

unfortunately.. there will be some charge tho.. if you required.

It took me more than weeks to get it done.
__________________
X-Cart version 4.x (Most likely will be the latest version)
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 05:55 PM.

   

 
X-Cart forums © 2001-2020