Post by meubelpoten » Fri Aug 26, 2016 8:02 pm

Dear Members,

You can set in the OC admin to show your price incl. TAX.

Then the big price is shown as incl. tax and below the price excl tax in small font ( see attachment excl-Tax.png )

Is it possible to show this the other way around?

So show the price excl. tax in big font and below the price incl. tax in small font? ( see attachment incl-Tax.png )

So I want to show my customers the lowest price ( excl. Tax ) in big font first and below in small font the incl. Tax price.

Hopefully I make myself clear

Thank you very much for your reply.

Kind regards,

Tanja

Attachments

excl-TAX.png

excl-TAX.png (5.06 KiB) Viewed 3108 times

incl-TAX.png

incl-TAX.png (4.91 KiB) Viewed 3108 times


Newbie

Posts

Joined
Mon Aug 25, 2014 3:43 am

Post by IP_CAM » Sat Aug 27, 2016 1:39 am

/shop/catalog/language/english/product/product.php
Just as example, out of this:

Code: Select all

$_['text_tax']          = 'Ex Tax:'; 
just make this:

Code: Select all

$_['text_tax']        = '<span style="font-size:18px;color:#F40000;">Ex Tax:</span>';
to get, by example, what you see on the image below.!

Good Luck ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by meubelpoten » Mon Aug 29, 2016 7:12 pm

Dear Ernie,

Thank you very much! Your solutions isn't exactly what I want. Please see my topic again.

Thank you very much!

Newbie

Posts

Joined
Mon Aug 25, 2014 3:43 am

Post by OSWorX » Mon Aug 29, 2016 7:50 pm

Just to mention it here.

Do not know where your business / webstore is located, but in most of the countries the price incl. Tax is the only important for end consumers.
And if you want to sell into the European Community, this is required by Law: all prices have to show the 'end' price, means Net incl. VAT.
The net price can be displayed - just for useless information.

If you operate the store as B2B, the gross price is useless because only the net price is relevant.

In both cases you have to display how your prices are displayed (with or without VAT and Delivery Costs).

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by 3zzy » Tue Aug 30, 2016 2:03 am

IP_CAM wrote:/shop/catalog/language/english/product/product.php
Just as example, out of this:

Code: Select all

$_['text_tax']          = 'Ex Tax:'; 
just make this:

Code: Select all

$_['text_tax']        = '<span style="font-size:18px;color:#F40000;">Ex Tax:</span>';
to get, by example, what you see on the image below.!

Good Luck ;)
Ernie
.. but won't that be overwritten in an update? Have to use VQMOD right?

Newbie

Posts

Joined
Thu Aug 11, 2016 12:56 pm

Post by OSWorX » Tue Aug 30, 2016 3:17 am

3zzy wrote:
IP_CAM wrote:/shop/catalog/language/english/product/product.php
Just as example, out of this:

Code: Select all

$_['text_tax']          = 'Ex Tax:'; 
just make this:

Code: Select all

$_['text_tax']        = '<span style="font-size:18px;color:#F40000;">Ex Tax:</span>';
to get, by example, what you see on the image below.!

Good Luck ;)
Ernie
.. but won't that be overwritten in an update? Have to use VQMOD right?
Correct - while updates in OpenCart are neever a good idea (search this forum why).
And if no VQMod is installed (why should it ?), better to code it for the already existing, internal OCMod.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by IP_CAM » Tue Aug 30, 2016 4:19 am

Sorry, I misunderstud! ::)
You CANNOT display the price in ex. Tax and incl. Tax, by Default.
you would have to install a separate routine, calculating the second Price, i.E., incl.Tax.
---
Regarding the Modification, what I advised you to do, would then be something like this Mod below,
in OcMod Version, I assume, but since I don't have it even installed in my Test OC-2.2 either, I
have no way to know, if it works.
---
@ OSWorX; It would just take a 'decent' default Admin OcMod Manager/Moderator-Tool, to possibly
make it a little more popular. But as long as most users do not know, where to find what, and how or
if it works, to see, what's placed, on files and data, in the DB, and in the Modification Section, and
combined with a 'separate' Error-log, making Live easier for everybody, as long it will be second,
or no Choice, for many. AT least from my point of view, as Un_Coder by Nature and forever too!

It's like with Peter Norton's Commander, it made IBM-PC's polular, and workable, by just about anyone... ;)

But, as you mentioned, it really does not take TWO, to do exactly the same, just in a slightly
different way, and this at the same time and the same place as well. Such is just adding Weight,
and Time, and making things more complicated too. I fully agree on that.
---
Modified according osworx advise!
change_tax_font_size.ocmod.xml
---

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
  <name>change Tax Font Size</name>
  <code>ipcam_001_ocmod</code>
  <version>1.0</version>
  <author>Ernie - IP_CAM</author>
  <link>http://osworx.net/</link>
  <file path="catalog/language/english/product/" name="product.php">
	<operation>
      <search regex="true"><![CDATA['Ex Tax:';]]></search>
	<add position="replace"><![CDATA[
	'<span style="font-size:18px;color:#F40000;">Ex Tax:</span>';
	]]></add>
    </operation>
  </file>
</modification>
Good Luck ! ;)
Ernie
Last edited by IP_CAM on Tue Aug 30, 2016 4:46 am, edited 2 times in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by OSWorX » Tue Aug 30, 2016 4:36 am

IP_CAM wrote:Especially, since 10 white-space-gap's, in the Line, shown here:
$_['text_tax']----------= 'Ex Tax:';
may be different, in their amount of empty 'spaces', in another Subversion OC-2, and if there is
any difference, it will NOT work!
Therefore I would recommend to search for the text only: Ex Tax: and replace that value.
No matter how many spaces or tabs are used O0

Or (second option) to leave the original value and add a new variable at a position BELOW which exists for sure.
This will then override the former value.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by IP_CAM » Tue Aug 30, 2016 4:42 am

warum auch in die Ferne schweifen, wenn das Gute liegt so nah... :D
der ALZ..., nehm ich mal an! :crazy:
I have adjusted the OcMod accordingly!

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by meubelpoten » Tue Aug 30, 2016 10:18 pm

Thank you all for your comments! Appreciate it!

Kind regards,

Tanja

Newbie

Posts

Joined
Mon Aug 25, 2014 3:43 am
Who is online

Users browsing this forum: No registered users and 2 guests