LemonStand Forum: onFilterShipping With Free Option - LemonStand Forum

Jump to content

Status Fixed (and published)    

Page 1 of 1
  • Cannot start a new Issue
  • You cannot reply to this issue

Report ID #175: onFilterShipping With Free Option

#1 User is offline  
activeholdingco 

  • LemonGroupy
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 23-September 10

Posted 23 March 2012 - 05:23 PM

Free Option is not detected before onFilterShippingOptions.

When using the shop:onFilterShippingOptions event, I loop through each sub option and return the quote:
			foreach ($result['options'] as $option)
			{
				if($option->sub_options)
				{
					foreach($option->sub_options as $sub) {
						traceLog($sub->name . ' - ' . $sub->quote . ' - ' . $sub->is_free);
					}
				}
			}


And this returns:
[2012-03-24 01:05:23] Priority Mail - 15.05 - 
[2012-03-24 01:05:23] Priority Mail Large Flat Rate Box - 16.45 - 
[2012-03-24 01:05:23] Priority Mail Medium Flat Rate Box - 12.35 - 
[2012-03-24 01:05:23] Priority Mail Small Flat Rate Box - 6.35 - 


However on the front-end of the website:
Priority Mail Small Flat Rate Box - $6.35
Priority Mail Medium Flat Rate Box - $12.35
Priority Mail - free
Priority Mail Large Flat Rate Box - $16.45


Shouldn't the discounts be applied before the filter shipping options? How can I filter them without knowing what is free or not?


Page 1 of 1  
  • Cannot start a new Issue
  • You cannot reply to this issue

Replies (1 - 8)

#2 User is offline  
activeholdingco 

  • LemonGroupy
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 23-September 10

Posted 19 April 2012 - 06:54 PM

Is there a solution for this?

#3 User is offline  
rtd 

  • LemonEvangelist
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 133
  • Joined: 23-September 10

Posted 23 April 2012 - 10:37 AM

There are two issues that we would like to address with this reported issue:

1. Being able to sort all shipping methods by cost, lowest to highest, including "free shipping". Free shipping = $0 so we would want to present that first. Customers naturally want to choose the least expensive shipping option, but we have found that on occasion, they pick the more expensive options because they are first in the list.

2. The way LS handles free shipping in the discount rules is programmatically practical, but a bit confusing from and end-user point of view. In simplest terms, based on a discount rule we have set-up, when a non-discounted order reaches $X, we want to offer free shipping to the end user. We will determine what shipping method to use when fulfilling the order so there is no need for the user to select a specific shipping method. Currently, we are required to pick which shipping service option(s) should receive free shipping. In the use case above, we want to offer free shipping on USPS at a macro-level. There is no need for a consumer to select first class, priority, flat rate, etc. because we will determine what is the most effective shipping method.

For flexibility purposes, it might be good to allow free shipping on "All USPS Services", or individually as it currently exists. If "All USPS" was selected in the rule, the front end output would then be consolidated to something like "USPS - Free", instead of showing the individual services. The rule would be and either "All USPS" OR one or more individual selections - not both.

This would allow us to offer USPS free shipping, but show FedEx or UPS Express for a cost and allow the consumer to determine if they wanted faster shipping at a price.

From a priority perspective, we would like #1 asap. #2 is nice-to-have feature, but seems like a practical solution too.

#4 User is offline  
activeholdingco 

  • LemonGroupy
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 23-September 10

Posted 30 April 2012 - 04:27 PM

Lemonstand, is there a solution for this bug?

#5 User is offline  
Manca 

  • Developer
  • Group: +Administrators
  • Posts: 252
  • Joined: 02-September 11

Posted 01 May 2012 - 02:41 PM

Updating status to: Unconfirmed

Hi,

We'll look into this. The shop:onFilterShippingOptions is fired before the discounts are applied for the shipping option. We may be able to add another event to allow filtering them after the discounts have been applied.

Thank you

#6 User is offline  
Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 4,066
  • Joined: 31-October 09

Posted 01 May 2012 - 06:29 PM

Updating status to: Fixed (and NOT published)

Hi guys,

We updated the shop:onFilterShippingOptions event so that it is triggered after free shipping is applied, so a handler sort the result set. The fix will be published today.

As for the #2 by rtd - it makes sense, I added the request to our list.

Thank you

#7 User is offline  
rtd 

  • LemonEvangelist
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 133
  • Joined: 23-September 10

Posted 01 May 2012 - 07:06 PM

Thank you Aleksey! Once published, we'll have activeholding update our site as needed (if needed)

#8 User is offline  
Aleksey 

  • Co-Founder
  • Group: +Administrators
  • Posts: 4,066
  • Joined: 31-October 09

Posted 01 May 2012 - 08:40 PM

Updating status to: Fixed (and published)

#9 User is offline  
rtd 

  • LemonEvangelist
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 133
  • Joined: 23-September 10

Posted 02 May 2012 - 07:32 AM

Thanks Aleksey.

Will need Activeholding to take a look because the update did not resolve sort order alone. Might need a little dev work.


Page 1 of 1
  • Cannot start a new Issue
  • You cannot reply to this issue

0 User(s) are reading this issue
0 Guests and 0 Anonymous Users