Get Vendor_id before checkout
-
Hello,
I created two extra fields for the vendors settings and i′ts working.
Now i need get $vendor_id before checkout to load email and token from fields, it′s working when i force a correct id.
But i can′t get current store vendor_id, i trying these ways but the id not is correct vendor_id
$vendor_id = get_post_field( ‘post_author’, get_the_id() );
$vendor_id = get_current_vendor_id();What′s the way to get this information?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Get Vendor_id before checkout’ is closed to new replies.