Comments 2Marceline started the conversationJuly 31, 2023 at 3:23pmhello good people of the MarketKing Land!i have a question about the get_vendor_id_by_url function. global $wp;$current_url = home_url( add_query_arg( array(), $wp->request ) );echo marketking()->get_vendor_id_by_url($current_url);say i have 3 vendor store, http://toystore.com/shop/onehttp://toystore.com/shop/twohttp://toystore.com/shop/threewhen i browse all three store, the get_vendor_id_by_url always returns 0. i wonder what went wrong :Love, Marcie. 2,281WebWizards repliedJuly 31, 2023 at 5:13pmHi Marceline,Similar to the ticket here https://webwizards.ticksy.com/ticket/3426666/ , these functions do not use the complete URL, they only use the unique URL ending of each vendor.So please call it like this: marketking()->get_vendor_id_by_url('one'); // correctrather than: marketking()->get_vendor_id_by_url('http://toystore.com/shop/one'); // incorrectKind regards,Stefan 2Marceline repliedAugust 1, 2023 at 2:04pmthankyou sir. very helpful marcie.1 Like Sign in to reply ...
hello good people of the MarketKing Land!
i have a question about the get_vendor_id_by_url function.
say i have 3 vendor store,
when i browse all three store, the get_vendor_id_by_url always returns 0. i wonder what went wrong :
Love, Marcie.
Hi Marceline,
Similar to the ticket here https://webwizards.ticksy.com/ticket/3426666/ , these functions do not use the complete URL, they only use the unique URL ending of each vendor.
So please call it like this:
rather than:
Kind regards,
Stefan
thankyou sir. very helpful
marcie.