Jump to content

Access address from prestashop


Recommended Posts

Hi,

 

To retrieve the address from prestashop I am using this query

 

INNER JOIN ps_address shpadd ON
shpadd.id_address=ps_orders.id_address_delivery
INNER JOIN ps_address invadd ON
invadd.id_address=ps_orders.id_address_invoice

LEFT JOIN ps_country shpcountry ON
shpcountry.id_country = shpadd.id_country
LEFT JOIN ps_country invcountry ON
invcountry.id_country = invadd.id_country

LEFT JOIN ps_country_lang shpcountry_lang ON
shpcountry_lang.id_country = shpadd.id_country
LEFT JOIN ps_country_lang invcountry_lang ON
invcountry_lang.id_country = invadd.id_country

 
LEFT JOIN ps_state shpstate ON
shpstate.id_state=shpadd.id_state
LEFT JOIN ps_state invstate ON
invstate.id_state=invadd.id_state
 
 
It takes too much time to load(even will not execute). What is the alternate method to replace this query? 
N.B - This is a part of query
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...