Installation Time: Less than 1/2 Hr
Edition(s): 68classifieds V4.04+ DEVELOPER & DESIGNER
Difficulty: Easy
File Changes: 2 + 1 optional
Step: 1 - Uploads
Unzip the downloaded zip file and upload the entire folder 'maffo_checkout' to your 68 Classifieds 'modules' folder.
Inside the 'maffo_checkout' folder you will see the folder 'prices'. You need to 'chmod' this to 777. If you are unsure of chmod, you can simply search google.
Step: 2 - Backup Files
templates/layout.tpl.php
templates/user/userbrowselistings.tpl.php
Optional if you have the Developers Version - usercheckout.php
Note: This is assuming you are using the standard 68 Classifieds Template Layout
Step:3 - File Changes
open templates/layout.tpl.php
Find this code
- Code: Select all
<link rel="stylesheet" href="templates/{$smarty.const.MAIN_TEMPLATE}/css/style.css" type="text/css" />
add this code directly after
- Code: Select all
{$maffo_checkout_css}
There should be 4 instances of links to
- Code: Select all
usercheckout.php
such as
- Code: Select all
<li><a href="{$smarty.const.URLS}/usercheckout.php">{$smarty.const.LANG_TPL_PLACE_AD}</a></li>
Replace all instances with
- Code: Select all
modules.php?mod=maffo_checkout
example
- Code: Select all
<li><a href="{$smarty.const.URLS}/modules.php?mod=maffo_checkout">{$smarty.const.LANG_TPL_PLACE_AD}</a></li>
Save and Exit
It is vital that if you have any other links to 'usercheckout.php' within your website, for example you have a sitemap, you need to make sure that these links now point to the 'modules.php?mod=maffo_checkout' page.
open templates/user/userbrowselistings.tpl.php
find
- Code: Select all
<td class="{cycle values="row1,row2" advance=false}">
{$entry.expiration|date_format:$dateformat}
{if $entry.oStatus == 3}
{elseif $entry.renew}
<br /><a href="userrenew.php?action=renew&listingid={$entry.id}&orderid={$entry.orderID}">{$smarty.const.LANG_LISTING_CLICK_TO_RENEW}</a>
{else}
<br /><a href="userrenew.php?action=renew&listingid={$entry.id}&orderid={$entry.orderID}">{$smarty.const.LANG_LISTING_UPGRADE}</a>
{/if}
</td>
{if $entry.oStatus==3}
<td class="{cycle values="row1,row2" advance=false}"><input type="button" value="{$smarty.const.LANG_MAKE_PAYMENT}" onClick="MM_goToURL('parent','usercheckout.php?step=6&listingid={$entry.id}&productid={$entry.oProductID}');return document.MM_returnValue" /></td>
{else}
<td class="{cycle values="row1,row2" advance=false}"><input type="button" value="{$smarty.const.LANG_LISTING_MODIFY}" onClick="MM_goToURL('parent','usermodifylisting.php?view={$entry.id}');return document.MM_returnValue" /></td>
{/if}
<td class="{cycle values="row1,row2" advance=true}"><input type="button" value="{$smarty.const.LANG_LISTING_DELETE}" onClick="delrec('{$entry.id}')" /></td>
</tr>
replace with
- Code: Select all
<td class="{cycle values="row1,row2" advance=false}">
{$entry.expiration|date_format:$dateformat}
{if $entry.oStatus == 3}
{elseif $entry.renew}
<!-- <br /><a href="userrenew.php?action=renew&listingid={$entry.id}&orderid={$entry.orderID}">{$smarty.const.LANG_LISTING_CLICK_TO_RENEW}</a> -->
{else}
<!-- <br /><a href="userrenew.php?action=renew&listingid={$entry.id}&orderid={$entry.orderID}">{$smarty.const.LANG_LISTING_UPGRADE}</a> -->
{/if}
</td>
<td class="{cycle values="row1,row2" advance=false}" style="text-align:center"><input type="button" value="{$smarty.const.LANG_LISTING_MODIFY}" onClick="MM_goToURL('parent','modules.php?mod=maffo_checkout&cmd=details&id={$entry.id}');return document.MM_returnValue" /></td>
<td class="{cycle values="row1,row2" advance=true}" style="text-align:center"><input type="button" value="{$smarty.const.LANG_LISTING_DELETE}" onClick="delrec('{$entry.id}')" /></td>
</tr>
Save and Exit
Optional For Owners of the Developers
To be sure nobody enters your old usercheckout system you can add a redirect to usercheckout.php
find
- Code: Select all
require_once('includes/init.php');
add this code directly after
- Code: Select all
header('Location: modules.php?mod=maffo_checkout');exit;
Step: 4 - Initialize the System
Go into your Admin Panel,
click 'manage modules',
click 'regenerate'
activate and initialize the 'maffo_checkout'
Mod Installed
** If the mod doesnt work and you wish to remove it from your system, you can delete the mod from admin->manage modules and by simply replacing the edited files with your backups made in step 2
You can read how to configure the module
http://www.classified-software.co.uk/forum/viewtopic.php?f=4&t=17