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

Get Product Attribute +percentage to apply to total price

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-21-2017, 08:02 AM
 
npav npav is offline
 

Member
  
Join Date: Nov 2015
Posts: 15
 

Question Get Product Attribute +percentage to apply to total price

Hello everyone,

Just purchased X-Cart Business edition and after being away from X-Cart for about a year I am running into an issue I thought I had solved before.

I am in the product attributes tab and filling out pricing for Signage Plaques, and have made two attributes, size, and finish.

Size is a flat rate increase I can easily add as just +500 or whatever the price for that size is.

Finish, on the other hand, is a percentage increase ranging from +15% to +50% of the flat rate cost.

(see here: https://www.evernote.com/l/ANGGPR1mlYlNgJNsBQnbZe2EdVd80cXmvMs)

What I need is for the finish percentage to be applied on top of the size increase in price, instead of applying it to the default cost which is set to 0.

Any help would be great. Thanks!

EDIT: I understand product variants might be a possible solution, but there are many many sizes that need to be added and it would take ages to create every individual variant for every size / finish. I am OK with modifying code or modules if anyone has done it that way before.
__________________
X Cart 5.3.4.5
mountingstandoffs.com
Reply With Quote
  #2  
Old 04-24-2017, 02:17 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Get Product Attribute +percentage to apply to total price

At the moment the product price calculation logic is tricky because of all these taxes, surcharges, discounts and so on.
To simplify the logic X-Cart 5 does both fixed and percentage price increases in a single iteration, when the "final" price is not known yet. That's why it calculates the percentage from the base product price.
I think it is possible to create a custom module that changes the logic (perhaps, splitting the logic into two iterations), but I'm not sure how complex the changes could be.
Perhaps, going the "variant prices" way would be easier.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 04-25-2017, 11:12 AM
 
npav npav is offline
 

Member
  
Join Date: Nov 2015
Posts: 15
 

Default Re: Get Product Attribute +percentage to apply to total price

Thanks for your reply, it looks like variants might be the best way to go for now.
__________________
X Cart 5.3.4.5
mountingstandoffs.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 01:50 AM.

   

 
X-Cart forums © 2001-2020