Title: sergedirect's Replies | WordPress.org

---

# sergedirect

  [  ](https://wordpress.org/support/users/sergedirect/)

 *   [Profile](https://wordpress.org/support/users/sergedirect/)
 *   [Topics Started](https://wordpress.org/support/users/sergedirect/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sergedirect/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sergedirect/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sergedirect/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sergedirect/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sergedirect/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[UpiCRM – Lead Management & Affiliates management: Any contact form DB, all leads, Social Networks leads, Google sheets, in one place and more.] Automatically Add Users to UpiCRM](https://wordpress.org/support/topic/automatically-add-users-to-upicrm/)
 *  [sergedirect](https://wordpress.org/support/users/sergedirect/)
 * (@sergedirect)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/automatically-add-users-to-upicrm/#post-9165830)
 * This is a must-have feature for eCommerce stores.
    CRM is not just to manage 
   new leads, but all about existing customer care as well and continues business
   development, up-sells, cross-sells etc. I can’t find any docs, am I looking in
   the wrong place? – We can help to code it if you guys are struggling with time…
   I suppose adding a custom role e.g. “CRM client” could solve that.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [WooCommerce Attribute Variations Accounting For More Than One Stock Level](https://wordpress.org/support/topic/woocommerce-attribute-variations-accounting-for-more-than-one-stock-level/)
 *  [sergedirect](https://wordpress.org/support/users/sergedirect/)
 * (@sergedirect)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/woocommerce-attribute-variations-accounting-for-more-than-one-stock-level/#post-6479155)
 * Hi I’ve been wandering if you have found a solution to your issue, as I am currently
   developing a tickets booking option in woocommerce and also need to manage stock
   for different days.
    Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Permalinks] Notice: Undefined index: path](https://wordpress.org/support/topic/notice-undefined-index-path-1/)
 *  Thread Starter [sergedirect](https://wordpress.org/support/users/sergedirect/)
 * (@sergedirect)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/notice-undefined-index-path-1/#post-6734966)
 * Please ignore my previous enhancement suggestion as it turns out to be a little
   wrong please consider this little modification as possible solution
 * function custom_permalinks_trailingslash($string, $type) {
    global $_CPRegisteredURL;
 *  $url = parse_url(get_bloginfo(‘url’));
    $request = ltrim(isset($url[‘path’])?
   substr($string, strlen($url[‘path’])) : $string, ‘/’);
 *  if ( !trim($request) ) return $string;
 *  $path = ”; // declare $path for future use
 *  if(array_key_exists(‘path’,$url) == true){ // Check whether $url has “path” 
   index
    $path = $url[‘path’]; } if ( trim($_CPRegisteredURL,’/’) == trim($request,’/’)){//
   continue with a $path as variable return ($string{0} == ‘/’ ? ‘/’ : ”) . trailingslashit(
   $path) . $_CPRegisteredURL; } return $string; }

Viewing 3 replies - 1 through 3 (of 3 total)