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
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
agree with AH -- it is in the end just labelling and allowing peeps to chk out without paying
... 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).
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!
no -- just use the bundled payment plugin - VM Standard
for building a plugin just copy one that's there and work from there
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...
https://forum.virtuemart.net/index.php?topic=101629.msg476096#msg476096
Great thank you a lot sir