Jump to content

calculating the sale price


gestioneserverphp

Recommended Posts

Hello everyone,

I am new to the forum and I thank in advance anyone who wants to help me in my work around this problem.

 

I try to explain as best as possible.

 

I would like to calculate the selling price of my shop starting with the purchase price by the supplier.

 

I give an example

 

ipod nano purchase price: 100 €

reloading of purchasing: 20%

 

here I put it in your /controllers/products/price.tpl an input box for the mark-up

 

<! - Change purchase price ->

 

<div class="input-group col-lg-2">

<span class="input-group-addon">{$currency->prefix}{$currency->suffix}</span>

<input maxlength="14" name="wholesale_price" id="wholesale_price" type="text" value="[spam-filter]toolsConvertPrice price=$product->wholesale_price}|string_format:$priceDisplayPrecisionFormat}" 

onchange="this.value = this.value.replace(/,/g, '.');" />

 

<span class="input-group-addon">charge</span>

<input maxlength="2" name="wholesale_price_charge" id="wholesale_price_charge" type="text" value="" />

<span class="input-group-addon">%</span>

 

 

</div>

 

<! - End purchase price modification ->

 

 

I wish by inserting the two values described above in form, was made the automatic calculation of the sale price excluding taxes.

 

I hope that this way is made also the automatic calculation of the field

Price taxes included.

 

 

Thank you for your attention and for the help or suggestion you want to give

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...