3

Not sure what I'm doing wrong, but the following code gives me a PHP error.

{exp:store:search channel="treatments" search:on_sale="yes"}
{exp:store:product
    entry_id="{entry_id}" 
    input:gcc="Gavekort"
    input:msg="Melding"
    input:recipient_name="Mottakernavn"
    input:recipient_email="Mottakers e-post"
}
{/exp:store:product}

{/exp:store:search}

Error: Fatal error: Using $this when not in object context in /*/expressionengine/third_party/store/src/Store/Tag/SearchTag.php on line 37**

  • What version of Store are you using? – Justin Long Mar 31 '14 at 18:29
  • Using version 2.3.1 – Stian Karlsen Mar 31 '14 at 22:35
5

This is a known issue affecting Store 2.3.1 with PHP 5.3, and will be fixed in the next version.

In the meantime, if you need a quick fix, please replace $this->ee with ee() on lines 37 and 38 of third_party/store/src/Store/Tag/SearchTag.php.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.