Forum Replies Created

Viewing 15 replies - 1 through 15 (of 39 total)
  • Thread Starter Goran

    (@hrvan)

    Thanks @etiennep,

    If anyone needs something similar, I can provide more details, or screenshots, link, whatever… 😉

    Thread Starter Goran

    (@hrvan)

    Hi to all.
    Yesterday was one of those days when you just can’t think straight.
    This morning in an hour I’ve managed to fix the problem that was bothering me.
    There was a conflict with the themes css, but I’ve managed to force mine.
    I see there was some interest about the subject so let me explain the problem and how I’ve managed to fix it.
    First of all the problem:
    I’ve wanted to create a page where I can show all the services provided, and where people can make and estimation price for them. The best way was using woocommerce. I’ve created products (my services). Then, what I wanted was to pull those products within a page I’ve made, but without unnecessary info. Since there was a lot of services, the best way to display them was grids. But yesterday I’ve got all of the dropdowns and add to cart buttons in the same place. When I’ve changed the css today, everything looks neat.

    Thread Starter Goran

    (@hrvan)

    I’m making a special page where I will make calculations.
    I’ve tried the [product id=”2162″] and then with CSS I hide other info except variation dropdown and add to cart button. But when i put more then one product to that page dropdowns and buttons come to the same side. Whatever I do I can’t seem to control them with css. They all go to the left side of the page even though I place them in side the grid.

    Thread Starter Goran

    (@hrvan)

    Thanks indeed!

    Thread Starter Goran

    (@hrvan)

    Hello.
    This is how I was using it before for any other occasions. But the thing is this needed to be a button I can click. If I use an Line Text DS for this is it possible it can be clicked?
    I don’t think so…
    Through ACF I’m parsing the link to a PDF like http://www.somewebsite.com/images/somepdf.pdf
    I’m using this on my packages, and I would like to pass this inside CFF.
    If I somehow can trigger Line Text DS over the class or something this wouldn’t be a problem for me to design it latter with css.

    Thread Starter Goran

    (@hrvan)

    By ACF I mean advanced custom fields. They are stored in table wp_postmeta. I’m importing a lot of data in this form with them but now I need to find a solution for this button. Any ideas?

    Thread Starter Goran

    (@hrvan)

    Hello.
    I understand.
    I made a form with exact problem I have here on another website which is online.
    You can check the problem there but I need an email so I can send you the password.
    Best regards.

    Thread Starter Goran

    (@hrvan)

    I need an email to send those informations…

    Thread Starter Goran

    (@hrvan)

    I understand. That is why I told you I’ll make copy of this what I have locally on another site that is online (but in the test phase still so you have to logon to be able to test it).
    Is it ok like that?
    I already finished, just need to send you password and user so you can log on.

    Thread Starter Goran

    (@hrvan)

    I’m using this: localhost/testpage/test-form/?nadoplata=160 where test-form is the page where booking form is and nadoplata=160 is the value I’m parsing to fieldname192 (Currency DS).
    That part is working. I’m getting that value.
    But I want that value to be the value of checkbox (fieldname193).
    That part I can’t fix.

    Thread Starter Goran

    (@hrvan)

    I’m trying to implement the code on my other site which is already online…
    Can you send me email where I can send user and password?

    Thread Starter Goran

    (@hrvan)

    I understand. I would send you a link if this site is not local.
    And I can’t send pictures to you here (printscreens from cff), but that’s not possible either.
    I can only give exact parameters to you if this is helping to recreate what I have here on my computer.
    I know I chenged a lot from the beginning but I was trying to find something that works by myself as well and just digg myself deeper.
    So there are 2 fields in game only.
    First one is fieldname192 which is Currency DS.
    The value of it I’m getting over URL with the code:
    [CP_CALCULATED_FIELDS_VAR name=”nadoplata”]
    <SCRIPT>
    cpcff_default = { 1 : {} };
    if(typeof nadoplata !== ‘undefined’) cpcff_default[1][ ‘fieldname192’ ] = nadoplata;
    </SCRIPT>
    And that part is working, the value is passed without a problem.
    Now I have a second field – fieldname193 which is a checkbox. I’ve added here text testing and value 0. Instead of value 0 I want to display the result from fieldname 192. Is this what is helping you to understand what exactly I want to do?

    Thread Starter Goran

    (@hrvan)

    I completely understand. The page is still on my local computer though. If I export a table from my database can this help? What table should I export?

    Thread Starter Goran

    (@hrvan)

    Hi.
    Thank you for trying to help me! I really appreciate your help.
    I know you are already sick of me, and it’s ok.
    I did exactly what you’ve said:
    Made HTML content with equation:
    <script>
    jQuery(document).one(‘change’, ‘[id*=”fieldname193_”]’, function(){
    setTimeout(function(){jQuery(‘[id*=”fieldname193_”][value=”‘+nadoplata+'”]’).change();}, 2000);
    });
    </script>
    fieldname193 is checkbox.
    fieldname 192 is currency DS where I get the value I want to show in fieldname193.
    But this is not working ;(
    Thanks again.
    Best regards

    Thread Starter Goran

    (@hrvan)

    Hello,
    and sorry again you didn’t understand what I wanted.
    fieldname192 is Currency DS. It’s getting the value through this equation:
    [CP_CALCULATED_FIELDS_VAR name=”nadoplata”]

    <SCRIPT>
    cpcff_default = { 1 : {} };
    if(typeof nadoplata !== 'undefined') cpcff_default[1][ 'fieldname192' ] = nadoplata;
    </SCRIPT>

    Now I want to populate the checkbox or checkbox DS (which one I can) that has only 1 choise with the value from fieldname192. Let’s say that checkbox is fieldname193.

Viewing 15 replies - 1 through 15 (of 39 total)