Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Caractacus Downes 81 posts 314 karma points
    Aug 10, 2016 @ 11:36
    Caractacus Downes
    0

    Items with no shipping

    Hi,

    The store I'm working on (U 7.4.3, M 2.1.0, FT 2.1.0) is now working reasonably well, however I have an issue that I can't find a fix for.

    In the store there are some items which do not require shipping - donations, sponsorships etc. The FastTrack store I am basing this on doesn't seem to know what to do with an item that has the 'This variant is shippable' box unticked. It allows me to go through the purchase process, asks me for a Shipping Address (irritating but not a problem I suppose), but then stalls at the ShipRateQuote page requiring a Shipping Method.

    Ideally I'd like to bypass this part of the flow altogether, prepopulating this value with a zero if necessary. I've experimented with leaving the item as shippable, but with a weight of 0, creating a Shipping Method called 'No shipment required' and a value of zero to apply to items of weight 0 - 0.1, but I find I have to create a shipping cost of zero for all shipping providers (doesn't let the lowest weight range for a shipping provider start at greater than 0 ...).

    There must be a slicker way to do this. has anyone found one?

    Cheers,

    Crac

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Aug 10, 2016 @ 21:23
    Rusty Swayne
    0

    That's on my list to look at for the 2.2.0 release. Hopefully, I'll be on it by the end of the week.

  • Caractacus Downes 81 posts 314 karma points
    Aug 11, 2016 @ 06:58
    Caractacus Downes
    0

    OK that's great. I'll watch for progress!

    Cheers,

    Crac

  • Trevor Loader 199 posts 256 karma points
    Aug 29, 2016 @ 04:31
    Trevor Loader
    0

    Hey Rusty, did this make it into 2.2.0? I've upgraded to 2.2 and can't check out if all products are set to non-shippable...ie the shipping methdod drop down is empty and I can't continue.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Aug 29, 2016 @ 13:31
    Rusty Swayne
    1

    It was fixed in 2.2.0. In my tests, if no items are shippable it skips the drop down selection, if some items are shippable, it still requires the selection. I know there were razor updates to do this, which I'm guessing you may not have merged in as you love my styling so much =)

    They are just little tweaks like:

     @{
    var hasShippableItems = CurrentCustomer.Basket().HasShippableItems();
    var noShippingUrl = ExampleUiHelper.CheckoutWorkflow.GetPageForStage(CheckoutStage.PaymentMethod).Url;
    
    Model.SuccessRedirectUrl = hasShippableItems ? ExampleUiHelper.CheckoutWorkflow.GetPageForStage(CheckoutStage.ShippingAddress).Url : noShippingUrl;
    Model.SuccessUrlShipRateQuote = hasShippableItems ? ExampleUiHelper.CheckoutWorkflow.GetPageForStage(CheckoutStage.ShipRateQuote).Url : noShippingUrl;
    
    }
    

    Maybe just go to the repo on GitHub and cut and paste the razor?

  • Trevor Loader 199 posts 256 karma points
    Aug 29, 2016 @ 18:26
    Trevor Loader
    1

    Perfect! I hadn't merged the razor views as I'd changed the markup heavily for the current site design...and didn't think there was any 'logic' in them.

    Duh.

    Thanks Rusty.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Aug 29, 2016 @ 18:34
    Rusty Swayne
    0

    I try not to put much logic in there - however in this case, it seemed like the best/quickest way to go =)

  • Caractacus Downes 81 posts 314 karma points
    Sep 05, 2016 @ 09:55
    Caractacus Downes
    0

    Hi,

    That sounds like what I'm after. Is that just a Merchello update or do I need to update FastTrack as well?

    Cheers,

    Crac

  • Caractacus Downes 81 posts 314 karma points
    Sep 26, 2016 @ 11:13
    Caractacus Downes
    100

    Got it working now copying and pasting the Razor additions from Github.

    Cheers,

    Crac

  • Ayo Adesina 430 posts 1023 karma points
    Feb 24, 2019 @ 08:17
    Ayo Adesina
    0

    I am building a project that needs to have an option of 'Collect from store' so technically all the items are shippable... but if the user says they will collect from store I won't need to collect a shipping address....

    anyone know what part of the merchello code base I should be looking in to to achieve this?

Please Sign in or register to post replies

Write your reply to:

Draft