• PaymentsPlus

    PaymentsPlus is licensed as GNU GPL ver.2.  To access public areas you must be registered & logged in, where you can access  basic information & the General Forums.  To access member only download and or support areas you must have a current subscription.... Read More
  • Support Services

    PaymentsPlus offers component download & support services on a sucsbription basis. Choose from 4 access levels for support or member download areas. Platinum members get the greatest access and a discount is offered if renewed before the expiry date.
    Read More
  • Need Extra Help?

    Public forums are for user to user support only, whilst posts are answered on occasion by admin no guarantees are made. Whereas Member Forums/Priority Support are for current subscribers. Member forums has 1st priority & are usually answered in 12-24 hours.Read More
Mon 21 May 2012, 09:01 AM
Text Size
   

Login Form



Popular Sticky Posts

Member Discussions
Posts discussing possible new features for PaymentsPlus that requires some member input.

New Demo Site for PaymentsPlus 3.20
I'm please to announce the new Demo Site for PaymentsPlus 3.20 on Mtree 2.23 Using Joomla 1.7. I invite all members and guests to have a look at the New Demo and post any comments you may have, before the official release in hopefully the next few days.

Add Listing Links Change Display
A discussion on changing the Add Listing Product display links to somthing more dynamic.

Development of HP Plugin for PaymentsPlus
A call to users of Mosets Hot Property to help with the development of the HP Plugin for PasymentsPlus.

Popular Sticky Posts

Need Fix For Kinabalu Template
PaymentsPlus 2.0 Series does not support the kinabalu template. This post has some member advise of creating a patch kit for kinabalu.

Who's Online

We have 59 guests online

Statistics

Paid Platinum Members : 165
Paid Gold Members : 83
Paid Silver Members : 28
Paid Copper Members : 189
Registered Only : 1920
Total Members : 2385
Content : 22
Web Links : 8
Content View Hits : 197541
93.9%United States United States
1.2%Australia Australia
0.9% 
0.4%United Kingdom United Kingdom
0.3%India India
0.3%Canada Canada
0.2%Italy Italy
0.1%Japan Japan
0.1%Germany Germany
0.1%Pakistan Pakistan

Today: 3
Yesterday: 64
This Week: 3
Last Week: 1807
This Month: 4145
Last Month: 4495
Total: 212307

Member Statistics

Newsflash

Patch Kit for PaymentsPlus 3.21 for Mtree 2.2.5 using Joomla 2.5 series is now available From the Members Download area.

Patch Kit for PaymentsPlus 2.30 for Mtree 2.1.12 using Joomla 1.5 series is now available From the Members Download area.

As of 16 March 2012 PaymentsPlus officially welcomes Frank from FS_Design as a new forum moderator. See forum Anouncements for more info.

PaymentsPlus 3.21 for Mtree 2.2.4 using Joomla 2.5 series is now available From the Members Download area.

PaymentsPlus 3.20 for Mtree 2.2.3 using Joomla 1.7 series is now available From the Members Download area.

PaymentsPlus 3.00 & 3.10 for Mtree 2.20 to 2.2.3 using Joomla 1.6 series is also available From the Members Download area.

Search Listing By ID Module is Now Available for Joomla 1.5 Series and Joomla 1.6 series From the Free Download area (requires registration to download).

Over the past few years on Mosets forums there's been several requests to be able to search listings by ID, well good news .... the wait is over simply by installing this new module.

 

Read more...
 

Why a PaymentsPlus Subscription?

In the traditional model of software delivery, upgrades are costly, access to help is limited, there is no incentive for vendors to improve software between upgrades, and if customers want the latest technology, they have to wait for the next release, whenever that is.

With a PaymentsPlus membership subscription we give you high-value technology as it's developed. The open source development model coupled with the subscription business model uniquely delivers tested and quality-controlled features and updates. Rapid innovation coupled with trusted delivery—this is how PaymentsPlus delivers the value our paid members have come to expect.

Subscription Benefits

  • Keep your systems secure - Get the latest, tested patches through the PaymentsPlus support Network.
  • Access support you can trust - Deploy confidently with the backing of PaymentsPlus experts.
  • Save time - Become more efficient with new and additional PaymentsPlus capabilities.
  • Get the latest software faster - Access newly tested PaymentsPlus updates and versions.
  • Keep your technology under control - Simplify managing PaymentsPlus with version control.
  • Get better performance and support - Improve performance. PaymentsPlus running the latest updates performs better and makes issue-resolution easier.
  • Grow your technology infrastructure responsibly - Gain greater control over your investment. PaymentsPlus Membership Subscriptions are an easier, more efficient way of doing business.

 

Read more...
 
Home FAQ PaymentsPlus General FAQs PaymentsPlus General Faqs Imported Listings - How to make it work with PaymentsPlus

Favourites Create PDF Email Print

Imported Listings - How to make it work with PaymentsPlus

Author:
Administrator
Date added:
Friday, 11 March 2011
Last revised:
Saturday, 05 March 2011
Hits:
944
Rating:
 
Vote for this:
Good - Bad
favoured:
0 Favour

Answer

There has always been a problem with importing listings as PaymentsPlus was designed for new sites and because customising import SQL statements could be very different from one site to another, it would be just impossible to create a generalised script to handle it. So, unfortunately the only way to update the data is to do it manually with PhpMyAdmin from your servers Cpanel.

If you have multiple Admin's and you don't want to give them access to your Cpanel then there is an admin module that can be installed in your Joomla to give PhpMyAdmin access via Joomla's Admin panel if you don't want to give your admins access to cpanel.

See Link Below: Read the reviews there is a review from tradewise with a how to for installation.
JooMyAdminLite

BEFORE PROCEEDING ANY FURTHER BACKUP YOUR DATABASE

Also note that the information given here should be performed by someone with some experience with SQL databases. I've endeavoured to write this information to be as informative as possible, but at the end of the day these proceedures can become quite complex, so proceed only at your own risk!.

Due to the time that could be involved extra support in this area is very limited and if needed will be regarded as a custom modification and charged accordingly. Note: On Server Support included with Platinum Memberships is not available for issues involving importing or modifying existing listings prior to installing PaymentPlus.

If you want a Tutorial on using PhpMyAdmin just Google PhpMyAdmin Tutorial

DISCLAIMER: All SQL code given in this FAQ is given as a guide only and may need to be adjusted to suit the individual website. Whilst I think the code is technically correct t has not been tested and therefore it is not guaranteed.


In an original Install of  Mosets Tree your lisitings will be flagged as Featured or Not Featured in the table jos_mt_links under column link_featured.
Featured will = 1 and Not Featured will = 0.  The database AND Mtree default = 0.

PaymentsPlus modifies link_featured to further define the different listing types. A standard install of PaymentsPlus changes the Mtree structure to:
Free = 0, Featured = 1 and Standard = 2 and then allows you to add your own types if needed. Additionally PaymentsPlus adds some new columns to jos_mt_links but at this stage the only one of concern is ipn_product_id .


When Importing Listings there a lot of things to take into consideration and each of these may need different values added to make them work with PaymentsPlus. Generally your imported or original listings prior to PaymentsPlus will be definded in two groups:


GROUP 1.
Listings are owned by Admin and set up to be Claimed by a User prior to installing PaymentsPlus
Imported or existing Listings owned by Admin are a little easier to modify because there's only a few values you need to change to make them Claimable for use with PaymentsPlus. Note however that once you've modified the imported or existing listings there is a Claims process you'll now need to follow to generate the Payment Buttons for the user once the Claim is approved. This Clams process is very different to the original Mtree claims process.

The following values need to be set in order for the Admin owned listing to still be published and ready for claiming. Most likely your listings will be set up as Free Listings, but if they are not then you need to adjust the value for link_featured and also for  ipn_product_id which is the PaymentsPlus Product (See PaymentsPlus > Manage Products) that uses that Listing Type (See PaymentsPlus > Manage Listing Types):

Set link_published = 1
Set link_approved = 1
Set publish_up =  0000-00-00 00:00:00
Set publish_down =  0000-00-00 00:00:00
Set link_featured = 0
Set ipn_product_id = 3

All of your imported or original listings will be lacking the ipn_product_id so it will be easy enough update the entries using PhpMyAdmin with a simple SQL statement to run.

First run the following statement, it will give you a count and list all the affected rows.
The count is handy especially if you need to alter the imported records to have different product ID's or you have listings affected by Group 2. However for simplicity you should try to make them all the same and these instructions assume thy will all be the same. :

SELECT * FROM `jos_mt_links` WHERE `ipn_product_id` = '' OR `ipn_product_id` = 'NULL'

Then run the approprite satatement below to update all the rows. When you've finished making adjustments, the totals of each adjustment should then be the same as the above result. Note the ipn_product_id value will need to be adjusted to the product ID that YOU wish to use that also matches the Listing Type. (See PaymentsPlus > Manage Products and PaymentsPlus > Manage Listing Types):

IF YOU DO NOT HAVE ANY LISTINGS THAT ARE AFFECTED BY GROUP 2 BELOW,  THEN USE THIS STATEMENT.
Note the ipn_product_id value will need to be adjusted to the product ID that YOU wish to use that also matches the Listing Type.

UPDATE `jos_mt_links` SET `link_featured` = '0', `link_published` = '1', `link_approved` = '1',  `publish_up` = '0000-00-00 00:00:00', `publish_down` = '0000-00-00 00:00:00', `ipn_product_id` = '3',   WHERE `ipn_product_id` = '' OR `ipn_product_id` = 'NULL'

IF YOU HAVE ANY LISTINGS THAT ARE AFFECTED BY GROUP 2 BELOW,  THEN YOU NEED TO MODIFY THE SQL.
Before proceeding you will also need to know the USER ID/s of the Administrator/s who owns or created the listing. It's simple enough if there is only one Admin but if there is more than one you need to identify ALL the admins in the SQL statement.

Only ONE Admin:
We'll asume the User Id for this Admin is 62, you'll need to adjust accordingly.

UPDATE `jos_mt_links` SET `link_featured` = '0', `link_published` = '1', `link_approved` = '1',  `publish_up` = '0000-00-00 00:00:00', `publish_down` = '0000-00-00 00:00:00', `ipn_product_id` = '3',   WHERE `ipn_product_id` = '' OR `ipn_product_id` = 'NULL' AND `user_id` = '62'

More Than ONE Admin:
For each Admin you only need to add an OR clause for each additional Admin. Lets' say second Admin was User Id 63.

UPDATE `jos_mt_links` SET `link_featured` = '0', `link_published` = '1', `link_approved` = '1',  `publish_up` = '0000-00-00 00:00:00',  `publish_down` = '0000-00-00 00:00:00', `ipn_product_id` = '3',   WHERE `ipn_product_id` = '' OR `ipn_product_id` = 'NULL' AND `user_id` = '62'  OR `user_id` = '63'

The above statements will essentially set all listings that did not have a ipn_product_id numeric value and additionally set the other values needed accordingly. Setting publish_up and publish down to 0000-00-00 00:00:00 basically means the listings will never expire. So they'll remain published till they are CLAIMED.

REMEMBER once you've modified the imported or existing listings there is a Claims process you'll now need to follow to generate the Payment Buttons for the user once the Claim is approved. This Clams process is very different to the original Mtree claims process.

GROUP 2.
Listings are owned by a User prior to installing PaymentsPlus
In this situation the solutions can be very complex and extreme care needs to be taken so don't forget to BACKUP your database first.

Doing this globally for all imported and existing listings owned by different users that may use different Listing Types and or Products can require extensive additional work. This is because of the endless senarios that are possible, so,  it's impossible to write a one solution suits all.

The information below is given as a guide only and assumes that ALL the listings affected will have the same Listing Type AND the same Product ID.  If they are different to your situation then you'll need to create custom SQL statements and run them to suit your needs. Again this is a Guide ONLY not a How To or Tutorial.

The main problem with owned listings is that they will be mostly published and they need to be handled independently of Admin owned listings. Additionall you need to decide if the listings will be UN PUBLISHED to the equivilant of an expired status OR PUBLISHED with a globally set Publish Down Date (expiry date set for xxx date).  Below I will show two sample SQL statements.

From page 44 of the PaymentsPlus User Manual you can see the different statuses that can be applied. Both these senarios will apply one of these statuses.

Set User Owned Listings as UN PUBLISHED Status =  NEW LISTING
A New Listing Status would normally apply where a user creates a listing and this would be the most ideal starting point.  Being set like this you'll need to devise some way of contacting the user/s to invite them to confirm or purchase the listing because the listing will be un-published until the payment/confirm button is processed by the user an inturn approved by Admin.

Only ONE Admin:
We need to issolate any listings owned by Admin/s so with a slight to the above SQL's. We simply put an exclamation mark in front of the equals sign, this then reads as NOT EQUALS thus not including any listing that contains that User ID

UPDATE `jos_mt_links` SET `link_featured` = '0', `link_published` = '0', `link_approved` = '0',  `publish_up` = '0000-00-00 00:00:00', `publish_down` = '0000-00-00 00:00:00', `ipn_product_id` = '3',   WHERE `ipn_product_id` = '' OR `ipn_product_id` = 'NULL' AND `user_id` != '62'

More Than ONE Admin:
For each Admin you only need to add an OR clause for each additional Admin. Lets' say second Admin was User Id 63.

UPDATE `jos_mt_links` SET `link_featured` = '0', `link_published` = '0', `link_approved` = '0',  `publish_up` = '0000-00-00 00:00:00',  `publish_down` = '0000-00-00 00:00:00', `ipn_product_id` = '3',   WHERE `ipn_product_id` = '' OR `ipn_product_id` = 'NULL' AND `user_id` != '62'  OR `user_id` != '63'

This example will assume the listings are of a FREE type and their PaymentsPlus Product ID = 3. Obviuosly these may be different to your requirements and will need to be adjusted accordingly. This senario will unpublish all imported and existing listings prior to installing PaymentsPlus and set them as a New Listing. This will enable the Confirm Button to show for each listing which can be accessed from the My Page links after a user logs in.

Set User Owned Listings as PUBLISHED and Expiring in up to 60 Days. Status = RENEW NOW
This option will set the listing so it expires at some date in the future, so it will stay published til then. Note, this will only emulate that a subscription exists and an actual subscription will not be set up or saved in PaymentsPlus until a payment option is processed.

This example will assume the listings are of a STANDARD type (Paid Listing Listing Type = 2) and their PaymentsPlus Product ID = 5. Obviuosly these may be different to your requirements and will need to be adjusted accordingly. This senario will publish all imported and existing listings prior to installing PaymentsPlus and set them as a Listing about to Expire. This will enable the Payment Button options to show for each listing which can be accessed from the My Page links after a user logs in. Note you must set the expiry days to be LESS THAN 60 days otherwise the listing will show as current and not display the payment options.

 

Only ONE Admin:
We need to issolate any listings owned by Admin/s so with a slight to the above SQL's. We simply put an exclamation mark in front of the equals sign, this then reads as NOT EQUALS thus not including any listing that contains that User ID

UPDATE `jos_mt_links` SET `link_featured` = '2', `link_published` = '1', `link_approved` = '1',  SET `publish_up` = '0000-00-00 00:00:00',  `publish_down` = '0000-00-00 00:00:00', `ipn_product_id` = '3',   WHERE `ipn_product_id` = '' OR `ipn_product_id` = 'NULL' AND `user_id` != '62'

More Than ONE Admin:
For each Admin you only need to add an OR clause for each additional Admin. Lets' say second Admin was User Id 63.

For Dates to function you'll need to Set publish_up to yesterdays date and then set publish down to up to 60 days forward
Format is YYYY-MM-DD HH-MM-SS

UPDATE `jos_mt_links` SET `link_featured` = '2', SET `link_published` = '1', `link_approved` = '1',  `publish_up` = '2011-02-04 00:00:00',  `publish_down` = '2011-04-04 00:00:00', `ipn_product_id` = '5',   WHERE `ipn_product_id` = '' OR `ipn_product_id` = 'NULL'  AND `user_id` != '62'  OR `user_id` != '63'

 

 

 

 

Category


Tradewise Promotions Developer of PaymentsPlus Copyright © 2009 All Rights Reserved