I'm trying to call a deal file in a custom template.
I tried a bunch of variations but I keep an getting an empty array.
Basically I'm trying to duplicate this code:
The only issue being that I'm not able to use "$this" because its not being loaded on the deal page.
I'm using an attribute to select the deal ID but as mentioned before, the array remains empty.
The code I have tried is as follow:
$cmgbstore_id = $attributes->cmgbstore_id;
$deal = CMGroupBuyingHelperDeal::getDealsByRefId($cmgbstore_id);
Any help would greatly be appreciated!
Kindest Regards
Martin