Powersellersunite Power Sellers Unite
Bringing Buyers and Sellers Together
 

VirtueMart 1.1
Click here to go to the original topic
Goto page 1, 2  Next
 
       Power Sellers Unite Forum Index -> Joomla/VirtueMart Google Checkout Module
::  
Author Message
bendicott



Joined: 25 Nov 2007
Posts: 1

Posted: Sun Nov 25, 2007 12:30 am    Post subject: VirtueMart 1.1  

Hello,

I am new to this forum and Joomla, and I wanted to use this Module. Does this Module work with VirtueMart 1.1?

Thanks,

Bob Endicott
Back to top  
psunite



Joined: 27 Jan 2005
Posts: 6197
Location: Columbus OH

Posted: Sun Nov 25, 2007 2:51 am    Post subject: Re: VirtueMart 1.1  

We do have a couple people who are using this for virtuemart 1.1

You will need to replacing your files with the attached.

This is the location of the files when I downloaded the new version from SVN
virtuemart\themes\default\templates\pages\shop.cart.tpl.php
virtuemart\themes\default\templates\checkout\get_final_confirmation.tpl.php
Back to top  
websnail



Joined: 03 May 2008
Posts: 24
Location: South Yorkshire, UK

Posted: Sat May 03, 2008 1:42 am    Post subject: Re: VirtueMart 1.1  

It's taken me about 2 hours to finally figure out that VM 1.1 isn't actively supported or rather isn't officially supported.

My own stupid fault for not checking sooner but by the powers of all that are holy someone needs to re-write the readme.txt file to make it a bit more readable (EDIT: Which I decided to do: Instructions version #2).

*long vitriolic diatribe self-edited*


Anyway for anyone else who's spent ages looking it seems the attachments are indeed close to what you want instead of abortively replacing your shop.cart.php or checkout.index.php

BUT... they're not up to date..


Please see the attached files for the updated versions compatible with VM 1.1.0 Stable (as at 4th May 2008)



The files should go to:
/components/com_virtuemart/themes/default/templates/checkout
/components/com_virtuemart/themes/default/templates/pages

Note:
If you are editing the SVN dev versions of these files they are located in a different directory (see psunite's post above) due to the way the VM team build the installer package.


Anyway, got there in the end... Just need the license now..
Back to top  
websnail



Joined: 03 May 2008
Posts: 24
Location: South Yorkshire, UK

Posted: Sun May 04, 2008 11:08 am    Post subject: VirtueMart 1.1.0 Stable - code fixes  

The below code fixes are further required to get VM1.1.0 stable working with Google Checkout.


IMPORTANT: For anyone else not reading the entire thread, this is ONLY for Virtuemart 1.1 (Joomla 1.5?)


Credit: WebSnail 04/May/2008 (www.snailsource.com)

open: ps_googlecheckout.php

Find:
Code: › docWrite("code")defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

Replace with:
Code: › docWrite("code")if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );

Find:
Code: › docWrite("code")$config .= "defined('_VALID_MOS') or die('Direct Access to this location is not allowed.'); \n\n";

Replace with:
Code: › docWrite("code")$config .= "if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' ); \n\n";



Open: ps_googlecheckout_cfg.php

Find:
Code: › docWrite("code")defined('_VALID_MOS') or die('Direct Access to this location is not allowed.');

Replace with:
Code: › docWrite("code")if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
Back to top  
websnail



Joined: 03 May 2008
Posts: 24
Location: South Yorkshire, UK

Posted: Sun May 04, 2008 1:30 pm    Post subject: Re: VirtueMart 1.1  

Knew it was too good to be true...

Whilst I figured out I'd missed a couple of changes (namely the edits for the tpl files), I still can't get this thing to work properly in 1.1.

- Configuration is now fixed.
- Fast Checkout Button appears but just seems to take you to the "order succes" page
- Still no Google Checkout button at the "success" point.


It could be I'm missing something important in setup but frankly I think if I am it's an instructions (or lack thereof) issue. Well anyway, once more into the breach!
Back to top  
websnail



Joined: 03 May 2008
Posts: 24
Location: South Yorkshire, UK

Posted: Sun May 04, 2008 3:59 pm    Post subject: Re: VirtueMart 1.1  

Oh FFS!...

I've just gone through the demo for this module and found a few "interesting" diversions from the actual instructions originally provided.

1. If you don't actually set the "Fast checkout" option to "yes" you never get a button appear for the google checkout (not even at the end)... Erm... riiiight?

2. The edits suggested by psunite actually provide the button one stage too early with the button shown on the "Confirm Order" page rather than afterwards (which is how the demo works).

If you click on this GoogleCheckout button it just jumps to the Order confirmed page with no GC button and no way to actually pay.


The good news is that the Fast checkout option does still appear right at the beginning when you look at your cart, so I'm guessing the originall "Fast Checkout" side of things appears to work, but if, like me you've bought this mod so you can actually use the API to get your customers to go through your whole ordering process and NOT provide the fast checkout option, we're still not there.


In short no, this doesn't work yet and yes I'm definitely teaching the local atmosphere more colourful language as we speak... Someone remind me why I paid for this again?
Back to top  
websnail



Joined: 03 May 2008
Posts: 24
Location: South Yorkshire, UK

Posted: Sun May 04, 2008 4:29 pm    Post subject: Re: VirtueMart 1.1  

Right... a bit more debugging and I discover that you probably shouldn't be modifying the get_final_confirmation.tpl.php file but instead modifying the checkout.thankyou.tpl.php file.

Doing this would mirror the behaviour of the original mod in JM 1.0.x...

However this seems to break the google_checkout.php file as you don't get:

Quote: › docWrite("quote")Please click on the Google Checkout button to complete checkout
[button here]

You get the same behaviour as if this file was providing the Fast Checkout functionality.


Doubtless this is an easy fix and relates to a regex telling the googlecheckout.php file where it's being called from. But hey it's closed code so I can't alter it myself.



Take it as read the I'd start cussing and throwing a tantrum at this point but I really can't be bothered.

Be nice to see this code updated so that it was truly VM1.1.x compatible and more importantly tested to ensure it was.
Back to top  
markcrobinson



Joined: 31 Aug 2007
Posts: 3

Posted: Mon May 05, 2008 11:27 pm    Post subject:  

This comment, above:
"Right... a bit more debugging and I discover that you probably shouldn't be modifying the get_final_confirmation.tpl.php file but instead modifying the checkout.thankyou.tpl.php file. "

Suggests that we should not be applying the fix from the above download?

Also, could you please provide the full path to the files in the download?
Thanks.
Back to top  
websnail



Joined: 03 May 2008
Posts: 24
Location: South Yorkshire, UK

Posted: Tue May 06, 2008 10:24 pm    Post subject:  

markcrobinson wrote (View Post): › docWrite("quote")This comment, above:
"Right... a bit more debugging and I discover that you probably shouldn't be modifying the get_final_confirmation.tpl.php file but instead modifying the checkout.thankyou.tpl.php file. "

Suggests that we should not be applying the fix from the above download?

Also, could you please provide the full path to the files in the download?
Thanks.

You're better off looking at this thread...

http://www.powersellersunite.com/viewtopic.php?t=18702


Given that psunite has indicated a new version is due out I'd recommend waiting for that to be posted rather than trying the fix.
Back to top  
psunite



Joined: 27 Jan 2005
Posts: 6197
Location: Columbus OH

Posted: Tue May 13, 2008 5:34 am    Post subject:  

Here is the link to the new version that supports VM 1.1
http://www.powersellersunite.com/viewtopic.php?t=18907
Back to top  
bradynapier



Joined: 20 May 2008
Posts: 15

Posted: Tue May 20, 2008 8:33 am    Post subject: Re: VirtueMart 1.1  

Be Advised: After installing this version - my entire site ceased to work. The shopping cart was destroyed and can no logner be used (with Paypal, Authorize.net, etc) - and the google checkout doesn't correctly verify my Google Checkout ID.
Back to top  
websnail



Joined: 03 May 2008
Posts: 24
Location: South Yorkshire, UK

Posted: Tue May 20, 2008 3:09 pm    Post subject:  

bradynapier wrote (View Post): › docWrite("quote")
Be Advised: After installing this version - my entire site ceased to work. The shopping cart was destroyed and can no logner be used (with Paypal, Authorize.net, etc) - and the google checkout doesn't correctly verify my Google Checkout ID.

You didn't by any chance overwrite the wrong files did you...
Back to top  
bradynapier



Joined: 20 May 2008
Posts: 15

Posted: Tue May 20, 2008 5:04 pm    Post subject: Re: VirtueMart 1.1  

i downloaded the latest version and replaced exactly what was in there.
Back to top  
angelsolutions



Joined: 09 Mar 2005
Posts: 3293
Location: Corpus Christi, TX

Posted: Tue May 20, 2008 6:25 pm    Post subject: Re: VirtueMart 1.1  

Although bradynapier didn't mention that he's using joomla 1.0.12 with vm 1.1; that in frustration because he didn't wait for an answer, he moved his site to another server--which is what likely caused the 'fubar'; or the fact that he didn't respond to whether he was still using the sandbox.

http://www.powersellersunite.com/viewtopic.php?p=171537#171537

:roll:

sylvia
Back to top  
websnail



Joined: 03 May 2008
Posts: 24
Location: South Yorkshire, UK

Posted: Tue May 20, 2008 10:09 pm    Post subject: Re: VirtueMart 1.1  

bradynapier wrote (View Post): › docWrite("quote")i downloaded the latest version and replaced exactly what was in there.

Ok... if you replaced the files:
checkout.index.php
shop.cart.php

...then you didn't read the readme.txt properly...

Those files are specific to VM 1.0.x and NOT for 1.1.x

Quote: › docWrite("quote")/administrator/components/com_virtuemart/html/* [See MODIFICATIONS For VirtueMart 1.0.x. below]

If that's not what you did it would help if you took a deep breath and then explained what you did do...



My advice at this point though is to look at backing up your data and files, and then reinstalling the GC module taking your time to read everything and double check you're not installing or modifying the wrong files.

Getting hacked off with these things as a rule doesn't help... and yes, that means ignoring my own rants... Do as I say, not as I do, and don't tell my mother.. ;)
Back to top  
 
       Power Sellers Unite Forum Index -> Joomla/VirtueMart Google Checkout Module Goto page 1, 2  Next
Page 1 of 2




Powered by phpBB © 2001, 2002 phpBB Group