Jump to content

Calculating the total price in the controller for each product combination


trigloxix

Recommended Posts

Hello, Alló,

 

Situation: I use product attributes(combinations) to offer specific version of my product to the client.

Let's say I have T-Shirts in size M, L, XL. For each T-shirt size the price is different.

 

IS. By default the t-shirt size is to be chosen from the

<select>

tag on the product page (product.tpl). While changing the size, the displayed price changes.

 

The new price is computed in the product.js file in the

function

findCombination(firstTime).

 

SHOULD BE. I want to have all sizes and prices displayed in the table, like:

size______price(net)____price (with tax)

_M_________20_________32

_L_________23_________35

_XL________26_________38

 

MY THOUGHTS: I'm looking for the code in the classes/controllers where the total price is computed(similar to what findCombination function in the product.js file does). It would also be important to have total price without and with taxes.

Then I can send these prices using smarty and display them in the table.

If you know where in the controllers/classes the total price is computed, please share it with me.

Thank you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...