News:

Looking for documentation? Take a look on our wiki

Main Menu

Allowing users to test products before Actual buy

Started by noOob, August 07, 2018, 13:22:37 PM

Previous topic - Next topic

noOob

Hi all,
I need a custom feature to have alongside VM. What i need is to have a "Request for Test" feature that client could send to our experts so that they could come and test our tools before renting them. Currently im using VM on a website that rents Lab tools like `microscope` for a period of time or instances.

I know PHP and i know MVC i tried to implement a completely different thing inside the VM. but i found out that what im doing is inventing the wheel and doing things that already done by VM. I realized that i just need an Order exactly like the current one but with other submission flow. like there is no payment, there is no shipment, and no coupon just Status and if it could make sense re create user cart after the Status become for example 'Test done'.

i don't know the flow of a regular order, i could change things inside the VM if i knew this.

What is the best way to achieve this need?

I'm using VirtueMart 3.2.4

AH

Try creating a payment standard payment method

Call it "test request"

And set a status of the order in that payment method to "Test product request"

The "payment" would then setup the correct status and allow you to manage the workflow

In addition setup a Shipping method of "Collect from"  or something like that - to handle the shipping question in the checkout
Regards
A

Joomla 4.4.5
php 8.1

GJC Web Design

agree with AH -- it is in the end just labelling and allowing peeps to chk out without paying
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

Studio 42

... and you can use a categorie to filter the products that can be rent(or not) in the shipments(most of shipment support to filter categories).

noOob

#4
Quote from: AH on August 07, 2018, 16:39:53 PM
Try creating a payment standard payment method

Call it "test request"

And set a status of the order in that payment method to "Test product request"

The "payment" would then setup the correct status and allow you to manage the workflow

In addition setup a Shipping method of "Collect from"  or something like that - to handle the shipping question in the checkout

Thanks is there any document for what is needed to write a correct payment method for VirtueMart? I searched google but i just found buncha management things about plugins. Like what triggers should be handled or etc! Also appreciate any good "intro to joomla plugins tutorials" :) and is it just have to be a plugin or a whole component is needed for a payment?

EDIT: do you mean just create a payment method like in administrator panel? or write one from scratch?! IDK lot about management but i would try that.
Done with that



EDIT 2: For the restoring Cart part, i want to write a plugin and handle the triggers of Status changed and became for example "Test successful" and for creating backup from cart i need to find trigger for a Test request submitted!

GJC Web Design

no -- just use the bundled payment plugin  - VM Standard

for building a plugin just copy one that's there and work from there

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

noOob

Quote from: GJC Web Design on August 08, 2018, 10:58:10 AM
no -- just use the bundled payment plugin  - VM Standard

for building a plugin just copy one that's there and work from there

Thanks, Is there any document for all of the triggers going on in  virtuemart? and the that they fired or inputs etc...

GJC Web Design

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

noOob