VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: pablito88 on April 08, 2017, 16:42:11 PM

Title: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1 [SOLVED]
Post by: pablito88 on April 08, 2017, 16:42:11 PM
I am using Joomla 3.5.6 and Virtuemart 3.2.1

Here is the normal process of my user when buying on my store. - SEE ATTACHED IMAGE

STEP 1. Visit the store, change quantities and click "Add to Cart" - SEE IMAGE #1

STEP 2. On pop up modal box user clicks on "Show Cart" - SEE IMAGE #2

STEP 3. Fill name, phone, TOS, etc and clicks on "Check Out Now" - SEE IMAGE #3

STEP 4. After clicking in "Check Out Now", user will get redirected to the same page but now with a button of "Confirm Purchase" - SEE IMAGE #4

I will like to eliminate either "Check Out Now" or "Confirm Purchase" which are extra steps for my user and they are pretty much the same.

I already visited the link below but none of their solutions solve this problem

https://forum.virtuemart.net/index.php?topic=92103.0

UPDATE

On my installation the delivery is Pick up at the Store and payment is Cash / Debit or Credit Card at the store too.

Virtuemart is only used to place orders.

UPDATE 2

Here is the live DEMO site: http://lposselt.com/

You will see menu to the right I have two stores as I have two vendors.

THIS WAS MY SOLUTION

I had 4 things for them to insert before continue.

1. Name
2. Phone
3. Email
4. TOS

If any of those are required, the user will see "Check Out Now" but if I make all of those NON-REQUIRED, the "Confirm Purchase" will show up instead.

So they all have to be NON-REQUIRED...that's a solution I can live with.
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: AH on April 08, 2017, 17:49:06 PM
Looks like you have a customised checkout

JS fires to refresh the TOS is checked in base VM templates



Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: pablito88 on April 08, 2017, 17:54:58 PM
No, is not a customized checkout is just a simple HTML and CSS Joomla template.
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: pablito88 on April 08, 2017, 18:03:34 PM
For me customized means that I change some functionality of Virtuemart.

Meaning I change the HTML, PHP or JavaScript which I did NOT.

It is just a simple clean installation of Virtuemart

The CSS is different, yes, but that should not affect at all how virtuemart functions because CSS is only the presentation, how the website looks, NOT how it functions.

I also tried this on Protostar and the same thing happens, so this is not a template related issue but Virtuemart related.

Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: K&K media production on April 08, 2017, 18:19:14 PM
enable the one page checkout feature and in most cases all is done by JS

vm configuration -> checkout
-> One Page Checkout enabled
-> Ajax for OPC
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: pablito88 on April 08, 2017, 18:25:52 PM
Nope that option was already suggested online in anothe forum but does not works.

I included a picture of my settings.
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: K&K media production on April 08, 2017, 18:31:32 PM
Link to your site?
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: pablito88 on April 08, 2017, 18:33:14 PM
Yes I am putting it online for you guys to see, hold on. 10 min
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: Jörgen on April 08, 2017, 18:47:26 PM
The cart js actually dependent on some css tags having the correct names. Customized in my eyes is when something is changed either in funtionality or appearance.

Check with the protostar template before You make anything else, if it doesn´t work with protostar, then either some setting, module or plugin is causing problems.

In my case a payment plugin breaks the confirm check of TOS :(

regards

Jörgen @ Kreativ Fotografi
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: pablito88 on April 08, 2017, 19:20:23 PM
Quote from: Jörgen on April 08, 2017, 18:47:26 PM
The cart js actually dependent on some css tags having the correct names. Customized in my eyes is when something is changed either in funtionality or appearance.

Check with the protostar template before You make anything else, if it doesn´t work with protostar, then either some setting, module or plugin is causing problems.

I as mentioned on reply #3 I already tested on protostar and you can see live site in here: http://lposselt.com/

Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: pablito88 on April 08, 2017, 19:21:38 PM
Quote from: K&K media production on April 08, 2017, 18:31:32 PM
Link to your site?

Here it is: http://lposselt.com/

You can see menu to the right, I have two stores.

One for each vendor.
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: K&K media production on April 08, 2017, 19:42:51 PM
I don't know what you've done, but this is no normal shop configuration. I can checkout without any personal datas and the button said "confirm purchase".
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: pablito88 on April 08, 2017, 19:46:48 PM
Quote from: K&K media production on April 08, 2017, 19:42:51 PM
I don't know what you've done, but this is no normal shop configuration. I can checkout without any personal datas and the button said "confirm purchase".

It is indeed a normal Virtuemart Shop.

The only difference is that I created two Manufacturers and I create different products for each one.

Hence creating two different stores.

Anyways, I already found my solution.

I just wrote it.
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: Jörgen on April 08, 2017, 19:49:02 PM
If You are using protostar without any significant CSS or DIV changes it works. This I am sure about. Check this thread:

http://forum.virtuemart.net/index.php?topic=135402.msg471484#msg471484 (http://forum.virtuemart.net/index.php?topic=135402.msg471484#msg471484)

Testing a totally unmodified version is a very good way to go before You start to change the code. When this works, then it is time to introduce changes.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1
Post by: pablito88 on April 08, 2017, 19:51:04 PM
Quote from: Jörgen on April 08, 2017, 19:49:02 PM
If You are using protostar without any significant CSS or DIV changes it works. This I am sure about. Check this thread:

http://forum.virtuemart.net/index.php?topic=135402.msg471484#msg471484 (http://forum.virtuemart.net/index.php?topic=135402.msg471484#msg471484)

Testing a totally unmodified version is a very good way to go before You start to change the code. When this works, then it is time to introduce changes.

regards

Jörgen @ Kreativ Fotografi

I found a solution to this problem, I just posted.

It works on all templates I am using, as long as I don't change HTML, PHP or JS.

CSS does not matters in this case, well on this scenario of mine.
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1 [SOLVED]
Post by: Jörgen on April 08, 2017, 20:18:08 PM
Hello

That is not a solution, it is a work around.
The setup actually works with those fields required, but You do as You wish.

regards

Jörgen @ Kreativ Fotografi
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1 [SOLVED]
Post by: pablito88 on April 08, 2017, 20:23:02 PM
QuoteHello

That is not a solution, it is a work around.
The setup actually works with those fields required, but You do as You wish.

regards

Jörgen @ Kreativ Fotografi

Then if you have a solution, you can post it in here.

So far I have not seen anything else that works.
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1 [SOLVED]
Post by: GJC Web Design on April 09, 2017, 11:46:53 AM
There is no "solution" .. the stock install with the standard templates works perfectly.. when all required fields are filled and verified the button changes to Confirm by ajax

if this isn't happening then it is your install/template...
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1 [SOLVED]
Post by: pablito88 on April 09, 2017, 12:10:09 PM
So with all the stock templates the AJAX work.

Meaning that no other template will be able to work properly with Virtuemart other than what Virtuemart offers?

I mean of course if the template is coded properly like the virtuemart templates, it will work I guess.

But I am asking this because I am using the Joomla Protostar Template and the Ajax don't seem to work unless I make all lines NOT REQUIRED.

Regarding if it is the installation

I just installed a fresh Joomla 3.5.6 and a fresh Virtuemart 3.2.1.

The process of installing Virtuemart was first unzip the package.

Then install com_virtuemart.3.2.1

And then com_virtuemart.3.2.1_ext_aio

Finally install com_tcpdf_1.0.2

And that's it.

You can see my store here: http://lposselt.com/

Did I install anything wrong?
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1 [SOLVED]
Post by: pablito88 on April 09, 2017, 12:31:42 PM
Right now when I am using Joomla Protostar on this site: http://lposselt.com/

The only field I have required is the phone SEE ATTACHED IMAGE

The AJAX is not changing the button to confirm when I write the phone.

Do you think is my installation o is the template that don't work with Virtuemart?

Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1 [SOLVED]
Post by: pablito88 on April 09, 2017, 12:39:24 PM
NOTE: This store does not requires registration, that's why I don't have the USERNAME AND PASSWORD active.

I just changed to input TOS to required to test and when I click on the input to checkmark the button DOES CHANGES.

It works but none with the other items, EMAIL, NAME or PHONE.
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1 [SOLVED]
Post by: pablito88 on April 09, 2017, 12:44:25 PM
Actually I have to have the both.

EMAIL and input checkbox TOS required for the button to change when checking/clicking the TOS.

But if I have only the input TOS required the confirm button shows automatically.

Also if I have only the EMAIL to required the confirm button does not changes either.
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1 [SOLVED]
Post by: GJC Web Design on April 09, 2017, 22:54:36 PM
but your talking about completely different things

those email fields etc aren't meant to be shown as shopper fields in the cart.. they are address fields and would normally be in the address dialog..
if u want these fields to trigger the ajax that confirms the button I assume you need to write your own JS snippet.
Title: Re: Eliminate "Confirm Purchase" Option in Virtuemart 3.2.1 [SOLVED]
Post by: pablito88 on April 09, 2017, 23:04:23 PM
ok