• Hello,

    I am an experienced PHP programmer but quite new to WordPress.
    My final goal is to customize a child theme (of storefront) in order to have exactly what I need/want – while writing or modifying anything that is necessary.

    For now I am just playing around and reading a lot, my goal is to build my shop and learn at the same time.

    One of the things I want to do is control the shop link structure, completely remove the shop base, unite the categories with the sub categories and products and some other stuff.
    Unfortunately this is a thing which require deep understatement of how WordPress and Woocommerce works, so instead of building and learning at the same time like I wanted, I find my self reading a lot of materials which are helpful but not really relevant to my understatement of this issue.

    I could just move on and come back to this when I have better understanding, but changing urls is basically an SEO disaster so I really have to solve this thing right on the beginning.

    I already read a lot and understood how not recommended it is, but again I am an experienced PHP developer and my final goal is to master WordPress and Woocommerce code – having 100% control of my url is mandatory for me.

    While creating customs pages at customs locations will give me complete control over the pages URLs, the objects will still point to the old url.
    I mean – I could easily create new categories and products pages, I could even do this manually and I believe this is not a major challenge, the thing is how do I alert Woocommerce about those new locations? when a list of products will be displayed, or even when an external plugin like affiliation will link to those products – how do I rewrite those values of existing urls that will be queried from the objects themselves?

    What am I asking for?

    Some directions, what should I focus on my learning curve in order to understand and solve this issue as fast as possible.

    I will read everything and every subject even twice, but for now I would just like to know what to focus in order to be able to keep moving on with my shop and not only with my learning curve.

    Sorry for the long text, I just wanted to make sure I am clear with my needs 🙂

    Thank you.

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Permalinks are one of the more advanced topics. I’ve not really attempted to change too much of the core WP system because of past experience knowing how it breaks *a lot* of things by causing conflicts. e.g. If you have no base, WP doesn’t know what type of object you’re viewing; post, product, category etc AFAIK thats a limitation of WordPress.

    Rather than focus solely on WooCommerce, you should probably look at WordPress itself, it’s permalink system and API, and how that works with custom post types, like products.

    https://codex.wordpress.org/Rewrite_API

    Looks like you need to delve into WordPress code code 🙂

    Thread Starter thejunkyg

    (@thejunkyg)

    Thank you for your reply, this is what I am currently doing 🙂

    About “e.g. If you have no base, WP doesn’t know what type of object you’re viewing; post, product, category etc AFAIK that’s a limitation of WordPress.”

    That is what I read also, but my shop is not infinite – once I manage to get better understanding of the infrastructure I will even solve it with a simple switch for categories and sub categories or even for products, this can’t be a barrier as far as I understand.

    I am just trying to boost my learning curve to be more practical, I want to see things moving while I read stuff and this is not the current situation 🙂

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Good luck then. Maybe you can blog about your learnings 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Please help me focus my learning of WordPress/Woocommerce code’ is closed to new replies.