| :: |
| Author |
Message |
taylorrobe
Joined: 10 Dec 2011
Posts: 4
|
| Posted: Sat Dec 10, 2011 1:10 pm Post subject: file modifications for virtuemart 1.1.7a |
|
|
Hello,
How frustrating is this?
in the installation instructions, file edit stage I am instructed to add lines in several files:
when i edit the file:
/components/com_virtuemart/themes/default/templates/checkout/list_payment_methods.tpl.php
there is no such line as:
include(PAGEPATH. 'basket.php');
when i edit the file:
/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php
there is a line:
else {
echo vmCommonHTML::hyperlink( $href, $text, '', $text, $class_att );
}
however i have edited this as per instructions and i get an error on the checkout screen:
"
Warning: include() [function.include]: Unable to access /administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php in /home/islandel/public_html/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 78
Warning: include(/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php) [function.include]: failed to open stream: No such file or directory in /home/islandel/public_html/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 78
Warning: include() [function.include]: Unable to access /administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php in /home/islandel/public_html/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 78
Warning: include(/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php) [function.include]: failed to open stream: No such file or directory in /home/islandel/public_html/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 78
Warning: include() [function.include]: Failed opening '/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/islandel/public_html/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 78
"
I have been able to complete all the other instructions and have checked several times, i am using:
the default template
joomla 1.5.20
virtuemart 1.1.7a
please can you shed some light on this for me! |
|
| Back to top |
|
psunite
Joined: 27 Jan 2005
Posts: 6213
Location: Columbus OH
|
| Posted: Mon Dec 12, 2011 1:57 pm Post subject: Re: file modifications for virtuemart 1.1.7a |
|
|
For the file /components/com_virtuemart/themes/default/templates/checkout/list_payment_methods.tpl.php go ahead and add include(PAGEPATH. 'basket.php'); to line 18. So it looks like
PHP: › docWrite("php") <?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
/**
*
* @version $Id: list_payment_methods.tpl.php 1332 2008-03-28 22:24:05Z thepisu $
* @package VirtueMart
* @subpackage templates
* @copyright Copyright (C) 2007-2008 soeren - All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
include(PAGEPATH. 'basket.php');
include($mosConfig_absolute_path.'/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php');
if( $nocc_payments && $cc_payments ) {
echo '<table><tr><td>';
} |
|
| Back to top |
|
taylorrobe
Joined: 10 Dec 2011
Posts: 4
|
| Posted: Tue Dec 13, 2011 4:19 am Post subject: Re: file modifications for virtuemart 1.1.7a |
|
|
Hi, thanks for your response. I have added the extra lines however i am still not getting a working google checkout and the warnings persist on the shopping cart:
Warning: include() [function.include]: Unable to access /administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php in /home/islandel/public_html/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 78
Warning: include(/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php) [function.include]: failed to open stream: No such file or directory in /home/islandel/public_html/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 78
Warning: include() [function.include]: Unable to access /administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php in /home/islandel/public_html/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 78
Warning: include(/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php) [function.include]: failed to open stream: No such file or directory in /home/islandel/public_html/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 78
Warning: include() [function.include]: Failed opening '/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/islandel/public_html/components/com_virtuemart/themes/default/templates/pages/shop.cart.tpl.php on line 78
do you think i have an incorrect root definition? where the server is looking in the wrong place for the files?
any help is appreciated |
|
| Back to top |
|
taylorrobe
Joined: 10 Dec 2011
Posts: 4
|
| Posted: Fri Dec 16, 2011 8:31 am Post subject: |
|
|
| i managed to get the express checkout on now, however Google checkout is at the end of the checkout process but no button appears and it does nothing |
|
| Back to top |
|
taylorrobe
Joined: 10 Dec 2011
Posts: 4
|
| Posted: Fri Dec 16, 2011 1:25 pm Post subject: Re: file modifications for virtuemart 1.1.7a |
|
|
OK,
I have still not got a google checkout proper at the end of my checkout, however i have the express button working but it does not update my virtuemart cart.
i think it is to do with the callback url and the https settings.
any help? |
|
| Back to top |
|
| |