Hello,
How can you check the custom fields data, like counting how much custom fields questions are in the product page, etc.
I've tried to use the rowHeights in the sublayout from the addtocart:
if(!empty($rowHeights['customfields'])) {
But that always gives a value of 1, even if there are none custom fields present.
Thanks!
$rowheights????
check the $this->product object
customs are in arrays like $this->product->customfieldsSorted['normal']
Quote from: GJC Web Design on January 31, 2016, 11:45:00 AM
$rowheights????
check the $this->product object
customs are in arrays like $this->product->customfieldsSorted['normal']
Where can I find these values? Why isn't documented which objects I can check from the $product? Because your example always gives me 0 if I count the array, even if there is a custom field present.
QuoteWhy isn't documented which objects I can check from the $product?
because all you have to do is echo it out!
If u want to doc it off you go... this is an open source project!
print 'Debug Line '.__LINE__.' $this->product <pre>'; print_r ($this->product); print "</pre><br />\n";
Quote from: GJC Web Design on February 02, 2016, 11:55:48 AM
QuoteWhy isn't documented which objects I can check from the $product?
because all you have to do is echo it out!
If u want to doc it off you go... this is an open source project!
print 'Debug Line '.__LINE__.' $this->product <pre>'; print_r ($this->product); print "</pre><br />\n";
That's exactly what I was searching! Thanks!
EDIT: Wow, I just realize what kind of moron I am :-X Still thanks!