kingcrows
Forum Replies Created
-
Forum: Plugins
In reply to: [Google for WooCommerce] Unable to confirm store requirementsit works for me now! Don’t know if it’s the time or that I switched my Merchant account back to classic mode instead of merchant next…
Forum: Plugins
In reply to: [Google for WooCommerce] Unable to confirm store requirementsThe url you mentioned is the “hidden” url i mentioned in de begin post ?? to check the connection. Both are connected!
I’m still getting the same error, “unable to update your contact details”…
Check, I added a topic to your support forum ??
Isn’t there a workaround for this? Maybe with some custom Javascript or PHP code you can provide?
No, not exactly. We just want the variations quantities to be optional. Is this possible with the normal pro version?
Forum: Plugins
In reply to: [Breadcrumb NavXT] Insert item between breadcrumb on specific pagesThanks John!
We got it working with a small adjustment ?? We had to add: array() to the last new object in the array_splice function!add_filter('bcn_after_fill', 'my_static_breadcrumb_adder'); function my_static_breadcrumb_adder($breadcrumb_trail) { if($breadcrumb_trail->breadcrumbs[count($breadcrumb_trail->breadcrumbs)-2]->get_id() === 5450){ $new_breadcrumb = new bcn_breadcrumb('Rental', NULL, array('rental'), '/rental/'); array_splice($breadcrumb_trail->breadcrumbs, -1, 0, array($new_breadcrumb)); } }
Thanks again John, awesome!
Forum: Plugins
In reply to: [Breadcrumb NavXT] Insert item between breadcrumb on specific pagesCould you maybe give some hints on how to add the new breadcrumb into the 2nd position of the trail?
We got the check for Page ID working, but can only the the new breadcrumb to be added at the beginning of the trail…
This is what we have so far:
add_action('bcn_after_fill', 'my_static_breadcrumb_adder'); function my_static_breadcrumb_adder($breadcrumb_trail) { if($breadcrumb_trail->breadcrumbs[count($breadcrumb_trail->breadcrumbs)-2]->get_id() === 5450){ $breadcrumb_trail->add(new bcn_breadcrumb('Rental', NULL, array('rental'), '/rental/')); } }
We also tried:
add_action('bcn_after_fill', 'my_static_breadcrumb_adder'); function my_static_breadcrumb_adder($breadcrumb_trail) { if($breadcrumb_trail->breadcrumbs[count($breadcrumb_trail->breadcrumbs)-2]->get_id() === 5450){ $original = $breadcrumb_trail->breadcrumbs; $breadcrumb_trail->add(new bcn_breadcrumb('Verhuur', NULL, array('verhuur'), '/verhuur/')); array_splice($original, 2, 0, $breadcrumb_trail ); } }
But that still adds it only at the beginning of the breadcrumb trail!
Thanks!!- This reply was modified 5 years, 9 months ago by kingcrows.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Insert item between breadcrumb on specific pagesThanks John, we’re gonna check it out!! ??