I have WooCommerce installed already and the category url of WooCommerce is like this:
url.com/product-category/category1 works fine for displaying the category.
This is what I am aiming to achieve. url.com/product-category/category1/pagename
category1 is the name of the category which is set in the page back-end in custom field.
pagename is the name of the page.