Hello, thanks for the answer
According to what I indicas, replace
if ($ vendor-> old-> == 0 && $ vendor_published vendor-> vendor_published == 1)
by
if ($ data-> vendor-> old-> == 0 && vendor_published $ data-> vendor-> vendor_published == 1)
But continues out by the refusal of the conditional, no matter if is the record of the seller or is vendor state change unpublished/published
To check the values of variables in both situations add the following code, prior to conditional
<P> <? Php echo $ data-> vendor-> old-> vendor_published; ?> - Old vendor </ p>
<P> <? Php echo $ data-> vendor-> vendor_published; ?> - Vendor </ p>
Result when vendor registers
- $ Data-> vendor-> old-> vendor_published = no value
- $ Data-> vendor-> vendor_published = no value
Result after change vendor state, unpublished/published
- $ Data-> vendor-> old-> vendor_published = 0
- $ Data-> vendor-> vendor_published = 1
With the values of the variables will always go for refusal conditional.
You could tell me how I can fix it?
Thank you very much !