• Hi, I need to add additional price options – some kind of radio button with “per square meter”, and another input with “a lump sum”. Where in the code I can find all of places where price is? I want to set those atts up from admin panel, and see it in all frontend places. Could you help? Must I code it, or is there any possibility to do it from Jigo?

    I po polsku. Potrzebuję dodać dodatkowe pola w okolicach ceny – radio button z opcją typu “za metr kwadratowy” i kolejny input z pozycją “ryczałt”. Gdzie w kodzie mogę znaleźć wszystkie miejsca gdzie znajduje się cena? Chciałbym te pozycje ustalać z poziomu administratora, i widzieć je we wszystkich miejscach na stronie w okolicach ceny. Możecie pomóc? Muszę to kodować, czy jest możliwość wykonania tego z poziomu Jigo?

    https://wordpress.org/plugins/jigoshop/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jigoshop Support – Marcin

    (@azrielnefezen)

    Hi insejn,
    Well, could you describe what you’re trying to accomplish in a more precise manner? What would be the expected result of clicking such a radio button? What data would you be passing in the aforementioned input? Please give me more details, so that I’ll be able to provide you with more information 🙂

    Po polsku również :
    Mógłbyś mi wytłumaczyć dokładniej, co chciałbyś przez to osiągnąć? Co miałoby dziać się po kliknięciu na ten radio button, jakie dane będziesz przekazywał tym input’em? Podaj mi więcej detali, wtedy będę mógł Ci podać jakieś konkrety 🙂

    Regards,
    Marcin

    Thread Starter Piotr Konicki

    (@insejn)

    Hi Marcin,

    I want to click on radio button (or checkbox), and it will add only some text after price. Something like: press on checkbox called “mb”, and it will add after price text “za mb”, so price will look like: 50zł for mb 🙂 Or the same case with square meter, I want to click checkbox “m2”, and in every place with price, the price will look like “50zł for square meter”. I’ve added to edit product page suitable checkboxes, but I can’t move on 🙂

    Chcę kliknąć w radio button albo checkbox, i ta opcja doda mi kawałek tekstu za ceną. Coś jak: klikam checkbox lub radio nazwane “mb”, a opcja dodaje tekst za ceną “za mb”, więc cena będzie wyglądać jak: 50zł za mb 🙂 Albo ten sam przypadek z metrami kwadratowymi, chcę kliknąć checkbox “m2” i w każdym miejscu z ceną będzie ona wyglądać tak: “50zł za metr kwadratowy”. Dodałem checkboxy do strony edycji produktu, ale nie mogę ruszyć dalej 🙂

    Regards,
    insejn

    Plugin Author Jigoshop Support – Marcin

    (@azrielnefezen)

    Hi insejn,
    You can hook up to the ‘jigoshop_product_get_price_html’ filter and add a function which will add your text, also on the ‘update_post_meta’ action you might want to check the contents of your $_POST table for your checkbox/radio button and depending on that trigger the aforementioned filter

    Możesz się podpiąć pod filtr ‘jigoshop_product_get_price_html’ funkcją, która doda Twój tekst, a na akcję ‘update_post_meta’ sprawdzać swoją tabelę $_POST, a konkretnie swój checkbox/radio button i w zależności od ich stanu odpalać wcześniejszy filtr 🙂
    Regards,
    Marcin

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Additional options for price’ is closed to new replies.