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)
-   -   Wholesale only price problem (https://forum.x-cart.com/showthread.php?t=7852)

Ian 06-01-2004 06:43 AM

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 :D

adpboss 06-28-2004 03:34 PM

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}

Ian 06-28-2004 03:47 PM

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 :D

chilll33 01-06-2005 09:54 AM

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.

adpboss 01-06-2005 09:57 AM

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.

chilll33 01-06-2005 11:41 AM

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.

adpboss 01-06-2005 11:43 AM

Sorry, maybe someone else could help you with that. I'm not sure what it would be.

mffowler 01-18-2005 05:59 AM

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

x-online 01-27-2005 03:05 PM

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.


All times are GMT -8. The time now is 04:49 PM.

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