Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple Php Question


Mort-lemur

Recommended Posts

Posted

Hi,

 

I am using osc affiliate but need to change the code so that it only picks up orders for paying affiliates which are at status 3 ie.delivered.

 

There are several instances of this line of code throughout the mod files:

 

o.orders_id and o.orders_status >= " . AFFILIATE_PAYMENT_ORDER_MIN_STATUS . "

 

Now to change this so that the orders status must match 3 exactly (not 3 or greater) would I just change it to read:

 

o.orders_id and o.orders_status == " . AFFILIATE_PAYMENT_ORDER_MIN_STATUS . "

 

Thanks

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Posted

That's SQL, not PHP. So that would be

 

and o.orders_status = " . AFFILIATE_PAYMENT_ORDER_MIN_STATUS . "

Regards

Jim

See my profile for a list of my addons and ways to get support.

Posted

Thanks,

 

Wondering why I was getting sql errors!!

 

Sorted now

 

Many Thanks

Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Archived

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

×
×
  • Create New...