flantascience
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Video Lightbox] Pop size on Mobile is tinyok, I thought that would add the code… let me try that again…
Example:
<a class="popup button brown-button" href="https://www.youtube.com/watch?v=bzLOULYXvHM&rel=0" rel="wp-video-lightbox">Watch the Video</a>
Forum: Plugins
In reply to: [WP Video Lightbox] Pop size on Mobile is tinyIs there a similar HTML trick for my site? I’ve got a handful of buttons that open using WP LightBox by inserting : rel=”wp-video-lightbpx” into the link.
Example:
Still no fix on this… getting more issues now:
Nothing it also that when people go to the Register page, it throws an error the connection can’t be made until they hit Refresh:
https://peerunschooling.net/registerSo what is actually happening in the background then? The dollar value is just adjusting based on the specific service? From what you are saying… if I set it to “Package”, the user experience won’t change, but it will calculate the dollar value to include tracking – is that correct? (That’s what I’m looking for)
I see there is an option for:
First-Class Mail? Parcel
AND
First-Class? Package ServiceFrom what I understand, I should have the Package option checked off and leave the Mail alone? Is that correct? And this will automatically add in the tracking cost?
It seems like no matter what I check off, it just reports “First Class Mail (USPS)” in my shopping cart, even when I only have Package checked off.
I’m confused as to where I enter this data. I see on the Product Edit Page under the Shipping tab, there is an area for:
Weight:
Dimensions L: W: H:
Class:I imagine this is where I put the PRODUCT size and weight…. where do I put the BOX size and weight?
If this is where I put the BOX size and weight… then where do I put the PRODUCT size and weight?
The trouble with this… is it will add 4 ounces to every single item. We can fit multiple items in a single box.
I want to just add 4 ounces once to the grand total weight of my packages.
*Just tagging this to get notifications
I have the same thing going on my site…. this is a new bug as I’ve been using the plugin for a while with no issues.
THANK YOU!
Thanks, I just submitted.
Possibly…. I tried something different still with no luck. Where exactly do I find the “id”. This time I tried using what’s set here for id=”” for all of them. Maybe I’m supposed to use the value=””
<input type=”radio” name=”shipping_method[0]” data-index=”0″ id=”shipping_method_0_wf_shipping_uspsd_priority_mail” value=”wf_shipping_usps:D_PRIORITY_MAIL” class=”shipping_method”>
This is what I tried this time:
$sort_order = array(
‘shipping_method_0_wf_shipping_uspsd_first_class’ => array(),
‘shipping_method_0_wf_shipping_uspsd_priority_mail’ => array(),
‘shipping_method_0_wf_shipping_ups03’ => array(),
‘shipping_method_0_wf_shipping_ups01’ => array(),
‘shipping_method_0_wf_shipping_uspsd_priority_mail’ => array(),
‘shipping_method_0_local_pickup3’ => array(),
);Yes, I’ve added these to the functions.php file but it’s not doing anything.
I gave this a shot but didn’t have any luck. So I’m very clear, this is the order I’d like them to appear:
??First Class US Mail (USPS):
? Priority Mail (R) (USPS):
? Ground (UPS):
? Next Day Air (UPS)
? Local Pickup (free):I used this code:
add_filter(‘woocommerce_package_rates’, ‘wf_sort_shipping_methods’, 10, 2);
function wf_sort_shipping_methods($available_shipping_methods, $package)
{
// Arrange shipping methods as per your requirement
$sort_order = array(
‘wf_shipping_usps’ => array(),
‘wf_shipping_ups’ => array(),
‘local_pickup’ => array(),
);// unsetting all methods that needs to be sorted
foreach($available_shipping_methods as $carrier_id => $carrier){
$carrier_name = current(explode(“:”,$carrier_id));
if(array_key_exists($carrier_name,$sort_order)){
$sort_order[$carrier_name][$carrier_id] = $available_shipping_methods[$carrier_id];
unset($available_shipping_methods[$carrier_id]);
}
}// adding methods again according to sort order array
foreach($sort_order as $carriers){
$available_shipping_methods = array_merge($available_shipping_methods,$carriers);
}
return $available_shipping_methods;
}I also tried using some code I found that would sort everything from cheapest to most expensive. This also didn’t change anything.
https://www.xadapter.com/woocommerce-sort-shipping-options-methods-services-by-shipment-cost/
add_filter( ‘woocommerce_package_rates’ , ‘xa_sort_shipping_services_by_cost’, 10, 2 );
function xa_sort_shipping_services_by_cost( $rates, $package ) {
if ( ! $rates ) return;$rate_cost = array();
foreach( $rates as $rate ) {
$rate_cost[] = $rate->cost;
}// using rate_cost, sort rates.
array_multisort( $rate_cost, $rates );return $rates;
}I gave this a shot but didn’t have any luck. So I’m very clear, this is the order I’d like them to appear:
??First Class US Mail (USPS):
? Priority Mail (R) (USPS):
? Ground (UPS):
? Next Day Air (UPS)
? Local Pickup (free):I used this code:
add_filter(‘woocommerce_package_rates’, ‘wf_sort_shipping_methods’, 10, 2);
function wf_sort_shipping_methods($available_shipping_methods, $package)
{
// Arrange shipping methods as per your requirement
$sort_order = array(
‘wf_shipping_usps’ => array(),
‘wf_shipping_ups’ => array(),
‘local_pickup’ => array(),
);// unsetting all methods that needs to be sorted
foreach($available_shipping_methods as $carrier_id => $carrier){
$carrier_name = current(explode(“:”,$carrier_id));
if(array_key_exists($carrier_name,$sort_order)){
$sort_order[$carrier_name][$carrier_id] = $available_shipping_methods[$carrier_id];
unset($available_shipping_methods[$carrier_id]);
}
}// adding methods again according to sort order array
foreach($sort_order as $carriers){
$available_shipping_methods = array_merge($available_shipping_methods,$carriers);
}
return $available_shipping_methods;
}I also tried using some code I found that would sort everything from cheapest to most expensive. This also didn’t change anything.
https://www.xadapter.com/woocommerce-sort-shipping-options-methods-services-by-shipment-cost/
add_filter( ‘woocommerce_package_rates’ , ‘xa_sort_shipping_services_by_cost’, 10, 2 );
function xa_sort_shipping_services_by_cost( $rates, $package ) {
if ( ! $rates ) return;$rate_cost = array();
foreach( $rates as $rate ) {
$rate_cost[] = $rate->cost;
}// using rate_cost, sort rates.
array_multisort( $rate_cost, $rates );return $rates;
}