• Resolved hubchau

    (@hubchau)


    Hi, i’m using a piece of code to determine if I should send an invoice according to the product category. For the gift cards, i’d like to do so, but it seems they don’t actually have a product category. Is this on purpose? how can i fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pimwick

    (@pimwick)

    The PW Gift Card product type is an extension of the Variable product type in WooCommerce.

    You can edit the gift card product by logging into your WordPress admin area, clicking the Products menu on the left, and clicking the gift card product. From there, choose the Category or Categories that you would like.

    Thread Starter hubchau

    (@hubchau)

    Thank you for the quick answer. I already had a product category selected in the Category section of the git card product. But when I do a get_the_terms($product->get_id(), 'product_cat') I get an empty string.

    Anyway, it’s not blocking in any way, so I’ll mark the topic as resolved ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘gift card category unset’ is closed to new replies.