ModularMerchant
Knowledge Base
Shopping Cart Software Online Manual
subscription_item DB Table
subscription DB Table system_settings DB Table
Location Home > Developer's Guide > Database Structure

subscription_item DB Table

this article last updated: May 24, 2010
Due to inevitable changes that will be made to the shopping cart software over time, the cart's variable and database structure may change from time to time without advanced notice. We will attempt to keep the information in this article up-to-date, but Modular Merchant makes no guarantee as to the accuracy of the information provided in this article. Use this information at your own risk.

This article outlines the database structure for the MMv4 subscription_item database table.

  • id
    Primary Key of rec_order_item table.
    int(10) | unsigned | auto increment | primary key | indexed
  • cid
    A reference to the customer.id field associated with this scheduled order item record.
    int(10) | unsigned | indexed
  • sai
    The system ID number of the shipping address associated with this scheduled order item record.
    int(10) | unsigned | indexed
  • ship_method_id
    The system ID number of the shipping method associated with this scheduled order item record.
    int(10) | unsigned | indexed
  • pid
    The system ID number of the product associated with this scheduled order item record.
    int(10) | unsigned | indexed
  • qty
    The number of the product to be shipped when this scheduled order is run.
    int(10)
  • price_alt
    The alternative price that will override the default product price of the product.
    double(16,2) | indexed
  • price_auth
    If the value in this field is greater than 0, the alternative price is used instead of the default product price.  The recorded value is the system ID number of the admin that overrode the default price.

    int(10) | unsigned | indexed
  • gift_wrap
    If the value i this field is greater than 0, the product should be gift-wrapped.
    int(10) | unsigned | Values: 0/timestamp | indexed
  • create_date
    The Unix timestamp of the creation date of this scheduled order item record.
    int(10) | unsigned | Values: 0/timestamp | indexed
  • bill_date
    The Unix timestamp of the date the order should be processed.
    int(10) | unsigned | Values: 0/timestamp | indexed
  • bill_times
    The number of times the product will rebill as itself.
    int(10) | unsigned | indexed
  • rebill_as
    The system ID number of the next product in the chain, if any.
    int(10) | unsigned | indexed
  • rec_type
    The subscription type, whether it will rebill per x amount of days, every x days of y, or every anniversary of the original subscription order.
    varchar(255) | indexed
  • rec_term
    The term of the subscription.
    int(10) | unsigned | indexed
  • rec_num_time_spans
    The number of time spans, this can be x days, months, year
    int(10) | unsigned | indexed
  • rec_time_span
    This is the identifier for the rec_num_time_spans column. The values can be days, weeks, months, or years.
    char(1) | indexed | values: D/W/M/Y
  • rec_grace
    The amount of days for the subscription grace period. If the subscription is purchased within this grace period, the rebilling terms will skip the first payment and start the following
    int(10) | unsigned | indexed
  • hold
    If the value in this field is greater than 0, the product will be skipped when the scheduled order is run.
    int(10) | unsigned | Values: 0/timestamp | indexed
  • reminder_sent
    If the value in this field is greater than 0, the customer has received reminder email about next scheduled order for this product.  This field is reset to 0 every time the scheduled order is run.
    int(10) | unsigned | Values: 0/timestamp | indexed
  • declines
    The number of times the scheduled order has been declined since the last time it ran successfully.
    int(10) | unsigned | indexed
  • completed_cycles
    The number of scheduled orders for this product that have already run.
    int(10) | unsigned | indexed
  • retain_order_notes
    If the value in this field is greater than 0, the order notes will be retained after the scheduled order is run.
    int(10) | unsigned | Values: 0/timestamp | indexed
  • order_notes
    Customer_facing notes that will be appended to the order receipt.
    text | unsigned

 

 



— Last Edited - 05/24/2010 10:57am PDT
Rank and add a comment to this article
Only logged in users may leave comments and rank articles. Log in to have your say!
  Knowledge Base Home

  QuickCode™ Tag Glossary

  Modular Merchant.com Homepage

Not Logged in.
Either Log in or create a User Account.

Other articles in this category...

account_activity DB Table

admin DB Table

admin_attr DB Table

admin_attr_data DB Table

admin_attr_node DB Table

admin_password DB Table

aff_commission DB Ttable

aff_default_target_url DB Table

aff_payment DB Table

aff_tid DB Table

aff_traffic DB table

ban_list DB Table

basket DB Table

basket_field_data DB table

category DB Table

category_attr DB Table

category_attr_assoc DB table

category_attr_data DB Table

category_attr_node DB Table

checkout_field DB table

checkout_field_node

customer DB Table

customer_attr DB Table

customer_attr_assoc DB table

customer_attr_data DB Table

customer_attr_node DB Table

customer_field DB Table

customer_field_data DB Table

customer_field_node DB Table

customer_group DB Table

customer_group_assoc DB table

customer_group_rule DB Table

customer_group_rule_node DB table

customer_ip DB Table

customer_pay_method DB Table

customer_ship_addr DB Table

custom_page DB Table

custom_quickcode DB Table

dec_orders DB table

dec_order_event_assoc DB table

dec_order_field_data DB table

dec_order_gateway_assoc DB table

dec_order_item DB table

dec_order_item_field_data DB table

dec_order_pay_method DB table

dec_order_shipment DB table

dec_order_tax_assoc DB table

dec_order_zone_fee_assoc DB table

digdel_fileserver DB table

digdel_ip DB Table

digdel_object DB table

digdel_object_zone DB table

digdel_order_item DB Table

dropship DB Table

dropship_report_hour_assoc DB Table

dropship_ship_method_assoc DB Table

em_attachment DB Table

em_history DB Table

em_link DB table

em_queue DB table

em_queue DB table

em_series DB table

em_series_step DB table

em_template DB table

event_ignore DB table

event_info DB table

event_tr DB table

event_tr_slot DB table

gift_cert DB table

inventory_object DB table

iptocountry DB Table

note DB table

orders DB Table

order_event_assoc DB Table

order_field DB Table

order_field_data DB table

order_field_node DB Table

order_gateway_assoc DB table

order_item DB Table

order_item_field_data DB table

order_item_report DB Table

order_item_royalty_assoc DB table

order_item_status DB Table

order_item_tracking_assoc DB Table

order_pay_method DB table

order_shipment DB Table

order_tax_assoc DB Table

order_zone_fee_assoc DB Table

ospg_orders DB table

ospg_order_event_assoc DB table

ospg_order_field_data DB table

ospg_order_gateway_assoc DB table

ospg_order_item DB table

ospg_order_item_field_data DB table

ospg_order_item_royalty_assoc DB

ospg_order_pay_method DB table

ospg_order_shipment DB table

ospg_order_tax_assoc DB table

ospg_order_zone_fee_assoc DB table

product DB Table

product_add_ship_assoc DB Table

product_attr DB Table

product_attr_assoc DB table

product_attr_data DB Table

product_attr_node DB Table

product_category_assoc DB Table

product_com_val DB Table

product_digobj_assoc DB Table

product_field DB Table

product_field_assoc DB Table

product_field_data DB Table

product_field_node DB Table

product_fulfillment_assoc DB Table

product_group DB Table

product_group_assoc DB Table

product_image DB Table

product_instance DB Table

product_royalty DB Table

product_ship_method_assoc DB Table

product_status DB Table

product_stock_assoc DB Table

product_vendor_assoc DB Table

product_zone_fee_assoc DB Table

ptcs DB Table

ptcs_item DB table

ptcs_item_use DB table

review DB table

review_ceriteria DB table

review_rank DB table

review_vote DB table

ship_method DB Table

ship_method_zone DB Table

ship_status DB Table

stock_level DB Table

subscription DB Table

subscription_item DB Table

system_settings DB Table

sys_email_us_english DB Table

sys_message_us_english

tax DB Table

tax_zone DB Table

tracking_id DB Table

vendor DB Table

vendor_attr DB Table

vendor_attr_data DB Table

vendor_attr_node DB Table

zone_fee DB Table

zone_fee_zone DB Table