Jump to content

Ve Stare Preste 1.3 Je Cislo Objednavky $Id_Order, Jakej Kod Poziva Presta 1.5?


Guest

Recommended Posts

v mnou pridanem scriptu kvuli affiliatu ktery jsem pridal do OrderConfirmationController.php v prestashop 1.5 se nevyplnuje cislo objednavky. vse ostatni funguje.

 

stejny affiliate script mam do ted i na preste 1.3 a tam vse funguje perfektne i se vsechno v poradku vyplni ale kdyz jsem ten stejny skript zkopiroval do presty 1.5.2.0 tak tam se vse udela taky dobre az na to cislo objednavky. to se nevyplni.

 

mohl by nekdo pomoct a rict jak to je u presty 1.5 (presne 1.5.2.0).

 

toto je kus toho affiliate kodu kde je cast s cislem objednavky:

// Here you must specify a unique identifier for the transaction.

// For a sale, this is typically the order number.

$orderNumber = "$id_order";

 

toto je kus toho affiliate kodu a zde se ma vyplnit cislo objednavky, takto to mam i na druhem eshopu s prestou ale s verzi 1.3 a tam toto funguje dobre. neni u tohoto meho kodu chyba v tom ze nova presta pouziva misto "$id_order" neco jineho?

Edited by PepeCZ (see edit history)
Link to comment
Share on other sites

tak uz jsem to zjistil uplnou nahodou sam. tvar $orderNumber = "$id_order"; jsem zmenil na $orderNumber = "$this->id_order"; a uz to funguje. ve starsi preste 1.3 to fungovalo jen stim $id_order ale ta novejsi presta 1.5 vyzadovala tvar $this->id_order. takze uz jsem to vyresil takze muze byt tento thread uzavren.

Edited by PepeCZ (see edit history)
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...