Created by: Carnegie Museums of Pittsburgh
Allows the site of the Carnegie Museums of Pittsburgh to display Siriusware widgets using shortcodes. See below for descriptions of these shortcodes.
[swaddtocart site="siteID" item="itemID"]
[swcheckout site="siteID" item="itemID"]
[swaddtocarttimed site="siteID" group="groupCode"]
[swcheckouttimed site="siteID" group="groupCode"]
[swaddtocarttimed_firstga site="siteID" group="groupCode"]
Automatically selects a date/time to match or be after the earliest General Admission present in the cart
[swoneclickaddtocart site="siteID" item="itemID" mod="modID"]
Optional parameter date="YYYYMMDD"
should only be used for timed items.
Note: timed items use the item ID of the timeslot, NOT the group ID.
[swoneclickcheckout site="siteID" item="itemID" mod="modID"]
Optional parameter date="YYYYMMDD"
should only be used for timed items.
Note: timed items use the item ID of the timeslot, NOT the group ID.
[swmulticart site="siteID" items="itemsString"]
Desplays a series of items as a drop-down menu. “items” expects a comma-delimited list of Siriusware item IDs.
[swmulticheckout items="itemsString"]
Optional parameter site="siteID"
Desplays a series of items as a drop-down menu. “items” expects a comma-delimited list of Siriusware item IDs.
[swcart site="siteID"]
[swcardbalance]
All options can be managed on the WordPress admin page for the swidget plugin.
General
sw_date_format
) – How dates are displayed in placeholders. Uses the moment.js library. Info on formats found heresw_low_qty
) – The point when the low quantity message showssw_radio_cutoff
) – the maximum number before the input changes to dropdownsw_display_product_name
) – Show the name of the product (defaults to Yes)sw_open_tab
) – Open the checkout page in a new tab/windowsw_display_checkout_link
)sw_fill_dates
)sw_show_only_one_time
)sw_hide_price_decimal
)sw_pre_selected_date
) – A date to be pre-selected from the drop-down menu, in YYYY-MM-DD
format (timed ticketing)sw_pre_selected_time
) – A time to be pre-selected from the drop-down menu/radio buttons, in H:mm
format (timed ticketing)sw_overrideprice_start
) – Date to begin overriding price, in YYYY-MM-DD
format (timed ticketing)sw_overrideprice_end
) – Date to end overriding price, in YYYY-MM-DD
format (timed ticketing)Messages
sw_msg_loading
) – The message that displays while the tickets are loadingsw_msg_too_early
) – Message displayed if the product is not yet available to purchasesw_msg_offline_only
) – Message displayed when the item is available to be sold in Siriusware but not with e-commercesw_msg_maintenance
) – The message that is displayed when the site is undergoing maintenancesw_msg_expired
) – The message that is displayed when the item is no longer on salesw_msg_low_qty
) – The message that displays when there is low quantitysw_msg_sold_out
) – The message that displays when the item is sold outsw_msg_add_to_cart
) – A message for when an item is added to cart (Note: only for swaddtocart widgets)Text Modification
sw_txt_free
) – The text to display when an item is free (Replaces $0.00).sw_txt_fee
) – The text for additional feessw_txt_checkout
) – The text for the quick checkout buttonsw_txt_free_checkout
) – This replaces the quick checkout text if all items in the widget are freesw_txt_add_to_cart
) – Text for the add-to-cart widget’s checkout buttonsw_txt_checkout_link
) – The text to display as the checkout linksw_txt_discount
) – The text for discountssw_txt_member_discount
) – The text to show how much one would pay if they are a membersw_txt_members_only
) – The text to indicate that an item is for members onlysw_txt_select_new_date
) – The label text for the date selector (timed ticketing)sw_txt_select_new_time
) – The label text for the time selector (timed ticketing)sw_txt_select_new_item
) – The label text for the item selector (multi-item)sw_txt_date_dropdown_placeholder
) – The default text for the date selector (timed ticketing)sw_txt_time_dropdown_placeholder
) – The default text for the time selector (timed ticketing)sw_txt_item_dropdown_placeholder
) – The default text for the item selector (multi-item)sw_txt_pay_what_you_wish
) – The default text for the pay what you wish messageGeneral
sw_open_tab
) – Open the checkout page in a new tab/windowsw_display_timed_dates_in_cart
)Messages
Text Modification
sw_txt_cart
) – The text for the cart widget’s checkout buttonPlace holders are a special string which will be replace with information from the item. They can be used in any of the above options.
#{stock}
– How many tickets are remaining#{name}
– The name of the ticket#{start_sale}
– When the tickets go on sale#{end_sale}
– When the tickets go off sale (both online and offline)The following is the priority of where the widget gets its settings from (lower numbers trump higher numbers)
The following is the priority of the messages