Hi All,
I am trying to display a custom attribute which works on the products page (view.phtml) but won't show up on the listing page (list.phtml) and I was hoping somone may have been able to resolve this or a similar issue previously. The code I am using is below:
<?php echo $_product->getData('stock_due_date') ?>
The field is text (rather than date) and I am running v1.9 with the most recent security patches applied.
Any help will be greatly appreciated, thanks in advance.
Solved! Go to Solution.
Hi ethantram,
If you set the attribute to be available in product listing via
Admin > Catalog > Attributes > Manage Attributes > find your Stock Due Date attribute
Then change Used in Product Listing to Yes.
Then do a full re-index and the attribute should now be available within your product list templates.
Hope this helps
Hi ethantram,
If you set the attribute to be available in product listing via
Admin > Catalog > Attributes > Manage Attributes > find your Stock Due Date attribute
Then change Used in Product Listing to Yes.
Then do a full re-index and the attribute should now be available within your product list templates.
Hope this helps
Hi iweb_p3mbo,
Thanks for your help! can't believe it was something so simple which was over looked.
Hello,
Where do you input that code below?
<?php echo $_product->getData('stock_due_date') ?>
I am trying to find a solution to show stock due date on a product fron page.
Thank you.
.