Public Ticket #3586781

ACF for product condition

Closed
Comments
2 Tickets 1
Hector started the conversation 3 years ago on February 17, 2024 at 2:54pm

Hi,

i want to add a field for product condition on the vendor dashboard. where they can choose whether the product is new, pre-owned or refurbished. And can the condition show next to the product name or as a badge.

2,762
KingsPlugins replied 3 years ago on February 18, 2024 at 3:45am

Hi Hector,

It is possible to add this kind of ACF field to the vendor dashboard.

I am not sure if you have seen this, we have a guide here for how to add it: https://marketkingplugin.com/docs/adding-editable-product-fields-with-acf-in-marketking/

Basically it would be needed to create the field in ACF and then use the above guide to add it to the dashboard.

I am not entirely sure whether ACF supports displaying that field on the frontend as a badge. If not, it can probably be achieved with a bit of custom code.

Let me know if you can get the above implemented. If not, we can also try set it up on your site directly.

Kind regards,

Stefan

1
13 Tickets 8
Demir Aydemir replied 2 years ago on May 3, 2024 at 2:08pm

Hi @WebWizards @Hector,

As far as I observed, ACF integration only worked by adding WebWizards tutorial code to the child theme's functions.php
It didn't show the fields when I used Code Snippets before. Since Code Snippets runs late from the database, it must not be able to catch up with MarketKing, which runs directly from the file. Is this right?

Here is the JavaScript solution to display multiple ACF fields on the Vendor Dashboard properly. https://pastecode.io/s/3avktc12 Before adjusting the style, fields were cramped on top of each other.

Thanks for the ACF integration.

1

Sign In