• Resolved ktanner5

    (@ktanner5)


    How do I set custom IDs? I would like to change the IDs for the categories and products so the URLs make more sense. Instead of the URL having numbers for the category and product, I’d like it to have the actual name.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi tanner,

    There’s no option to change the ID of a category or product. If you really wanted to, you could go into your database (i.e. via phpMyAdmin) and change them there. All the products are stored in the “wp_UPCP_Items” table and all the categories in the “wp_UPCP_Categories” table. Even doing it this way, they’d have to be a numerical value.

    In our premium version, we have an option called “Pretty Permalinks” that lets you specify a unique slug for each product and then have that display in the URL instead of the “?SingleProduct=63”.

    I have been helping Kim (ktanner5) with implementing this plugin on her company’s site. The desire is to have a products page at this URL.

    http://domain-name.com/products/

    This URL would display a catalog via a shortcode.

    [product-catalogue id=”2″]

    Ideally, the category links would look like this.

    http://domain-name.com/products/category/category-slug

    Products would then have this format of URL.

    http://domain-name.com/products/product/product-slug

    Currently, with the “pretty permalinks” option turned on, the products do display in this manner. Although it seems clear from your reply that there is no way to configure UPCP to do this for category, I was wondering if you know a workaround for this, or if you could point to a client using this plugin in this manner (or something similar).

    Hi tdmoose,

    Unfortunately, the only workaround would be to custom code the URLs to function as you require. This isn’t something we’ve ever tried to do, so we wouldn’t even really be able to say how to get started or offer exact pointers, as the risk of messing up other functionality would be high.

    Because the categories currently don’t have slugs and because they display dynamically via the get call in the URL, it likely wouldn’t be a quick rewrite on your end, even if you were to attempt to tackle it.

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

The topic ‘How to change IDs’ is closed to new replies.