Forum Replies Created

Viewing 3 posts - 46 through 48 (of 48 total)
  • Author
    Posts
  • in reply to: cheapest_product / every_nth_item query #1633
    Jonathan Moore
    Participant

    hmmm… yes the customer should get a worse deal if they add a cheap product

    your point 2 is a desirable behaviour and common sales strategy: when cheapest is free, the customer knows that it is not a great advantage to add cheap item so they may upgrade to more expensive item to get the most benefit from the offer.

    If the customer can get expensive item free just by adding cheap item, there is no upsell value. Giving away expensive item when cheap item is added sounds very bad from the shop owner’s view, and the sales tools are not supposed to make a loss for the shop.
    In your example the shop owner has to give away a $100 item when a $20 item is added, that doesn’t sound good business.

    Apart from this discussion in the context of every_nth_item, what about cheapest_product, what is needed to make the cheapest_product option work? – I couldn’t get that to apply in any circumstance and I couldn’t find any more detail in the documentation.

    in reply to: Allow applying when invalid #1632
    Jonathan Moore
    Participant

    Pro Version 2.5.3

    in reply to: Remove free item from cart #1594
    Jonathan Moore
    Participant

    Yes thanks that would apply to the second case,
    although variables such as $field_id are only set within the loop of available products, really the none option needs to be set outside the loop.

    Something like this may do it:

    
            endforeach;
            if ($input_type='radio') {
                $field_id = esc_attr( $id_prefix . '_' . 0 );
                echo '<input type="radio"    id="' . $field_id . '" name="' . $name_prefix . '[selected_product]" value="" ' . ( ($free_item_selected ) ? '' : ' checked="checked"' ) . ' />';
                
        ?>
                <label for="<?php echo $field_id; ?>"><?php _e('None', 'your-text-domain') ?></label><br>
            <?php } ?>
    

    note a $free_item_selected is added and tested within the loop to be set to true if a free item has been chosen, otherwise None should be selected.

Viewing 3 posts - 46 through 48 (of 48 total)