Jump to content

Getting Configurable Option Prices (SQL)


Recommended Posts

Hello,

 

I apologize if this has been asked before, but I couldn't find anyone with the same problem as me.

 

Anyway, I have all sorts of products with different configurable options (groups) and I am trying to display one set of configoption (Slots) appear on a PHP page with SQL. I am executing test SQL commands in phpmyadmin, but I am getting inconsistent prices next to the configoptions.

 

SQL:

SELECT p.name, t.monthly, c.code FROM tblproducts AS p INNER JOIN tblpricing AS t ON t.type='configoptions' AND t.relid = p.id INNER JOIN tblcurrencies AS c ON c.id = t.currency WHERE p.hidden != 'on' AND p.type ='other' ORDER BY `p`.`name` ASC

 

Output:

sql.png

 

However the prices shown are not the prices I set up in the Configurable Options section and some prices don't show at all.

 

Can someone spot in my SQL statement where I am going wrong?

 

William

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.

Guest
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated