Post by scottyboyyy » Tue Jul 10, 2018 10:46 pm

Playing about with creating a profile page for customers, which pulls some data from oc_customer database. I can access each customer from the controller file by putting their ID into the getCustomer function.

$customer_info = $this->model_account_customer->getCustomer(x);

I am wanting to do this for a customer profile page where customer_id each has their own page. Which is the thing that I can't understand, how the page for example product and category differentiate from each other - there's product_id=50 which is something and product=51 something completely different. Where is this done (the url and page differentiation)? I can't seem to find how it's done in the controller or model file.

Any tips would be appreciated!

New member

Posts

Joined
Fri Apr 07, 2017 2:36 am

Post by Qphoria » Wed Jul 11, 2018 1:01 am

The url has &product_id=50 and that tells the code to load product 50
But what information are you trying to show? Most of that info is already in the Account page.

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 26 guests