• Resolved annieedgar

    (@annieedgar)


    Fields that are hidden during the ordering procedure (from the Conditional Visibility rules) show up in the cart and in the order review.

    Is there a way to hide them in the cart and in the order review if they don’t show up when adding the product in the cart?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter annieedgar

    (@annieedgar)

    ^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, 18

    If I select : Stickers – Small – 20
    In the cart I’ll see :
    Stickers
    Size : Small
    Quantity : 20
    Quantity : 9 but shouldn’t appear

    The price is correct, but when I receive the invoice email, I’ll see :
    Stickers
    Size : Small
    Quantity : 9

    Which is worse I suppose because I have to deduce the right quantity based on the total price of the customer.

    Thanks,

    Thread Starter annieedgar

    (@annieedgar)

    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…

    rickywicky

    (@rickywicky)

    Hey there, Have you been able to figure this one out? I’m having a similar issue and my client is unhappy about the additional fields appearing in the cart that are supposed to be hidden.

    Thread Starter annieedgar

    (@annieedgar)

    Hi ricky,

    I think for this particular situation, I changed the type of field from Select field to Dropdown field.

    Hope it helps you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hiding hidden fields in Cart and Order Review’ is closed to new replies.