Free shipping costs as of a certain amount

  • Posts: 41
  • Thank you received: 0
12 years 2 months ago #66205

Hi,

to get this done, I defined a shipping method that taxes shipping costs when the maximum price is not reached.
My question concerns this maximum price: trial and error seems to point out that an amount WITH TVA needs to be specified here. Is this correct? Also, what happens if a company does not need to pay taxes because they are in another EU country and have an European TVA number. I have TVA rules for that in place, but I'm a bit lost as to what logic is used in relation to the maximum price defined in the manual shipping method.

Thx again for this magnificent product,

BC

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #66257

Hi,
I didn't really understood your question, can you please tell me what you exactly want to know ? :).

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 0
12 years 2 months ago #66267

OK Mohamed, no problem, allow me to elaborate.

The webshop I'm building now wants to encourage buyers to spend more than, let's day, 100 euros by making the shipping costs free with an amount bigger than 100 euros excluding TVA.
I created two rules for that:

1. < 99 euro -> shipping cost of 10 euro
2. > 100 euro -> no shipping cost

I noticed for this to be effective, I had to use a maximum and minimum price INCLUDING TVA for the rules (or shipments methods).
No problem there.
BUT.
This webshop also aims at customers outside of our country and those to not have to pay TVA when they have a European TVA number.
So for them it should not be a maximum and minimum price including TVA, but I can't seem to differentiate into those.

Is this more clear?

thx,

BC

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #66342

Thanks it's more clear now :), I think that you should :

- Create 2 shipping method for taxed country
- Create 2 shipping method for non-taxed country

You'll be able to do it by using the zone option of you shipping method configuration.

Last edit: 12 years 2 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 0
12 years 2 months ago #66364

That would be a nice solution, except for the fact that for the same country you have customers with and without tax. This depends on whether they have or do not have a European tax number or not.
That is the root of the problem: if the shipping costs rule is determined on the assumption that people always pay taxes, it is wrongly calculated for those who do not have to pay taxes.

BC

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
12 years 2 months ago #66404

Then my solution would be to :
- Edit your "'Your Hikashop'\plugins\hikashopshipping\manual\manual.php" file
- Change the lines :

$price_all = $order->total->prices[0]->price_value_with_tax;
		if(isset($order->full_total->prices[0]->price_value_without_shipping_with_tax)){
			$price_all = $order->full_total->prices[0]->price_value_without_shipping_with_tax;
		}
by
$price_all = $order->total->prices[0]->price_value;
		if(isset($order->full_total->prices[0]->price_value_without_shipping)){
			$price_all = $order->full_total->prices[0]->price_value_without_shipping;
		}
Hope this will help you.

Last edit: 12 years 2 months ago by Mohamed Thelji.

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 0
12 years 2 months ago #67366

This seems to be working, thx !!!
Maybe this should be a default way of handling shipping cost, my situation is probably a reflection of what is to be considered common.

cheers,

BC

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
12 years 2 months ago #67476

We were actually doing it the other way around before and several users requested that we do it the way we do now.
I'm afraid that we'll have you add YAO (yet another option) for that.

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 0
12 years 1 month ago #68387

On second thought the altered code does not seem to work as expected. The amount that should be checked is the amount VAT excluded. Is Mohammed's code then still accurate? Shouldn't it be something like "price_value_without_shipping_without_tax" ?

thx,

BC

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 0
12 years 1 month ago #68392

OK, something sinks in now: there are two manual.php plugins. Is 'Your Hikashop' in "'Your Hikashop'\plugins\hikashopshipping\manual\manual.php" the root of the Joomla install?

thx,

BC

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 0
12 years 1 month ago #68397

More info: bij changing the manual.php in joomla_root/plugins/hikashopshipping/manual the code only seems succesfull in this case:

- other EU country while having a VAT number (VAT not added)

in these cases:

- own country (VAT included)
- other EU country while not having a VAT number (VAT added)

it does not work and the VAT included price is used for the calculation. So it seems the code looks at the wrong number.

What do I need to change to have the price VAT excluded be looked at for the shipment price calculation?

cheers,

BC

Last edit: 12 years 1 month ago by bcnx.

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 0
12 years 1 month ago #68508

OK, I think I found it by manipulating the code as such:

$price_all = $order->total->prices[0]->price_value;
                if(isset($order->full_total->prices[0]->price_value_without_shipping_with_tax)){
                        $price_all = $order->full_total->prices[0]->price_value;
                }

To whom it may concern :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum