Sorry I have not been back to post for a while (super busy) and thanks for all the comments. I hope some of the older replies have been resolved, if not let me know and I will see what I can do.
With regard to deleting records in the TABLE_PRODUCTS_EXTRA_STUFF table, I can't believe I forgot to include this functionality in the first place.
I have not tested the following code so if someone cares to try this out and let me know if it works that would be great.
- Open admin/includes/functions/general.php and search for 'function zen_remove_product' (line 1203 for me)
- At the end of that function and just after the following code:
$db->Execute("delete from " .
TABLE_PRODUCTS_DISCOUNT_QUANTITY . "
where products_id = '" . (int)$product_id . "'");
(line 1276 for me)
Add the following on a new line:
$db->Execute("delete from " .
TABLE_PRODUCTS_EXTRA_STUFF . "
where products_id = '" . (int)$product_id . "'");
Make sure you add this before the closing '}' of the function (line 1279 for me before the edit).
I hope this also helps you out.
Bookmarks