Disable radio buttons default in Woocommerce - radio-button

Sorry for my English. Can I disable the default choice radio buttons for shipping costs and payments in Woocommerce? I would like to have radio buttons blank. In short, the radio buttons are activated only when the user clicks. If a user does not fill in, example, the radio button of the shipment will go a window "Attention, choose the method of delivery." I hope I was clear. Thank you very much!

You can try this code snippet
// To test this code, open a private/incognito window,
add an item to the cart and then go to cart page.
// Once an option is choosen, it will be the default option
from that moment onwards.
// Code to clear default shipping option.
add_filter( 'woocommerce_shipping_chosen_method', '__return_false');

WooCommerce automatically chooses the cheapest shipping method available if you do not have a default setup.
http://i.imgur.com/ANKIUqk.png
See the Automatic option at the bottom of the Shipping Methods section? That ensures that it would always choose a radio button.
I'm not saying this is impossible, but it would involve changing the underlying code.
May I know the reason behind not having a default option set? It sounds inefficient in my opinion. If the user does not like the default option, they can easily change it. At least this way, you no longer have to worry about putting in a "Please Choose A Shipping Method" validation.
The default shipping saves clicks for most of your clients especially if you pick the right option as default. The least clicks the better. ;)
Cheers!
As an update based on our discussion below, here's an option to hide the default shipping option...
Say "Free Shipping" is the default option. All you have to do is to add this code to your css...
#shipping_method_0_free_shipping{
display:none !important;
}
Then, the WooCommerce>Settings>Shipping Methods dashboard, remove the "Free Shipping" label and change it to a "." (if you make it blank, this will not work) so that no label will appear after the shipping button is handled.
However, this just makes sure that the default shipping method does not appear to the user.
http://i.imgur.com/DpGF5wD.png
The system will still consider it existing. You still need to prevent the checkout from proceeding if "Free Shipping" was the chosen shipping method.

Related

Modify price using jquery in Bigcommerce

I would like to modify Product price dynamically when a button is clicked, using jquery.
For example, if there is a button with value "22" , if i click that button, the price should change to "22". For now, i can change the front end text of price label, but i couldn't pass it when adding to cart. Please help me to resolve this.
Thanks
The price is pulled from the backend and displayed.
It is possible to read the price. It is also possible to have options.
I can see a fairly easy way to do this by setting up options for a product:
Put the options ( %%Product_AddToCartRight%% is the most commonly used options listing) in a div with the style set to "display:none".
Then have your button "click" the options via javascript or jquery.
Since the options are hidden by the display:none, the button "automagically" changes the price...and could do other things, like make a "Congrats" div appear, or make the price text/box change color.
This is good, since it not only draws the users eyes to the price change, but triply rewards the user: Better price, price changes (reacts to users click), and the color changes (another reaction to the users click).
Clicking an option does autoupdate the price, including what gets passed to the shopping cart.
One thing to be aware of is that Google may or may not run any given piece of javascript on your page.
More importantly, googles crawler does NOT click buttons or select options, so any price changes driven by a click or selection will not be indexed by google. Your product will still show, but only at the "base" price.

modify shopify button code to remove photo

I need to remove the photo preview on the shopify add to cart button. When I select "button only" then the prices don't appear beside my drop boxes. When I choose "button image, price and button" option, then I get the photo, which I do not want! Is there no way to have just the add to cart button with the prices and drop down options?
It's good to link the code you're working with, but assuming you're using the standard snippet, adding something like:
.product-embed__image {
display: none;
}
Should hide it, though extra styling may be required, it'd be useful to link the page you're working on.

Prestashop Sell Option - Preowned Items

I'm completely new to Prestashop.
I have selected Prestashop as my platform for creating my intended shopping site. But I'd like to add one option "Sell" beside "Buy" button.
On clicking the "Sell" button it'll take me to a page, where the user needs to fill up a form, which will designed by me ofcourse with few textbox and dropdowns, And once he goes through the process, the data's will be saved in database.
Now in PHP, I can write this code within minutes, but I don't know and have no idea how to integrate this thing in prestashop.
So if anyone here can please help me out, I'll be glad.
Allow me to let you know, that I want this "Sell" idea on my shopping site, where generally people comes to Buy, is because I want to enable my site for 2nd Hand items, i.e. refurbished items. So I need an option to buy refurbished items through which users can sell me their refurbished items.
I don't know whether any plugin is available for this, though I don't see any normally through basic searching.
You need to develop your own module, which will show the "Sell" button using a hook in Prestashop template file(s), and create a new resource (your page with form) in your shop. Check Prestashop documentation and tutorials, Creating a Prestashop module and adding custom hooks in tpl files can be found at Creating custom hooks ... blog.

In a group check box is it possible to select an option by clicking anywhere in the screen and not exactly inside the check box?

From a group check box is it possible to select only one option. And I want to know whether a particular option can be selected without exactly clicking inside the check box. i,e Is it possible to select an option by just clickig somewhere in the screen where the text of the option is displayed.
I was testing an application and i found that it was able to select an option even without clicking inside the check box, so wanted to know whether that is a validation bug!!
I do not think that it is a bug if there is only one radio button or check box on the screen. Such type of functionality is sometimes provided in order to provide extra functionality to the user. There are certain validations that are capable to do this. But if there are multiple check boxes or radio buttons on the screen then it must be a bug. Because in case of multiple check boxes on the screen the script does not know which button to check.

Multi-select from dropdown on custom field on User Story

Currently I have a custom field on User Stories and Defects for our developer to tag what system was affected with their code change. Currently I only see a drop down, which is a single selection. Is there any way to give them the chance to multi-select options in the drop down? Or is there another object that would work better? Thanks in advance for all the great help I always get on here :-)
Your best bet to emulate a multi-select custom field is to use Tags. If you are managing these stories and defects with a custom App you could restrict which Tags you show or allow them to choose from in that App.
As Charles indicated, you probably want to try to use the MultiObjectPicker or the TagPicker, that extends it. If you want to stick with the ComboBox, then you can enable multi-selection by setting the "multiSelect" config field to "true".