Author Topic: 3 custom fields string  (Read 112 times)

user_fra

  • Beginner
  • *
  • Posts: 35
3 custom fields string
« on: February 21, 2021, 10:49:07 am »
Hi (Joomla 3.9.24 Virtuemart 3.8.8),
I created 3 custom fields string for online course subscriptions, with different time options available (month 1 - month 2 ... quarter 1 and 2 etc ...) but I don't have a single starting price to whom apply prices increases. I need a zero point to start (empty value) and users should be able to select their option (only one in this case). Unfortunatly sometimes people click add to cart without selecting an option. In this case in the cart there is the product at zero euro. Then they come back to the product detail page and select an option, so the order has 2 item products, one at zero euro and the other one with the correct price and option. Other times they complete the order at zero value.
I need to prevent they can add to cart a zero value.

Of course I could create child products, but it is not cnecessary because we are not talking about stockable products, one product is just perfetc.

Is there a way without touching Virtuemart core, to reach what I need?
This is an example in a test site: https://www.taichionline.it/test/corsi-tai-chi-scaricabili/catalogo-completo/test-webinar-detail.html

Thank you, best regards.
Francesco

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 948
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: 3 custom fields string
« Reply #1 on: February 21, 2021, 11:58:18 am »
You created wrong idea and product...

You need new analyze and create system for products:

Basic price must be for one option from customfield and customfield is only plus price
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

user_fra

  • Beginner
  • *
  • Posts: 35
Re: 3 custom fields string
« Reply #2 on: February 21, 2021, 13:01:35 pm »
Thanks for your kind answer.
Could you please explain how to reach the same goal using another way?
Of course I don't want to create dozens of products, for the same online course.

Thank you, my best regards
Francesco

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 948
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: 3 custom fields string
« Reply #3 on: February 21, 2021, 13:37:04 pm »
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

user_fra

  • Beginner
  • *
  • Posts: 35
Re: 3 custom fields string
« Reply #4 on: February 21, 2021, 14:15:27 pm »
Thank you for your kind answer.
Please, following your example which one should be the base price?
Please also consider that if a student clicks on the add to cart button, he will find a product with the base price.

You can see the real values

Monthly payments option
Month 1 = € 70
Month 2 = € 70
...
Month 9 = € 70
(The name of the option is important even if the price is the same)

Quarter recovery option
Quarter 1 and 2 = € 312
Quarter 1, 2 and = 3 € 390

Quarterly payments option
Quarter 1 = € 150
Quarter 2 = € 150
Quarter 2 = € 150
(The name of the option is important even if the price is the same)

Wouldn't it be clearer and simpler to have a back-end option that says don't add the product to the cart if "this specific product" has value equal zero?
In any case, I'm ready to find a different solution using Virtuemart, that's why I'm writing in this useful forum.

Kind regards
Francesco