Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

globale var "customer_zone_id"


dherfort

Recommended Posts

Dear osCommerce Community,

 

I placed this question in the German section as well, but I don't know if I put that into the right section, therefore I feel free and ask you here on this platform.

 

  global $customer_zone_id, $customer_country_id;

if ( ($country_id == -1) && ($zone_id == -1) ) 
  {
  if (tep_session_is_registered('customer_id')) 
	 {
	  $country_id = $customer_country_id;
	  $zone_id = $customer_zone_id;
	 }
   }

 $aufschlag_db = tep_db_query("select pr_aufschlag from pricelists pr left join " . TABLE_ZONES_TO_GEO_ZONES . " za on (pr.pr_country_id =  
  za.geo_zone_id) left join " . TABLE_GEO_ZONES ." tz on (tz.geo_zone_id = pr.pr_country_id) where (za.zone_country_id is null or za.zone_country_id = 
 '0' or za.zone_country_id = ' " . (int)$country_id . " ') and (za.zone_id is null or za.zone_id = '0' or za.zone_id = '" . (int)$zone_id . "')");
 $aufschlag2 = tep_db_fetch_array($aufschlag_db)
 $aufschlag = $aufschlag2['pr_aufschlag'];

 

If I try to ECHO $aufschlag, no value is put there...there should stand 30 is I have done everything correct...instead of 30 there's standing 0 or nothing...then I tried to look up what my mistake was...then I realized that I don't even have the global variable "$costumer_zone_id"...even though it is used various times in the code...

 

Can you help me to find out where the costumer comes from as I need that for my code :(

 

Is the code correct until now?

 

Best regards,

Daniel

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...