Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / how to get URL to categories, products, manufactures and ez-pages

how to get URL to categories, products, manufactures and ez-pages

Started by evelt on 18 Feb 2015, 2:40 PM · Views: 671

Results 1 to 3 of 3
18 Feb 2015, 2:40 PM
#1
evelt avatar

evelt

Zen Follower

Join Date:
Nov 2009
Location:
In beautyful New York
Posts:
170
Plugin Contributions:
1

Post #1 by evelt

Hi,
is there any way to get the url / path to a specific category or product

for EZ pages i have this code ```php
echo zen_ez_pages_link(1);


and what about manufactures etc.?
 

This is needed because the url to products and categories etc. can be rewritten by mods like Ceon uri mapping
Your help is greatly appreciated
18 Feb 2015, 3:27 PM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #2 by rodg

eVelt:

Hi,
is there any way to get the url / path to a specific category or product

I'm probably missing something here, but the easiest way is to navigate to the product or category (with a web browser) and simply copy the URL from the address bar.

This seems too easy though, which is why I think I'm missing something.

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

18 Feb 2015, 4:08 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #3 by ajeh

In EZ-Pages, if I wanted to go to cPath 3_10, I would use:
index.php?main_page=index&cPath=3_10

If I wanted to go to Privacy Notice I would use:
index.php?main_page=privacy

If I wanted to go to products_id 12, I would use:
index.php?main_page=product_info&products_id=12

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!