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)
-   -   Product markup percentage based on user level (https://forum.x-cart.com/showthread.php?t=29383)

gerrick@ncs-online.com 03-05-2007 06:06 AM

Product markup percentage based on user level
 
I'd like to know all of the places that i might need to edit in the Smarty templates to allow me to markup products based on user level.

For example. A basic customer will have a standard markup of 20%, an advanced customer will be at 10%.



Thanks in advance!

X-Cart version 4.1.6

carpeperdiem 03-05-2007 06:24 AM

Re: Product markup percentage based on user level
 
thread moved to Product Management
-----------

Personally, I would price the products at "regular" or "retail" selling price, then give a membership level a discount. Works the same, but you are not asking your cart to calculate markup, which can vary based on your cost of goods. Instead, you establish your selling price, and give discounts as you see appropriate. AND x-cart does this automatically.

Doing it this way, your "basic" customer pays full price, and "advanced" gets a discount. If you want to play with your customer's minds, you can set "retail" pricing, put the product on sale by 10%, so everyone's base price is already a discount, and then your advanced group gets a bigger discount. This is a stock feature. Will this work for you?

gerrick@ncs-online.com 03-05-2007 06:38 AM

Re: Product markup percentage based on user level
 
Thanks for the quick reply!

I may not have included enough information. I understand what you're describing. However, I should have stated that there can be three or more membership levels including but not limited to:

GSA
Advanced Customer
Regular Customer

... more to be added when necessary.

gerrick@ncs-online.com 03-05-2007 07:16 AM

Re: Product markup percentage based on user level
 
After some testing. I see how the discounted price comes into effect for multiple accounts. However, i'd like this visible when viewing the product before adding it to the cart.

Thanks!

balinor 03-05-2007 08:28 AM

Re: Product markup percentage based on user level
 
Please don't double post, I have removed your second post on this topic. Thanks!

gerrick@ncs-online.com 03-05-2007 09:41 AM

Re: Product markup percentage based on user level
 
Can you move this thread to the template section.

balinor 03-05-2007 10:06 AM

Re: Product markup percentage based on user level
 
Done

gerrick@ncs-online.com 03-05-2007 12:33 PM

Re: Product markup percentage based on user level
 
I've done some more research. I've enabled debugging console and viewed the active variasbles on the product page. I noticed that there's a product array with all of the information for the product. However, I do not see where it has a discounted price.

I was thinking I could just use a conditional statement to find out what membership type the person was and then use a {math equation="" to do the markup.

However this would mean that any time I wanted to change the markup percentage it would have to be changed everywhere it has been used.

Another note: I saw that if you go to the cart there's another array this time called products. It has the discount price in there. That's exactly what i want to be on my product detail page.

Thanks in advance!!

gerrick@ncs-online.com 03-06-2007 07:29 AM

Re: Product markup percentage based on user level
 
Any thoughts?

gerrick@ncs-online.com 03-09-2007 05:22 AM

Re: Product markup percentage based on user level
 
bump

gerrick@ncs-online.com 03-12-2007 04:57 AM

Re: Product markup percentage based on user level
 
bump :(


All times are GMT -8. The time now is 08:37 PM.

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