| :: |
| Author |
Message |
today
Joined: 21 Dec 2007
Posts: 4
|
| Posted: Wed Mar 24, 2010 7:14 am Post subject: Mynxx and file modification |
|
|
Hi
I am using mynxx and I have to edit the following files
list_payment_methods.tpl.php
shop.cart.tpl.php
The problem is these files don't contain anything that is specified in the instructions. I have seen a post on here with the same problem but no one decided to write how they fixed it they just said it was fixed.
Its here:
http://www.powersellersunite.com/viewtopic.php?t=27156&highlight=mynxx
Thank you in advance
Paul |
|
| Back to top |
|
psunite
Joined: 27 Jan 2005
Posts: 6213
Location: Columbus OH
|
| Posted: Thu Mar 25, 2010 1:23 am Post subject: Re: Mynxx and file modification |
|
|
You want to edit the files in
components\com_virtuemart\themes\mynxx\templates\
not
components\com_virtuemart\themes\default\templates\
since you are using the mynxx theme
Take a look at the example list_payment_methods.tpl.php.vm1.1.x and shop.cart.tpl.php.vm1.1.x that come with the module. You want to find the lines that have
include($mosConfig_absolute_path.'/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php');
add add them to your files. |
|
| Back to top |
|
today
Joined: 21 Dec 2007
Posts: 4
|
| Posted: Thu Mar 25, 2010 3:02 am Post subject: Re: Mynxx and file modification |
|
|
Hi PSUnite and thanks for the quick reply.
I simply just add that line of code anywhere in the file? Maybe at the bottom of the file.
Paul |
|
| Back to top |
|
today
Joined: 21 Dec 2007
Posts: 4
|
| Posted: Thu Mar 25, 2010 3:18 am Post subject: Re: Mynxx and file modification |
|
|
Here is the Mynxx code for list_payment_methods.tpl.php
Where would I add the line of code
include($mosConfig_absolute_path.'/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php');
PHP: › docWrite("php") <php>
<fieldset><legend><strong><php>_('PHPSHOP_CHECKOUT_PAYMENT_CC') ?></strong></legend>
<table>
<tr>
<td>
<php>list_cc($payment_method_id, false) ?>
</td>
</tr>
<tr>
<td><strong> </strong></td>
</tr>
<tr>
<td><php>_('VM_CREDIT_CARD_TYPE'); ?>:</td>
<td>
<php>creditcard_lists( $db_cc ); ?>
<script><writeDynaList>
</script>
<php>reset();
$payment_class = $db_cc->f("payment_class");
$require_cvv_code = "YES";
if(file_exists(CLASSPATH."payment/$payment_class.php") && file_exists(CLASSPATH."payment/$payment_class.cfg.php")) {
require_once(CLASSPATH."payment/$payment_class.php");
require_once(CLASSPATH."payment/$payment_class.cfg.php");
$_PAYMENT = new $payment_class();
if( defined( $_PAYMENT->payment_code.'_CHECK_CARD_CODE' ) ) {
$require_cvv_code = strtoupper( constant($_PAYMENT->payment_code.'_CHECK_CARD_CODE') );
}
}
?> </td>
</tr>
<tr>
<td>
<label><php>_('PHPSHOP_CHECKOUT_CONF_PAYINFO_NAMECARD') ?>:</label>
</td>
<td>
<input>
</td>
</tr>
<tr>
<td>
<label><php>_('PHPSHOP_CHECKOUT_CONF_PAYINFO_CCNUM') ?>:</label>
</td>
<td>
<input>
</td>
</tr>
<php>
<tr>
<td>
<label>
<php>_('PHPSHOP_CUSTOMER_CVV2_TOOLTIP'), '', '', '', $VM_LANG->_('PHPSHOP_CUSTOMER_CVV2_TOOLTIP_TITLE') ) ?>:
</label>
</td>
<td>
<input>
</td>
</tr>
<php>
<tr>
<td><php>_('PHPSHOP_CHECKOUT_CONF_PAYINFO_EXDATE') ?>:</td>
<td><php>list_month("order_payment_expire_month", @$_SESSION['ccdata']['order_payment_expire_month']);
echo "/";
$ps_html->list_year("order_payment_expire_year", @$_SESSION['ccdata']['order_payment_expire_year']) ?>
</td>
</tr>
</table>
</fieldset>
</td>_('PHPSHOP_CHECKOUT_PAYMENT_OTHER');
}
else {
$title = $VM_LANG->_('PHPSHOP_ORDER_PRINT_PAYMENT_LBL');
}
?>
<fieldset><legend><strong><php></strong></legend>
<table>
<tr>
<td><php>list_nocheck($payment_method_id, false);
$ps_payment_method->list_bank($payment_method_id, false);
$ps_payment_method->list_paypalrelated($payment_method_id, false); ?>
</td>
</tr>
</table>
</fieldset>
</td> |
|
| Back to top |
|
today
Joined: 21 Dec 2007
Posts: 4
|
| Posted: Thu Mar 25, 2010 3:40 am Post subject: Re: Mynxx and file modification |
|
|
I added the code to both files and I now get this error
Fatal error: Call to a member function get_field() on a non-object in /home/superstr/public_html/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php(1) : eval()'d code(1) : eval()'d code on line 156
Paul |
|
| Back to top |
|
psunite
Joined: 27 Jan 2005
Posts: 6213
Location: Columbus OH
|
| Posted: Sun Mar 28, 2010 4:10 am Post subject: |
|
|
| I just sent you a pm with the modified files. |
|
| Back to top |
|
psunite
Joined: 27 Jan 2005
Posts: 6213
Location: Columbus OH
|
| Posted: Sun Jun 06, 2010 3:34 pm Post subject: Re: Mynxx and file modification |
|
|
| Here are the modified files for the mynxx theme. |
|
| Back to top |
|
collectorsinternet
Joined: 17 Sep 2010
Posts: 1
|
| Posted: Fri Sep 17, 2010 10:49 pm Post subject: |
|
|
Replaced with the modified files and get
Warning: require_once(/home/collect/public_html/cms/administrator/components/com_virtuemart/classes/payment/googlecheckout/license.php) [function.require-once]: failed to open stream: No such file or directory in /home/collect/public_html/cms/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php(1) : eval()'d code(1) : eval()'d code on line 71
Fatal error: require_once() [function.require]: Failed opening required '/home/collect/public_html/cms/administrator/components/com_virtuemart/classes/payment/googlecheckout/license.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/collect/public_html/cms/administrator/components/com_virtuemart/classes/payment/googlecheckout/googlecheckout.php(1) : eval()'d code(1) : eval()'d code on line 71 |
|
| Back to top |
|
| |