On a website/webshop running EE 2.5.5, and Exp-resso store 1.6.2 i'm trying to simplify the stock keeping process. I'd like to close an entry with a safecracker form.
For test purposes i created a new, blank template with only the following code:
{exp:safecracker channel="products" return="" entry_id="{segment_2}" }
<select name="status" id="status">
{statuses}
<option value="{status}"{selected}>{status}</option>
{/statuses}
</select>
<input type="submit" name="submit" value="Apply" />
{/exp:safecracker}
I change the status, press "submit" and get an error:
A Database Error Occurred
You must use the "set" method to update an entry.
Filename: third_party/store/models/store_products_model.php
Line Number: 315
« Back
The strange thing is: the status does change, so i'm not sure why i'm getting this error.
Inside the store_products_model.php the lines around 315 look like this:
I want to change the status on the front end using safecracker, error free. What should I do?
A workaround question might be:
How can i change the status without triggering the store_products_model?