5 Replies - 338 Views - Last Post: 08 June 2018 - 07:14 AM

#1 ratonhnaketon   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 55
  • Joined: 07-January 16

Is this possible to implement this idea in wordpress?

Posted 07 June 2018 - 01:18 PM

I really don't know if this is possible or not. Here is what i gonna do: I have a barbershop post type, this cpt has a taxonomy called service. Every barbershop i register, has different services, but every service in every barbershop has a different price, right? Is this something I can implement in wordpress? I want to do it with custom post type(barbershop), taxonomies(services) and taxonomy metadatas(price). If this is possible with these wordpress concepts, I want to know how. But if you have another solution to implement this or you think it's not possible at all, I'm glad to hear it.

Is This A Good Question/Topic? 0
  • +

Replies To: Is this possible to implement this idea in wordpress?

#2 modi123_1   User is offline

  • Suitor #2
  • member icon



Reputation: 14691
  • View blog
  • Posts: 58,719
  • Joined: 12-June 08

Re: Is this possible to implement this idea in wordpress?

Posted 07 June 2018 - 01:29 PM

It would be fairly trivial for a regular database and server side code.

Table of shops.
Table of services
Table of shops to services.
Table of shops to services to prices

Feed in a 'shop id' and get the data.

So in theory.. if each page on your wordpress install is a 'shop' .. then having an ID for it should make it able to pull up data for it.

I guess the taxonomy would be just 'barber shop'.. term would be a shop id.. child would be services.. and grand child prices of said services.
Was This Post Helpful? 1
  • +
  • -

#3 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5332
  • View blog
  • Posts: 14,210
  • Joined: 18-April 07

Re: Is this possible to implement this idea in wordpress?

Posted 07 June 2018 - 07:35 PM

Are you talking about something like this plugin?

https://wordpress.or...onomy-metadata/
Was This Post Helpful? 1
  • +
  • -

#4 ratonhnaketon   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 55
  • Joined: 07-January 16

Re: Is this possible to implement this idea in wordpress?

Posted 08 June 2018 - 03:31 AM

View PostMartyr2, on 07 June 2018 - 07:35 PM, said:

Are you talking about something like this plugin?

https://wordpress.or...onomy-metadata/

No, I tried this. It's not helpful. I need every service to have a different price in every post. With this plugin it's not possible.
Was This Post Helpful? 0
  • +
  • -

#5 ratonhnaketon   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 55
  • Joined: 07-January 16

Re: Is this possible to implement this idea in wordpress?

Posted 08 June 2018 - 04:38 AM

View Postmodi123_1, on 07 June 2018 - 01:29 PM, said:

It would be fairly trivial for a regular database and server side code.

Table of shops.
Table of services
Table of shops to services.
Table of shops to services to prices

Feed in a 'shop id' and get the data.

So in theory.. if each page on your wordpress install is a 'shop' .. then having an ID for it should make it able to pull up data for it.

I guess the taxonomy would be just 'barber shop'.. term would be a shop id.. child would be services.. and grand child prices of said services.

I didn't get the idea, can you explain it more ?
Was This Post Helpful? 0
  • +
  • -

#6 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5332
  • View blog
  • Posts: 14,210
  • Joined: 18-April 07

Re: Is this possible to implement this idea in wordpress?

Posted 08 June 2018 - 07:14 AM

If every post is going to have a different price, that would almost fall into the realm of custom fields. When you make your page using the custom post type, you would have a couple extra custom fields where you can specify the services and prices. Because in either way you are going to have to do the work of adding each price and service as you make each page/post.

I get the feeling that what you are trying to do is already supported by WordPress out of the box and having to create new tables etc would be overkill. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1