Jump to content
  • 0

How Is Coupon Sql Worked Out


AutoSnipe

Question

Hi there, my site heavily relies on coupons and i am trying to work it out..

i see the 3 tables

"coupons", "coupons_amounts" & "coupons_packages"

 

the coupons packages is my problem..

i have inserted a coupon to the database with the last product in my database.

"46"

it also has the pricing_id for the url is 133.

 

but on the pricing_table.package_id it is 47.

but if i do product 1 it is 1 as the product.

how does this all work?? as i may have multiple coupons for the same product at different amounts..

hopefully someone understands what im trying to say.

 

Cheers,

Ryan.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Just worked it out i think..

 

here is what i have put it too...

if it has the option for monthly, quaterly or yearly. (as far as i can tell because my product id for '1' is only a single item for 1 month)

it stays the number.

if it has any payment options it has id+1.

 

i've just put that in my script to see what happened and 3 of them have worked so far..

 

by all means michael, check it out (buydedi.com) let me know what you think.. down the bottom "haggle"

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
Answer this question...

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

Loading...
×
×
  • Create New...