Post by URAGANU » Tue Mar 27, 2012 7:14 am

Hi Guys,

As you all know, OpenCart is forcing you to write the price without tax and it adds it for you automatically (if you select the tax). And many of us calculate the prices separately. Otherwise you must purchase all sorts of extensions and addons for one simple thing. Well I got tired to calculate the price without VAT every time I added a product.

And I came up with a simple solution for adding prices without tax, at the Price field, when adding the data. It's not automatic but semi-automatic (copy/paste)

Attached you will find a rar file with a html file inside. You can modify that file according to your country/needs. This should take exactly 3 minutes.

Here are the instructions:

1. Place the file vat.html in the root of you website/store.

2. Open with a HTML editor the file product_form.tpl from this location:
/admin/view/template/catalog

3. Search for "<?php echo $price; ?>" . You will find it around line 78/79.

4. Add the following code after it:

Code: Select all

<iframe src="../vat.html" height="29" width="600" frameborder="0"></iframe>
That line should look like this:

Code: Select all

<td><input type="text" name="price" value="<?php echo $price; ?>" /> <iframe src="../tva.html" height="29" width="600" frameborder="0"></iframe></td>
That's all! Try to edit your product! You must see the fields near "Price" field to calculate the price without VAT.
remove-vat.jpg

remove-vat.jpg (14.09 KiB) Viewed 1890 times

I tried to implement it in the code but it didn't work. Maybe someone will help with that and keep it simple.

Thanks and hope it will be useful.

Newbie

Posts

Joined
Tue Mar 27, 2012 6:45 am

Post by guntis.e » Tue Jun 26, 2012 6:43 am

Hi Uraganu,
Many of my customers had the same issue - they needed to calculate the price on caculator for each product and options.
So i made a module that adds a helper field for each price entry field. You can get it here: Price input helper

If you enter the price with tax there, it automatically will update product price entry field.
this is valid for options prices, discounts, special prices - everywhere where prices are.

This is first release of the product, commercial. At the time of this writing it cost 15usd. I feel it quite right amount comparing of what productivity you can gain if you need to enter

Longer description here: http://forum.opencart.com/viewtopic.php?f=123&t=68745

Guntis
Image Partneris.lv - opencart web site development and support


Active Member

Posts

Joined
Fri Jan 28, 2011 4:20 am

Post by URAGANU » Wed Jul 11, 2012 4:18 am

Well congrats for your module, I shared this for free and didn't have in mind to get money from people for that, even if I could do it.

Good luck.

Newbie

Posts

Joined
Tue Mar 27, 2012 6:45 am
Who is online

Users browsing this forum: No registered users and 26 guests