Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Price Without Tax Crossed Out

Price Without Tax Crossed Out 11 years 5 months ago #928

My configuration screen does not have "standardized price" as indicated in the tutorial. Setting up all other parameters like the tutorial, the price is shown including the tax which I don't want. I want to show the price without the tax. See attached.

However, turning off all pricing parameters except "Salesprice without tax" shows the correct price but it is crossed out. See attached.

I would like to keep the capability of showing discounted items but if there is no discount, show the price without the sales tax included as appears to be the case with the "Hugo Boss Test4" of your demo site.
Attachments:
The topic has been locked.

Price Without Tax Crossed Out 11 years 5 months ago #933

Hi,

I truly understand your problem. It is big dilemma for us (VM Template Developers).
Because U.S. standard required to show TAX excluded prices in the website, on the other hand European standards required to show TAX included prices. We didn't know what to do with it, and didn't know which price should be crossed out. We just couldn't figured out a way to make it work okay in both situation.

I believe you want to show prices with TAX excluded in the entire website, and the TAX will appear only in checkout page (which is US standard), right?

If so; you can use this trick;
(since the TAX rate is same for all products)

Open the Virtuemart Backend and browse your TAX rule;
And change its "Type of Arithmetic Operation" to "TAX per Bill".

PastedImage103112632AM.gif


This will allow you to show the TAX in the shopping cart only, the prices in the website will remain untouched as if there is no TAX at all, and TAX will be added with a separated column in the price table (in shopping cart page).

This also will allow you to name your TAX rule, Such as:
- Tax %8,5 - Florida
(which will be set to Florida state only)

And you can create another rule and name it
- Tax 9.5% - California
(which will be set to California state only)

PastedImage103112631AM.gif


Since all states have different rates here in U.S, you can enter all states with different rates, and named them differently. Depends on the user's billing/shipping address information the TAX rule will applied for that individual user appropriately. This makes more sense, right?

So you can use the "Saleprice" price option, and it will be shown as TAX excluded.

You can change all the price labels (Sales price without tax:, Final Sales Price, Sales Price, Discount etc... through your Virtuemart language file easily depends on your needs. It would be better to change "Salesprice without tax" to "List Price" or "Market Price" or you can even leave it blank, so no price label will be shown. Which will make more sense..

The language INI file to change those price labels is located here:

ROOT/language/en-GB/en-GB.com_virtuemart.ini

(Changing price labels has also explained in TUTORIAL - page#3 )

Let me know if you need any further assistance.
The topic has been locked.

Price Without Tax Crossed Out 11 years 5 months ago #940

Thanks. I understand the dilemma you face as a developer.

I will keep your fix as I will be able to use it on other websites - but for the site I am currently developing, my client sells both taxable and non-taxable items ( tee-shirts which are taxable and event tickets which are not taxable). So, taxing the entire bill will not work in this particular instance.

I can work with everything as you have it set-up - I would just like to be able to remove the line through "Sales price without tax $x.xx" either by modifying the code or by CSS
Attachments:
The topic has been locked.

Price Without Tax Crossed Out 11 years 5 months ago #946

Hmm, if you have some non-TAX products, then yes you are right, "TAX per bill" wouldn't work for you.

To remove the line-through from the "sales price without TAX" You should better do it with CSS editing, instead of code modifications.Otherwise you would need to make edits too many PHP files, which will be more complicated.

For CSS editing, open this CSS file:

ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/assets/css/flexibleVM2Global.css

Scroll to the very bottom and add this CSS rule:
.line-through {
	text-decoration: none;
}
 
.line-through .basePriceWithTax {
	text-decoration: line-through;
}

NOTE: there are 2 different prices get line-through, if discount is applied, which are "basePriceWithTax" and "priceWithoutTax"
This above CSS rule will eliminate the line-through from priceWithoutTax but it will be kept the same for basePriceWithTax.

Cheers.
Please let me know if this doesn't work out.
The topic has been locked.

Price Without Tax Crossed Out 11 years 5 months ago #985

I'm actually quite interested in making the strikethrough work in my situation:

I have a shop that sells food and there is no tax on food. I've attached a sample of what we have but I'm unsure of how to do the following:

If an items is on sale (the override price) and the price is less than the Retail Price (Base Price/Final Price), how can I get the Retail Price to get a strike through? In code view I see:

<span class="price-crossed">
<div class="PricebasePriceWithTax" style="display : none;">
</span>
<div class="PricesalesPriceWithDiscount" style="display : none;">
<div class="PricepriceWithoutTax" style="display : block;">
Retail:
<span class="PricepriceWithoutTax">$7.49</span>
</div>
<div class="PricesalesPrice" style="display : block;">
Sale:
<span class="PricesalesPrice">$6.99</span>
</div>

Did I set up my system incorrectly to not have the Retail Price striked through if the Override price is less than the Retail Price?

Thank you.
Attachments:
The topic has been locked.

Price Without Tax Crossed Out 11 years 5 months ago #1000

Did you touch the PHP file at all?

Normally the you should have seen this:
<span class="line-through">
   <div class="PricepriceWithoutTax" style="display : block;">
      Retails:
      <span class="PricepriceWithoutTax">$7.49</span>
   </div>
</span>
 
   <div class="PricesalesPrice" style="display : block;">
   Sale:
      <span class="PricesalesPrice">$6.99</span>
</div>


The "<span class="line-through">....</span>" show up only if the PricepriceWithoutTax is larger than PricesalesPrice.
I don't know why it refuses to show up in your website.
The topic has been locked.

Price Without Tax Crossed Out 11 years 5 months ago #1165

I've made some modifications, but I guess I'm still not getting the results I want.

What I would like:
If there is a difference between the 'Retail' price (crossed out) and the 'Sale' price, then cross out the 'Retail' and display the 'Sale' price.

if there is no difference, only display the 'Retail' price (not crossed out) and not 'Sale'.
The topic has been locked.

Price Without Tax Crossed Out 11 years 5 months ago #1175

toad78

This is not a discussion forum. This is our support area.
Try forum.virtuemart.net I am sure someone will provide a solution about what you are looking for.

We are providing free support only for our VM Templates. You are not using one of our VM Template in your website.

This topic is closed.
The topic has been locked.
Time to create page: 0.096 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo