68 Classifieds Forums
Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Modifications > Help your customers pay for ads in Not Completed status
 
Thread Tools Search this Thread Display Modes
(#1)
civ's Avatar
civ civ is offline
Senior Member
civ is on a distinguished road
 
Posts: 232
Join Date: Mar 2006
Location: Greer, SC
Default Help your customers pay for ads in Not Completed status - 09-28-2006, 12:35 AM

It seems that no matter how much we tweak our checkout process there are still users who are not smart enough to make it all the way through - sometimes I just don't get it, lol.

With this small mod though you can give them the opportunity to pay for those listings that they abandoned for one reason or another. This is what it will look like when they browse their listings:



When clicking that link they will be injected into step 6 of the normal checkout process, where they will only have to choose the payment provider they wish to use (paypal, CC, etc), and submit their payment.

Here is how to add this simple mod...

Find these lines in userbrowselistings.tpl.php:

Code:
{elseif $entry.display == "Y"} {$smarty.const.LANG_YES} {else} {$smarty.const.LANG_NO} {/if}

And add this code immediately after them:

Code:
{if $entry.display == "C"} <br /><a href="usercheckout.php?step=6&listingid={$entry.id}" style="font-weight: bold; color: green;">Pay & activate</a> {/if}

I hope this helps someone.

Last edited by civ : 09-28-2006 at 04:29 PM.
(#2)
juven14's Avatar
juven14 juven14 is offline
Moderator
juven14 is on a distinguished road
 
Posts: 1,305
Join Date: Mar 2006
Location: NJ/NYC Area
Default 09-28-2006, 08:33 AM

That is a nice touch civ, will probably use that.


Regards,

John
mods.auscity.com
v3.1.4 Developer

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
(#3)
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
Lhotch is on a distinguished road
 
Posts: 1,116
Join Date: Mar 2006
Default 09-28-2006, 09:03 AM

Great idea Civ.
(#4)
BigOrange BigOrange is offline
Member
BigOrange is on a distinguished road
 
Posts: 52
Join Date: Sep 2006
Location: USA
Default 09-28-2006, 09:24 AM

Quote:
Originally Posted by civ
Code:
{if $entry.display == "C"} <br /><a href="usercheckout.php?step=6&listingid={$entry.id}" style="font-weight: bold; color: green;">Pay & activate</a> {/if}

I couldn't get that to work for me. I'm not sure why. Has anyone else tried it?

I made a slight change to the logic however and it worked fine. Here is what I have that works:


Code:
{if $entry.display != "Y"} <br /><a href="usercheckout.php?step=6&listingid={$entry.id}" style="font-weight: bold; color: green;">Pay & activate</a> {/if}

I'm new to 68Classifieds so what I did may have screwed something else up.

Thanks for the mod I see where it can be helpful.

One other thing that would be a real help in getting listings paid for would be a means to email an invoice from the admin panel to users who did not complete the PayPal process or to users who placed a new ad and choose to pay by email.

It is already possible to generate an invoice with a print button. It would be great if there was an "email" button there also that would send the invoice to the user.

I don't know 68 code well enough yet to write the code but I'm sure there is someone here who can. I hope it can be done so the mod would work with the designer package.


V3.1.5 Designer

I have never forgotten anything! Well, if I have I can't remember what it was...
(#5)
Chaslie's Avatar
Chaslie Chaslie is offline
Moderator
Chaslie is on a distinguished road
 
Posts: 397
Join Date: Mar 2006
Location: Great Ocean Road - Australia
Default 09-28-2006, 09:46 AM

e-x-c-e-l-l-e-n-t!

Well done CIV.


Chaslie
V3.1.4 dev
mods.auscity.com
eSHOPPER.com.au
(#6)
BigOrange BigOrange is offline
Member
BigOrange is on a distinguished road
 
Posts: 52
Join Date: Sep 2006
Location: USA
Default 09-28-2006, 12:49 PM

I added the following code to my layout.tpl.php file to remind users of unpaid listings anytime they are logged in.

It shows a red menu item "Unpaid Listings" in the Members Options menu if there are unpaid (Not Active) listings. If there are no unpaid listings it doesn't appear in the menu. Clicking on the menu item takes you to userbrowselisting.tpl.php.

Code:
<!-- Mod to display Unpaid Listings menu item. --> {if $entry.display != "Y"} <tr> <td class="navlist"><img src="images/bullet.gif" width="15" align="top" alt="" /><a href="{$smarty.const.URLS}/userbrowselistings.php"><font color="RED">Unpaid Listings</font></a></td> </tr> {/if} <!-- Mod to display Unpaid Listings menu item. -->

This seems to work but will need testing.


V3.1.5 Designer

I have never forgotten anything! Well, if I have I can't remember what it was...

Last edited by BigOrange : 09-28-2006 at 02:02 PM.
(#7)
motoenth motoenth is offline
cabin boy
motoenth is on a distinguished road
 
Posts: 103
Join Date: Mar 2006
Default 09-28-2006, 04:19 PM

Yes - excellent idea!


---------
Blair
(#8)
suzkaw suzkaw is offline
Staff
suzkaw is on a distinguished road
 
Posts: 1,232
Join Date: Mar 2006
Location: Belmont, NC
Default 09-28-2006, 04:23 PM

I just stickied this thread.

Great job!


--
Thanks,
Eric Barnes
68 Classifieds

Documentation - Bug Reports - Modifications - My Blog
(#9)
civ's Avatar
civ civ is offline
Senior Member
civ is on a distinguished road
 
Posts: 232
Join Date: Mar 2006
Location: Greer, SC
Default 09-28-2006, 04:26 PM

Quote:
Originally Posted by BigOrange
I couldn't get that to work for me. I'm not sure why. Has anyone else tried it?

I made a slight change to the logic however and it worked fine. Here is what I have that works:


Code:
{if $entry.display != "Y"} <br /><a href="usercheckout.php?step=6&listingid={$entry.id}" style="font-weight: bold; color: green;">Pay & activate</a> {/if}

I'm new to 68Classifieds so what I did may have screwed something else up.

Thanks for the mod I see where it can be helpful.

One other thing that would be a real help in getting listings paid for would be a means to email an invoice from the admin panel to users who did not complete the PayPal process or to users who placed a new ad and choose to pay by email.

It is already possible to generate an invoice with a print button. It would be great if there was an "email" button there also that would send the invoice to the user.

I don't know 68 code well enough yet to write the code but I'm sure there is someone here who can. I hope it can be done so the mod would work with the designer package.

I would not recommend checking to see if display is not "Y" - doing so will cause this link to show for expired listings. We already have a Renew link built into 68C for that. "C" in the 'active' db field (in the products table) is what signifies the "Not Completed" status, at least it does in our 3.1.5 version. Check your db and see what that field is populated with for "Not Completed" listings and use that if "C" isn't working for you.

I've wanted a way to email these "Not Complete" people for awhile now too - I may look more into it as it would be a definite revenue-booster.
(#10)
BigOrange BigOrange is offline
Member
BigOrange is on a distinguished road
 
Posts: 52
Join Date: Sep 2006
Location: USA
Default 09-28-2006, 05:19 PM

Quote:
Originally Posted by civ
I would not recommend checking to see if display is not "Y" - doing so will cause this link to show for expired listings. We already have a Renew link built into 68C for that. "C" in the 'active' db field (in the products table) is what signifies the "Not Completed" status, at least it does in our 3.1.5 version. Check your db and see what that field is populated with for "Not Completed" listings and use that if "C" isn't working for you.

I've wanted a way to email these "Not Complete" people for awhile now too - I may look more into it as it would be a definite revenue-booster.

The reason I checked to see if display was NOT "Y" was because if you use "C" it doesn't check for payments not received by check or money order. I wanted users paying by check to to be reminded why their listing has not been made active when they come back on a return visit. I didn't know about the expired listings not being a "Y" but I have tested and you are correct. They also display the red menu item and that would not be acceptable.

Is there a way to include the payers by check other than checking for "Y"? If not I will change back to checking for == "C"

BTW, the original code was functioning properly. I found my mistake.


V3.1.5 Designer

I have never forgotten anything! Well, if I have I can't remember what it was...

Last edited by BigOrange : 09-28-2006 at 05:23 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2006, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com