WordPress Custom URL with Permalinks - php

now i want to use standard url Like http://localhost/websitename/categoryname/
while passing value in href, in wordpress
Hi i have two table one is category and another is product in admin panel
i insert category and sub category and insert product according to category.
in front-end i displaying subcategory under category and now want when anyone click
on subcategory it will redirect in to next page such as
http://localhost/websitename/categoryname
in this page display all product under particular category.
Right now using ?id=125 and aacording to this particlar category id product are
displaying
how can i cahnge url

Go to settings-> Permalinks and then custom, paste this:
/%postname%/

Related

Woocommerce single product

I am making an e-commerce website with wordpress and there are a few things that are stressing me. I would like to have a custom single page for each product category. How do I do that?
You can create a new page on Wordpress, and add a shortcode there:
[product_category category="category-slug"] - just replace the "category-slug" with the category slug of yours. You can view the slug at Product > Categories in the admin menu.
This shortcode will display all products in a specified category. You can repeat this and create as many pages for as many categories as you want.

how to display categories in store front in magento?

I'm a opencart developer,but now i'm going to do project using magento.
i installed magento 1.9.1 version and added new categories in admin panel but it doesnot display in store front...please help me how to do this???
In admin panel categories -> manage categories, click to default category then click to Add Subcategory. img
Give the name to category, set Is Active and Include in Navigation Menu to yes. Then you can assign product's to the category.
Refresh the cache.
1- Go to admin
2- Catalog->manage categories
3- Select Default category and then add subcategory . You will
remember that subcategory should be created under default category.
Otherwise category will not be visible in frontend.

Woocommerce Permalinks

I am trying to achieve the following Woocommerce permalink structure:
Shop Base:
"www.domain.com/shop"
Product Base:
"www.domain.com/shop/%product_cat%/%product%"
Category Base:
"www.domain.com/shop/%product_cat%"
However, for example, when I navigate to "www.domain.com/shop/tshirts", WordPress redirects me to a url "www.domain.com/tshirts" instead of "www.domain.com/shop/tshirts".
(Take note: I do have a page at the url "www.domain.com/tshirts" giving information on all of the different types offered, materials, designs, etc. However, the product category should not redirect here, it should be "www.domain.com/shop/tshirts" where the customer can see all "tshirts" in the category "tshirts" for sale.)
Am I doing anything wrong, or is this permalink structure prohibited by Woocommerce and WordPress?
Thank you.
Based on this you cannot set both product and categories permalinks to the same structure. The last note is:
Please note: The product custom base should not conflict with the taxonomy permalink bases. If you set the product base to ‘shop’ for example, you should not set the product category base to ‘shop’ too as this will not be unique and will conflict. WordPress requires something unique so it can distinguish categories from products.
Visit "General" -> "Permalinks" section in your admin panel, There you can see the shop based permalink below.

Woocommerce: Showing Categories on every page

I am using the woocommerce plugin for a wordpress site. The categories of the shop should be listed on the left part of the page and the categories on the right side.
When the shop page first loads, it is displayed as above. Which is good. When I click on the category it only shows the products and not the categories.
Is there an easy way to get the categories on every page?
You can edit your category and set Display type to Both.
Default setting can be set in Settings page under Catalog tab.

WP E-commerce: show all products in category

How can I show category page that contains all products in this category? I have a menu with categories in the header. Those links are linked to the categories. I need customize the WP E-Commerce category template. Could you help?
Have you tried the "wpsc-products_page.php" template? If your theme doesn't have the file already, you can generate it via the WPEC settings page.

Categories