Tips & Tricks

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

JOOMDLE Shop :: Delete the Course from VM

  • shekar
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
15 years 5 months ago - 15 years 5 months ago #1 by shekar
Instead of unpublishing the course in VM, This change will delete the course from VM, whenever we disable the course from JOOMDLE Shop.

File to edit: \joomla\administrator\components\com_joomdle\helpers\shop.php
Code:
$query = "UPDATE #__vm_product SET product_publish = 'N' where product_sku = '$sku'";

Change to
Code:
$query = "DELETE FROM #__vm_product where product_sku = '$sku'";
Last edit: 15 years 5 months ago by shekar.

Please Log in or Create an account to join the conversation.