Jump to content



Member Since 25 Jun 2019
Offline Last Active Aug 31 2019 07:34 PM

Posts I've Made

In Topic: Obtaining Order Currency

20 August 2019 - 03:43 PM

Thank you eComLabs for your time and help for clearing my mind.

PS: Still thinking those are funny and tricky names.

In Topic: Obtaining Order Currency

20 August 2019 - 01:02 AM

Thank you eComLabs, but I was refering to obtaining the currency of an order _after_ it was created. In other words, I want to know right now the currency of order x that was created yesterday.

Also, why is that name of "secondary currency"?

Thanks for your time!

In Topic: Where To Store Custom Data, That Is Related To Order?

19 August 2019 - 12:02 AM


You can use the "cscart_order_data" table. It stores a lot of different order data by default.

Here is the example code:

  $_data = array (
	    'order_id' => $order_id,
	    'type' => 'Z',
	    'data' => serialize(YOUR_CUSTOM_DATA_ARRAY),
db_query("REPLACE INTO ?:order_data ?e", $_data);
Just make sure that the type char (Z in your case) is not used by core functions or add-ons. I can provide you with few examples from the core:

P - payment information
R - secondary currency
T - taxes
G - groups information
L - shipping information
C - coupons



Excuse me for posting in a thread so old.

I have been looking for this information you have just said about the meaning of the one letter code. I wonder why it is not in the docs!

Thank you

In Topic: Looking For The Latest Developer Documentation

15 August 2019 - 08:00 PM

There is a forum thread to request for documentation articles!



In Topic: Banners Addon Tpl Hooks

26 June 2019 - 03:45 PM

It means that some 3rd party addon overrides this hook earlier. Try to temporary disable 3rd party addon and check the result


If that's the case, how can you deal with another addon competting for the same hook than my addon?