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

Product markup percentage based on user level

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-05-2007, 06:06 AM
 
gerrick@ncs-online.com gerrick@ncs-online.com is offline
 

Member
  
Join Date: Sep 2004
Posts: 23
 

Default 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
__________________
X-Cart version 4.1.6
PHP 5.1.1
MySQL server 5.0.27
MySQL client 4.1.7
Web server Microsoft-IIS/6.0
Operation system Windows
Reply With Quote
  #2  
Old 03-05-2007, 06:24 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default 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?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #3  
Old 03-05-2007, 06:38 AM
 
gerrick@ncs-online.com gerrick@ncs-online.com is offline
 

Member
  
Join Date: Sep 2004
Posts: 23
 

Default 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.
__________________
X-Cart version 4.1.6
PHP 5.1.1
MySQL server 5.0.27
MySQL client 4.1.7
Web server Microsoft-IIS/6.0
Operation system Windows
Reply With Quote
  #4  
Old 03-05-2007, 07:16 AM
 
gerrick@ncs-online.com gerrick@ncs-online.com is offline
 

Member
  
Join Date: Sep 2004
Posts: 23
 

Default 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!
__________________
X-Cart version 4.1.6
PHP 5.1.1
MySQL server 5.0.27
MySQL client 4.1.7
Web server Microsoft-IIS/6.0
Operation system Windows
Reply With Quote
  #5  
Old 03-05-2007, 08:28 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Product markup percentage based on user level

Please don't double post, I have removed your second post on this topic. Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 03-05-2007, 09:41 AM
 
gerrick@ncs-online.com gerrick@ncs-online.com is offline
 

Member
  
Join Date: Sep 2004
Posts: 23
 

Default Re: Product markup percentage based on user level

Can you move this thread to the template section.
__________________
X-Cart version 4.1.6
PHP 5.1.1
MySQL server 5.0.27
MySQL client 4.1.7
Web server Microsoft-IIS/6.0
Operation system Windows
Reply With Quote
  #7  
Old 03-05-2007, 10:06 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Product markup percentage based on user level

Done
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 03-05-2007, 12:33 PM
 
gerrick@ncs-online.com gerrick@ncs-online.com is offline
 

Member
  
Join Date: Sep 2004
Posts: 23
 

Default 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!!
__________________
X-Cart version 4.1.6
PHP 5.1.1
MySQL server 5.0.27
MySQL client 4.1.7
Web server Microsoft-IIS/6.0
Operation system Windows
Reply With Quote
  #9  
Old 03-06-2007, 07:29 AM
 
gerrick@ncs-online.com gerrick@ncs-online.com is offline
 

Member
  
Join Date: Sep 2004
Posts: 23
 

Default Re: Product markup percentage based on user level

Any thoughts?
__________________
X-Cart version 4.1.6
PHP 5.1.1
MySQL server 5.0.27
MySQL client 4.1.7
Web server Microsoft-IIS/6.0
Operation system Windows
Reply With Quote
  #10  
Old 03-09-2007, 05:22 AM
 
gerrick@ncs-online.com gerrick@ncs-online.com is offline
 

Member
  
Join Date: Sep 2004
Posts: 23
 

Default Re: Product markup percentage based on user level

bump
__________________
X-Cart version 4.1.6
PHP 5.1.1
MySQL server 5.0.27
MySQL client 4.1.7
Web server Microsoft-IIS/6.0
Operation system Windows
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:55 AM.

   

 
X-Cart forums © 2001-2020