Retrive unpublished products (Dev of upsale plugin)

Started by padalec, October 02, 2015, 10:54:59 AM

Previous topic - Next topic

padalec

Hi,

We are working on custom upsale plugin for VM3 on (J! 3).

The purpose of this plugin is to offer an additional BONUS product at a discounted price, when shopper clicks ADD TO CART.

The problem is that we need to display this BONUS product only inside this PLUGIN - the BONUS product should not be visible / buyable in the VM shop.

So we are  thinking to create several BONUS products which are UNPUBLISHED - but then we need to display them ONLY inside the plugin.

Can we retrieve from DB the unpublished product somehow?

or

Are there any other ways to accomplish this?

Your help will be appreciated.

best regards

VM 3.0.9.8
J! 3.4.4


GJC Web Design

just a simple query for unpub products but you may hit problems with not being able to checkout with unpub products

what a bout prods in an unpub. category?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation