Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to get Product Category ?


Recommended Posts

Hi all,

 

i am new to osC. May be my question would be a childish one.

 

well, tell me is there any function exist to get a product category id. i just want to pass a parameter as "product id" and it should return me the "category id" of that product. So, is it exist or i 'll have to write mine. Please tell me to write my own function what should i do ? and where should i place my function, i mean which file ?

 

There's also another problem:

 

i 've created another type of login say "Dealers", now i want to show a different price to the registered dealers. Each dealer have different prices @ each category. So the problem is, when i 've gone through the code, it uses queries everywhere to get product prices, it seems i 'll have to change everywhere through out the site, is there a solution of this problem, that i might be change a function & it results in the change of product price in both login types. That General customner will see it's own price & dealer will see the ( price * price_multiplier)

 

well, if u need more explanation then plz do tell me.

 

regards

 

Waqas

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...