Jump to content
picarica

[SOLVED] Padloper, after creating everything i can't see radio checkboxes

Recommended Posts

so hello i managed to make every step in padloper guide here https://www.padloper.pw/documentation/product-variations/

but i got stuck that when i create my final product list those products dont have any check boxes, even tho when making color or size field i checked that there will be one choice only and yet when seen on the page its empty, any idea where i should be looking for fix ? i already tried to re-do the whole process but still same i am rpobably doing somethign wrong

replace.png

Share this post


Link to post
Share on other sites

Check your css and js files in case you're hiding the radio buttons there. Can you please share the code you use to render the variations?

Share this post


Link to post
Share on other sites
7 minutes ago, PWaddict said:

Check your css and js files in case you're hiding the radio buttons there. Can you please share the code you use to render the variations?

yes  here it is                               

<p><?php

                                if ($pages->get('/vsetky-produkty/')->variations->count) {
                                    $content .= "<form method='post' class='padloper-cart-add-product' action='" . $config->urls->root . "padloper/add/'>";
                                    foreach ($pages->get('/vsetky-produkty/')->variations as $p) {
                                      $content .= "<input type='radio' name='product_id' value='{$p->id}'>" . $p->color->title . " " . $p->size->title . "</input><br />";
                                    }
                                    $content .= "<input type='submit' name='pad_submit' value='" . __("Add to cart") . "' /></form>";
                                  } else {
                                    $content .= $modules->get("PadRender")->addToCart();
                                  }
                                echo $content;?></p>

also i checked all .css but didnt found anything, <input> is visible but like just empty, i cannot test my .js files if they do something because when i disable them, whole page doesnt show up

Share this post


Link to post
Share on other sites

Please share the code you see in the browser source for the form element.

Share this post


Link to post
Share on other sites
19 minutes ago, PWaddict said:

Please share the code you see in the browser source for the form element.

<form method="post" class="padloper-cart-add-product" action="/padloper/add/">
  <input type="radio" name="product_id" value="1064">Black XS<br>
  <input type="radio" name="product_id" value="1065">Black S<br>
  <input type="radio" name="product_id" value="1066">Black L<br>
  <input type="radio" name="product_id" value="1067">Red XS<br>
  <input type="submit" name="pad_submit" value="Add to cart"></form>

 

Share this post


Link to post
Share on other sites

The reason you don't see the radio buttons is probably because you're hiding them in css or js. So check your code there carefully.

Share this post


Link to post
Share on other sites
2 hours ago, PWaddict said:

The reason you don't see the radio buttons is probably because you're hiding them in css or js. So check your code there carefully.

you were right, these two classes in my template .css did it

 

    input[type="checkbox"],
    input[type="radio"] {
        -moz-appearance: none;
        -webkit-appearance: none;
        -ms-appearance: none;
        appearance: none;
        display: block;
        float: left;
        margin-right: -2em;
        opacity: 0;
        width: 1em;
        z-index: -1;
    }

input, select, textarea {
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-appearance: none;
    appearance: none;
}

i would like to understand whyyy they make radios dissapear, i tried commenting out only apperance:none; and yet it still didnt showed up, i had to coment out these two whole definitons so that it would work, what here makes it goes away ?

Share this post


Link to post
Share on other sites
1 hour ago, picarica said:

i would like to understand whyyy they make radios dissapear, i tried commenting out only apperance:none; and yet it still didnt showed up, i had to coment out these two whole definitons so that it would work, what here makes it goes away ?

Because you have opacity: 0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By picarica
      Hello so i am unable to get to cart/checkout menu , not sure how you even set it up, in the guide it just happend with no setup so what i got it is that i press submit after selecting product, and then it said that item is out of stock even tho i have 50 quantiny in the page, so i enabled negative stock so i could test this out and its weird
      after submit with negative stock i enabled i get this in the url
      localhost/vsetky-produkty/black2/?productId=1065&variationId=0&qty=1&totalQty=8&numberOfTitles=4&totalAmount=0
      but nothing in the page changes ? where is the next step, next step in the official website is payment modules
    • By Jeannette
      Hello Fellows,

      I have a wonderful webshop, using PL and Padopt, a module developed by Julien Vaubourg and highlighted in ProcessWire Newsletter. Here is our shop: cheval-ami.fr
      I am looking for a new developer, helping me to keep the shop smooth and up to date.
      We would like to improve automated invoicing and worldwide shipping, getting DHL integrated and give people the possibility to create their personal accounts and be the nicest shop in the equine industry. We are still a young company, working all in german, english and french. We are very interested in a long time, kind and friendly relationship without any stress, but reliable reactivity in case of urgency. 
      We are based in Hamburg and near Paris and would prefere to work with somebody who is available to catch up around a table, at least sometimes.
      Contact: mail@cheval-ami.fr or +33 626 22 1000 or +49 170 20 28 215
      Thank you, Have a beautiful day,
      Jeannette
    • By Chris B
      Hi,
      I have to develop an e-commerce for a client who sells trips. He wants the customer to be able to enter the contact details for each participant in the order process.
      Ex: if I order a stay for two participants, then in the order process, I should have two information area for each person (firstname, lastname, address, birth, etc.). Then I will have to store the data in the order.
      Can we customize padloper like this?
      thank u
    • By Jeannette
      Hello, I have a wonderful webshop with lovely skills here : cheval-ami.fr
      I need some support sometimes to make sure that everything is nice and up to date.
      We want to improve the integration of Paypal, Stripe, DHL ... create personal accounts for our clients, keep our visual configurateur smooth, include a search enigne and be the nicest shop in the equine industry. We are a start up and very much interested in a long time, kind and friendly relationship without any stress, but good support in case of urgency. 
      We speak english, german and french. We a have our own designer aware of ProcessWire. We could meet in hamburg or Paris.
      Contact: mail@cheval-ami.fr or +33 626 22 1000 or +49 170 20 28 215
      Thank you !
    • By Typografics
      Hi, 
      We build our first PW module, so don't hesitate to share your feedback!
      https://github.com/Typografics/PaymentMollie-PW3
      We developed this payment module for our fundraiser webshop: https://shop.typografics.be/.
      Here you can read the whole story.
      Enjoy the weekend!
×
×
  • Create New...