annieedgar
Forum Replies Created
-
Hi ricky,
I think for this particular situation, I changed the type of field from Select field to Dropdown field.
Hope it helps you!
I managed to have the cart only show the right fields, but the meta data of the order shows every single field, including the ones that are supposed to be hidden.
public function render_for_cart($value = '') { if (!empty($value)) { $value= $this->get_option_title($value); return View::render('fields/cart', array( 'title' => $this->data['title'], 'value' => $value, 'classnames' => $this->data['css_class'] )); } }
Is there a way to update the meta data with the same info from the cart, and remove the fields and their values if they haven’t been filled by the user? Can’t figure out where to tweak it.
At this point, any reply would be welcomed…
^I’ll add that I’ve only tested with select fields. I think hidden image select fields stay hidden in the cart as intended.
Found another issue that I think is related to hidden fields (or at least hidden select fields).
Example :
Product : Stickers
Select field – Size : Small or Big
Select field – Quantity for small stickers : 10, 20, 30, 40
Select field – Quantity for big stickers : 9, 12, 15, 18If I select : Stickers – Small – 20
In the cart I’ll see :
Stickers
Size : Small
Quantity : 20
Quantity : 9 but shouldn’t appearThe price is correct, but when I receive the invoice email, I’ll see :
Stickers
Size : Small
Quantity : 9Which is worse I suppose because I have to deduce the right quantity based on the total price of the customer.
Thanks,
I resolved my issue by setting all of my fields to “not required” and setting a default choice to those fields.
Looks like I had to use a Select field, not a Dropdown field!
But is there a way to remove the “Choose an option” option in the dropdown of a Select field? It’s there even if I set the fields as required.