Jump to content
WebFlake
  • 0

IP Commerce Cfields


Argyros

Question

I'm trying to pass custom fields for my packages.
So far I have found the name of the parameter called cfields, however I don't know how to pass the field to get the custom data put into a database.
So far i have tried:

$invoice->cfields->2
No luck, and
$package->cfields->2
Still no luck.
I found that it's formatted like this in the cfields in the package purchase.
This is what it looks like in the sql database.
"2":"CUSTOMER TEXT"
I'm guessing the number 2 is the cfields id.

Edited by Argyros
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

You will need to pass it in a different way, the way i read that code your just passing 2 as nothing. To nothing. It needs to check the value if it exisits etc.

{$invoice->$cfieldsValues()['field_2']}

I be more then happy to try help you @Argyros but i would need to see more of the code or understand what you are trying to achive ?

Where is the data coming from, is it fields etc from a page or ?

 

VAEfvMI.png

Liked what i posted remember to feed me a cookie ->
Or you can add a cookie to myCookieJar

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...