Author Topic: Buy on account only for certain products  (Read 345 times)


  • Beginner
  • *
  • Posts: 1
  • A beginner
    • thanh ly phong net
  • Skype Name: haimicroct
Buy on account only for certain products
« on: November 23, 2018, 08:37:05 am »
I am new here in the forum and would like to greet all first!

For about 2 weeks, our shop is online and the finetuning prepares some concern.

The biggest problem at the moment is the payment modalities.
We offer purchase on "invoice", "SORFORT├╝berweisung" and "PayPal". (other payment options are under construction)
In addition to products, we also offer services. And we would like to have the services paid exclusively by PayPal or SOFORT├╝berweisung - not on account.

Is there a way to restrict the payment terms for certain products?
I use Joomla 3.7.3 Stable Virtuemart (if that matters)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8867
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Buy on account only for certain products
« Reply #1 on: November 23, 2018, 10:02:55 am »
I assume u have the products grouped in cats? 
If not u can use unpublished cats to group them into invoice and non invoice

then in this case I use JS in the cart to hide the invoice payment option IF any product is in a non invoice cat

this can be all done in the cart template
GJC Web Design
VirtueMart and Joomla Developers - php developers
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
Contact for any VirtueMart or Joomla development & customisation

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 3752
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Buy on account only for certain products
« Reply #2 on: November 23, 2018, 16:47:45 pm »
You can add a categories restriction filter, to not show all paiment in case of services.
This is not in core for paiements, but it's possible to add the code to verify "services" category else you can use GJC Web Design solution if you have not many products of this type and use a static array