Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to display highest current offer on the front end / product page. #257

Closed
angelleye opened this issue Oct 4, 2016 · 6 comments
Closed
Assignees
Milestone

Comments

@angelleye
Copy link
Collaborator

angelleye commented Oct 4, 2016

Steve Anders via email:

After a user has made on offer on a product they want the ability to display the current highest offer on the product page. I have found the setting to display how many offers a product has, but I do not see an option to display the amounts offered. Does this functionality exist? Is there potentially a code work around that will display this value?

  • We need only the highest offer to display on the front end product display page.
  • If there are multiple offers of the same amount we need the most recent to display.
  • We need a shortcode call so that we can move the position of the displayed offer.
@angelleye angelleye modified the milestones: 1.4.0, 1.3.1 Oct 4, 2016
@angelleye
Copy link
Collaborator Author

So I think what we can do here is add an option in the settings panel where you can "Display highest current bid on product page."

If this is enabled, it would display that nicely on the product page next to the product price.

The shortcode we can make available regardless of whether it's enabled on the product page.

@angelleye
Copy link
Collaborator Author

I've made some adjustments to verbiage. I'm also trying to use number_format($max_amount,2) so that it will output 2 decimal places, but for some reason it's not working for me..??

For example, this...

image

Needs to be 10.00 instead of just 10.

@kcppdevelopers
Copy link
Contributor

I am done with price format and shortcode functionality and push to the issue branch.

Below is the shortcode example.

[highest_current_offer]

@angelleye
Copy link
Collaborator Author

Re-opening this because the Highest Current Offer box is getting output on the product page even when offers are not enabled for the product. To reproduce...

  1. Enable offers for a product.
  2. Submit an offer for the product.
  3. Refresh the product page to see the Highest Current Offer displayed.
  4. Disable offers for the product.
  5. Refresh the product page and you'll see the offer button goes away, but the Highest Current Offer still displays. We need to make sure we are only displaying this if offers are enabled for the product.

@angelleye
Copy link
Collaborator Author

One more thing I'd like to do here. The Highest Current Offer div we added is showing up under the product price. Then our offer button and pending offer count shows up after the add to cart button...

image

I would like to move the Highest Current Offer div so that it shows up after the offer button, before the pending offer count.

@angelleye
Copy link
Collaborator Author

@mdrahul

This is working fine for me on products with a price...

image

However, on products without a price the Highest Current Offer box is not showing up at all.

image

angelleye pushed a commit that referenced this issue May 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants