tijojoel Posted October 13, 2017 Share Posted October 13, 2017 I have two doubts regarding tax calculation in prestashop 1. In my site customer cannot enter the address instead of it, admin will create the address. If admin created two different address which address will prestashop take for tax calculation? 2. I want to know why the tax is calculated for each quantity price not total price in prestashop? Link to comment Share on other sites More sharing options...
NemoPS Posted October 15, 2017 Share Posted October 15, 2017 It's usually chosen in the bo, the default option should be based on the invoice address (chosen during the checkout).You can switch between that and shipping address from the tax tab, in the back office Link to comment Share on other sites More sharing options...
bellini13 Posted October 16, 2017 Share Posted October 16, 2017 1. In my site customer cannot enter the address instead of it, admin will create the address. If admin created two different address which address will prestashop take for tax calculation? Well it sounds like you have customized your store for this behavior. If a customer cannot provide an address during checkout, then how do you expect the customer to choose which address to use? 2. I want to know why the tax is calculated for each quantity price not total price in prestashop? Because it is possible to configure different tax rules for each product. It is also possible that the order total includes fees that are NOT taxable. 1 Link to comment Share on other sites More sharing options...
tijojoel Posted October 18, 2017 Author Share Posted October 18, 2017 (edited) @bellini13 - Actually in my store there is no shipping option, customer will not chose any address, for tax calculation only address needed( that address is each center address in which customer is related) and also I want to show customer original address so finally two address customer has 1. center address 2. customer home address, I want the center address to be configured for tax. so how will I achieve this feature? Edited October 18, 2017 by tijopromantia (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted October 18, 2017 Share Posted October 18, 2017 I don't know how you will achieve that customization, you appear to have customized your store, you will need to customize it further Link to comment Share on other sites More sharing options...
tijojoel Posted October 23, 2017 Author Share Posted October 23, 2017 @bellini13ok. Can you tell me one thing that when we assign multiple address( say three address for single customer), which address will it take assign the tax rule? Link to comment Share on other sites More sharing options...
bellini13 Posted October 23, 2017 Share Posted October 23, 2017 Normally that depends on your tax settings and which address the customer chooses during checkout. However since you have removed the ability for the customer to select an address, then Prestashop will choose the first customers address In PS v1.6.1.17, the first customer address is located using this query SELECT `id_address` FROM `'._DB_PREFIX_.'address` WHERE `id_customer` = '.(int)$id_customer.' AND `deleted` = 0'.($active ? ' AND `active` = 1' : '') Link to comment Share on other sites More sharing options...
tijojoel Posted October 23, 2017 Author Share Posted October 23, 2017 (edited) @bellini13 What happens if I delete the first address and added new address ? Will it take new address or old deleted address? Edited October 23, 2017 by tijopromantia (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted October 23, 2017 Share Posted October 23, 2017 the query filters out deleted addresses Link to comment Share on other sites More sharing options...
tijojoel Posted October 24, 2017 Author Share Posted October 24, 2017 @bellini13 when i delete old address and add two new address, which address will it take for tax calculation. Did you delete the query? Link to comment Share on other sites More sharing options...
bellini13 Posted October 24, 2017 Share Posted October 24, 2017 2 hours ago, tijopromantia said: @bellini13 when i delete old address and add two new address, which address will it take for tax calculation. Did you delete the query? take the query I provided and run it against your own database to find the answer Link to comment Share on other sites More sharing options...
tijojoel Posted October 25, 2017 Author Share Posted October 25, 2017 19 hours ago, bellini13 said: take the query I provided and run it against your own database to find the answer i didin't see the query . Did you delete? Link to comment Share on other sites More sharing options...
bellini13 Posted October 25, 2017 Share Posted October 25, 2017 scroll up, its there Link to comment Share on other sites More sharing options...
NemoPS Posted October 25, 2017 Share Posted October 25, 2017 It's this one SELECT `id_address` FROM `'._DB_PREFIX_.'address` WHERE `id_customer` = '.(int)$id_customer.' AND `deleted` = 0'.($active ? ' AND `active` = 1' : '') 1 Link to comment Share on other sites More sharing options...
tijojoel Posted October 27, 2017 Author Share Posted October 27, 2017 On 25/10/2017 at 6:39 PM, NemoPS said: It's this one SELECT `id_address` FROM `'._DB_PREFIX_.'address` WHERE `id_customer` = '.(int)$id_customer.' AND `deleted` = 0'.($active ? ' AND `active` = 1' : '') Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now