Advertisement:

Author Topic: [PLUGIN] Offer Button V 2.0.4  (Read 37230 times)

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
[PLUGIN] Offer Button V 2.0.4
« on: March 27, 2013, 04:58:15 am »
Hi All,

I am releasing Offer Button version 2.0.

New Features.
  • Non Logged in users can now place offers as long as the feature is enabled.
  • Added the ability for the seller to contact the potential buyer and vice versa.
  • Sellers can lock buyers from placing offers if the admin has the option enabled.
  • Sellers can delete offers as long as the admin has that option enabled
  • Users placing offers can now choose to place a trade instead of a monetary offer that is if the admin has that option enabled and the seller has the option enabled.
  • Upgraded to the DAO
  • It is also possible to all the seller to contact the potential buyer via pm if you have the PM plugin installed.
  • I also added support for the supertool bar plugin

That is a brief overview of the new changes I have made. Now I guess you are looking for the zip and it it attached right below.

Works with Osclass 2.3, 3.0, 3.1.+

I forgot to mention that to upgrade just copy in the new files and then navigate to the offer buttons settings page and click on the upgrade link and you are all set.

Thanks for downloading.

Updates

3-27-13
fixed warning errors and a typo in the help document.

3-28-13
Fixed so buyer can submit more offers once offer declined.
Fixed an error that came up when you where on an item that the offer button was not set for.

4-8-13
Fixed issue with uninstalling ant then trying to reinstall.

4-19-13
Fixed an issue with the links in the super toolbar.
Fixed issue with the next/prev arrows showing up.

Jay
« Last Edit: April 20, 2013, 01:14:53 am by trains58554 »

geo78

  • Full Member
  • ***
  • Posts: 100
Re: [PLUGIN] Offer Button V 2.0
« Reply #1 on: March 27, 2013, 02:17:41 pm »
User Panel - Above the "View Your Submitted Offers" i get Notice: Object of class DBRecordsetClass could not be converted to int in /home/www/host/mysite.com/www/oc-content/plugins/offerButton/ModelOffer.php on line 240.

In item page and before Make an Offer button i get "Notice: Object of class DBRecordsetClass could not be converted to int in /home/www/host/mysite.com/www/oc-content/plugins/offerButton/ModelOffer.php on line 297 "


George

phpd

  • Full Member
  • ***
  • Posts: 236
Re: [PLUGIN] Offer Button V 2.0
« Reply #2 on: March 27, 2013, 02:30:31 pm »
Fatal error: Call to undefined function offerButton()
I`ve just tested it on enviroment:

localhost xampp
osclass 3.1
modern theme

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #3 on: March 27, 2013, 06:10:39 pm »
@geo78,

Those warning should not show up any more in the updated version.

@phpd,

I had a typo in the help doc the function that you should use is offer_button()

Jay

phpd

  • Full Member
  • ***
  • Posts: 236
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #4 on: March 27, 2013, 07:52:30 pm »
when u submit an offer plus trade, on the user dasboard u cannot see the trade text and no js errors detected
see attached image

geo78

  • Full Member
  • ***
  • Posts: 100
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #5 on: March 27, 2013, 08:38:33 pm »
Warnings gone, thanks

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #6 on: March 27, 2013, 08:43:18 pm »
@phpd,

Do you get any errors in your error log? I tried it in both firefox and chrome and it is working here.

Jay

chaber

  • Newbie
  • *
  • Posts: 16
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #7 on: March 27, 2013, 09:30:35 pm »
Installing OK
Backend appears OK
Configurating categories OK
In User Account appears "View Offers on Your Items (0) - View Your Submitted Offers"

But
Not appearing in item.php

I wrote <?php offer_button(); ?>    in item.php and nothing appears.

 :-[

Osclass 3.0.1 with Wampserver.


phpd

  • Full Member
  • ***
  • Posts: 236
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #8 on: March 27, 2013, 09:45:37 pm »
Installing OK
Backend appears OK
Configurating categories OK
In User Account appears "View Offers on Your Items (0) - View Your Submitted Offers"

But
Not appearing in item.php

I wrote <?php offer_button(); ?>    in item.php and nothing appears.

 :-[

Osclass 3.0.1 with Wampserver.

u need to add a new add or edit existing ones and check boxes "allow trade and place offer"

phpd

  • Full Member
  • ***
  • Posts: 236
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #9 on: March 27, 2013, 10:34:15 pm »
@phpd,

Do you get any errors in your error log? I tried it in both firefox and chrome and it is working here.

Jay

fresh install osclass same problem
erros i get:

PHP Fatal error:  Class 'ModelOffer' not found in \oc-content\plugins\offerButton\ajax-trade.php on line 8
PHP Fatal error:  Class 'ModelOffer' not found in \oc-content\plugins\offerButton\offer_byItem.php on line 59
PHP Fatal error:  Class 'ModelOffer' not found in \oc-content\plugins\offerButton\offer_byItem.php on line 59
PHP Fatal error:  Class 'ModelOffer' not found in \oc-content\plugins\offerButton\offer_byItem.php on line 59


noticed also two things:
1. trade offers does not increment in user dasboard "View Offers on Your Items (1)"
2. if u post an offer and the seller declined it, when u try to post another offer or trade, popup says that u need to post an offer greater than ....(previous one) even if u posted a greater one. It works to post again only if the seller delete your previous offer.

chaber

  • Newbie
  • *
  • Posts: 16
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #10 on: March 27, 2013, 10:34:49 pm »
u need to add a new add or edit existing ones and check boxes "allow trade and place offer"

You are right!

It did not appear in my item-post due to browser cache, so i could not check it and make it visible in the ad, so it was impossible to appear in the ad despite the button code was item.php.

 :P

toteam

  • Newbie
  • *
  • Posts: 2
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #11 on: March 28, 2013, 12:16:13 am »
Hi,
great job!
But I don't know, what is "monetary" and "trade" offer?

phpd

  • Full Member
  • ***
  • Posts: 236
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #12 on: March 28, 2013, 12:33:00 am »
Hi,
great job!
But I don't know, what is "monetary" and "trade" offer?
monetary if u place an offer in cash for example sellers has something for sale let`s say 200$ and u want to offer him 150$
trade if seller sells for example an xbox with 200$ and u want to trade something for that xbox for example psp plus 25$

geo78

  • Full Member
  • ***
  • Posts: 100
Re: [PLUGIN] Offer Button V 2.0.1
« Reply #13 on: March 28, 2013, 05:58:23 pm »
Another one in item.php : Notice: Undefined index: b_offerYes in /home/www/host/mysite.com/www/oc-content/plugins/offerButton/index.php on line 171

It is displayed instead of "Make an offer" button

The listing is in a category that is not selected in the offerbutton settings. (Select the categories where you want to apply these attribute)


George

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [PLUGIN] Offer Button V 2.0.2
« Reply #14 on: March 29, 2013, 06:51:41 am »
@phpd

I am not sure why you are getting the class not found error. Maybe check the permissions of the plugins folder as sometimes that has caused problems if they are set to 777.

Trade offers where adding to the count for me this could possibly be due to the class not found error.

I fixed it so the user can post another offer once the offer before was declined.

@geo78,

I have fixed this error as well.

Thank you all for reporting your bug finds.

Jay