How to find Product Category ID from backend?

This topic has 12 replies, 3 voices, and was last updated 8 years, 4 months ago ago by Stan Russell

  • Avatar: Eric
    Eric
    Participant
    December 5, 2015 at 18:52

    Dear Service,

    If I want to insert product categories into a page, there require to input parent category id, how to find the category id from backend?

    Regards,
    Eric

    11 Answers
    Avatar: Eric
    Eric
    Participant
    December 6, 2015 at 07:19

    Dear Service,

    This question is about how to implement product categories into a page, I find the product category ID could be shown automatically by program if a correct product category which exists and to be inputed to the category box. So, this issue is not a problem anymore.

    But there is another problem happened, when the product categor(ies) successfully insert into a page, the inserted category could not show the correct products after click but 404 page.

    This problem is kindly the same as woocommerce URL slug translated problem earlier.
    Please check…
    1. The product category id could be shown in backend page.
    https://drive.google.com/file/d/0B0UZ77fMI9c0b3lEdXZpaFZnd2c/view?usp=sharing
    2. The product category inserted successfully.
    https://drive.google.com/file/d/0B0UZ77fMI9c0SDJNQVNwUmEtMUU/view?usp=sharing
    3. After click the inserted category, there comes a 404 page.
    https://drive.google.com/file/d/0B0UZ77fMI9c0RjI1alFVUm5kVzQ/view?usp=sharing
    4. I change the 404 page URL slug as correct Chinese slug, the category id=56 products show on the page.
    https://drive.google.com/file/d/0B0UZ77fMI9c0MFJkTFhzV2hxSW8/view?usp=sharing

    Test page at backend.
    http://store.yoz.tw/wp-admin/post.php?post=17166&action=edit
    Product category management page at backend.
    http://store.yoz.tw/wp-admin/edit-tags.php?taxonomy=product_cat&post_type=product
    https://drive.google.com/file/d/0B0UZ77fMI9c0Q1dGT3psUFRNclE/view?usp=sharing

    My question is “insert product category into a page” is quite a important function, but it seems not to be integrated well into visual composer, because people can only see the 404 page but correct ones.

    Maybe you’d like to suggest me not to implement the “slug” as URL rule of my website, but I think the URL slug is not only like a “landmark” to a user but also important for website SEO.

    How to solve this problem?

    Regards,
    Eric

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 7, 2015 at 10:31

    Hello,

    I’ve re-saved Permalinks settings in WP Dashboard > Settings > Permalinks and products are shown now.
    Clear browser cache and check.

    Best regards,
    Jack Richardson.

    Avatar: Eric
    Eric
    Participant
    December 7, 2015 at 10:48

    Dear Jack,

    It looks ok, but I have a other question.
    This page seems to be composed by program,
    http://store.yoz.tw/product-category/sandmarc/%E6%8E%9B%E8%BC%89%E9%85%8D%E4%BB%B6/
    I mean I set this product page as 3 columns, but it seems left a sidebar position(space) on right side.
    . What if I want this page become with “without sidebar” style?
    . Moreover, shows the related products at the page bottom?

    My question is where and how could I edit this page (at least let it as no sidebar style)?
    Thank you.

    Best regards,
    Eric

    Avatar: Eric
    Eric
    Participant
    December 7, 2015 at 14:42

    Dear Jack,

    I try to use woocommerce short code [product_category category="掛載配件" columns="3"] to have a product category page with 3 columns, like this…
    https://drive.google.com/file/d/0B0UZ77fMI9c0aDB3WDRKSXdWcmM/view?usp=sharing

    The page composed after click the inserted category, like this…
    https://drive.google.com/file/d/0B0UZ77fMI9c0U3dVS1g1QlZ2Y3c/view?usp=sharing

    It looks weird that program compose category products page without sidebar on the page.
    Please tell me how to remove the default sidebar space from that composed page? Thank you.

    Best regards,
    Eric

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 7, 2015 at 15:41

    Hello,

    You had 2 products per row in Theme Options > Products Page Layout > Products per row. I’ve changed the number to “3”.
    Please check the page now.

    Best regards,
    Jack Richardson.

    Avatar: Eric
    Eric
    Participant
    December 7, 2015 at 19:12

    Dear Jack,

    That’s great. Thank you!

    Is that possible to add Product Title into every product page item?
    And let all the list view products text as 18px (for the reason that as the same with my single product page text size)?
    https://drive.google.com/file/d/0B0UZ77fMI9c0X0FLaG11QWRWZVU/view?usp=sharing

    Regards,
    Eric

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 7, 2015 at 20:17

    Hello,

    To change font size for product excerpt use this code in Custom CSS for desktop:

    .products-list .product .product-details .product-excerpt {
       font-size: 18px;
    }

    To show product title you need enable it in Theme Options > Products Page Layout > Show product name.
    Then if you want to show it only for list view you need add this code in Global Custom CSS:

    .products-grid .product-title {
      display: none;
    }

    Best regards,
    Jack Richardson.

    Avatar: Eric
    Eric
    Participant
    December 8, 2015 at 19:23

    Dear Jack,

    OK, it’s done.
    But…
    How to set per product category page product number in grid view?
    I’d like to set it as 9 products per product category page.
    http://store.yoz.tw/product-category/sandmarc/ (it’s a little bit strange that my 11th product on page2.)

    Would you please tell me how to set?

    Regards,
    Eric

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 8, 2015 at 19:55

    Hello,

    Go to WP Dashboard -> Settings -> Reading -> “Blog pages show at most” and then set the number of your products you want to be shown.

    Best regards,
    Jack Richardson.

    Avatar: Eric
    Eric
    Participant
    December 9, 2015 at 04:18

    Dear Jack,

    Thank you.
    It’s done.

    Regards,
    Eric

    Avatar: stan
    Stan Russell
    Participant
    December 9, 2015 at 08:27

    Hello Eric,

    we are happy that your problem is solved!

    Regards,
    Stan Russell.

  • Viewing 12 results - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.