Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
New data protection regs ...
Forum: Shopp Tags
Last Post: support
05-03-2018, 01:27 PM
» Replies: 1
» Views: 4,229
|
Terms and conditions tick...
Forum: Shopp Tags
Last Post: support
03-02-2018, 10:23 AM
» Replies: 10
» Views: 15,228
|
Shopp Minimum Order Amoun...
Forum: Free third party plugins
Last Post: support
05-20-2017, 08:06 AM
» Replies: 0
» Views: 2,415
|
Paymill
Forum: Free third party plugins
Last Post: support
05-15-2017, 12:08 PM
» Replies: 0
» Views: 2,049
|
Event Tickets
Forum: Free third party plugins
Last Post: support
05-15-2017, 11:58 AM
» Replies: 0
» Views: 1,996
|
Term Duplicator
Forum: Free third party plugins
Last Post: support
05-15-2017, 11:54 AM
» Replies: 0
» Views: 2,032
|
Easy E-commerce Reviews l...
Forum: Free third party plugins
Last Post: support
05-15-2017, 11:44 AM
» Replies: 0
» Views: 2,030
|
Shopp Category Shipping F...
Forum: Free third party plugins
Last Post: support
05-15-2017, 11:41 AM
» Replies: 0
» Views: 2,012
|
Arrange Terms
Forum: Free third party plugins
Last Post: support
05-15-2017, 11:38 AM
» Replies: 0
» Views: 2,038
|
Shopp Breadcrumb Extender
Forum: Free third party plugins
Last Post: support
05-15-2017, 11:35 AM
» Replies: 0
» Views: 2,009
|
|
|
Undocumented actions |
Posted by: support - 04-29-2017, 10:29 AM - Forum: Undocumented
- No Replies
|
 |
Shopp has a lot of action hooks in place, this makes the system highly adjustable.
Some filters are documented, but many of them or not
This list is for reference only.
shopp_admin_notices
shopp_calculate_fallback_shipping
shopp_calculate_fallback_shipping_init
shopp_cart_item_retotal
shopp_cart_item_taxes
shopp_email_completed
shopp_error
shopp_errors_init
shopp_{gateway}_refunded
shopp_init
shopp_{event}_order_event
shopp_order_event
shopp_order_manager_event
shopp_{gateway}_{evente}
shopp_pre_resession
shopp_price_updates
shopp_product_delete
shopp_product_editor_templates
shopp_product_trashed
shopp_purchase_order_created
shopp_rebuild_search_index_completed
shopp_rebuild_search_index_init
shopp_rebuild_search_index_progress
shopp_reinstall
shopp_report_filter_controls
shopp_resource_download
shopp_resource_export_customers
shopp_resource_export_purchases
shopp_resource_export_reports
shopp_resource_help
shopp_session_reset
shopp_shipping_module_settings
shopp_storage_engine_settings
shopp_storefront_init
wp_ajax_nopriv_shopp_ship_costs
wp_ajax_nopriv_shopp_upload_file
wp_ajax_nopriv_shopp_upload_image
wp_ajax_shopp_activate_key
wp_ajax_shopp_add_category
wp_ajax_shopp_category_children
wp_ajax_shopp_category_order
wp_ajax_shopp_category_products
wp_ajax_shopp_category_products_order
wp_ajax_shopp_country_zones
wp_ajax_shopp_deactivate_key
wp_ajax_shopp_debuglog
wp_ajax_shopp_edit_slug
wp_ajax_shopp_feature_product
wp_ajax_shopp_gateway
wp_ajax_shopp_import_file
wp_ajax_shopp_nonag
wp_ajax_shopp_options_template
wp_ajax_shopp_order_note_message
wp_ajax_shopp_order_receipt
wp_ajax_shopp_rebuild_search_index
wp_ajax_shopp_select_customer
wp_ajax_shopp_ship_costs
wp_ajax_shopp_spec_template'
wp_ajax_shopp_storage_suggestions
wp_ajax_shopp_suggestions
wp_ajax_shopp_update_inventory
wp_ajax_shopp_upload_file
wp_ajax_shopp_upload_image
wp_ajax_shopp_upload_local_taxes
wp_ajax_shopp_verify_file
|
|
|
What are the options for options |
Posted by: support - 04-21-2017, 08:16 AM - Forum: Shopp Tags
- No Replies
|
 |
When using shopp() tags with dot notation, the options are the second argument
Code: shopp('Object.property', 'options');
otherwise it will be the third argument
Code: shopp('Object', 'property', 'options');
Options come in pairs
There is a name and a value for every option, for example
Code: shopp('product.coverimage', 'alt=My Image' );
In this case, the name of the option is 'alt', the value is 'My Image'.
Multiple options
Most shopp() tags have multiple options you can set. To combine options you use the &-sign.
Code: shopp('product.coverimage', 'alt=My Image&size=300' );
All the option name-value pairs combined, are within one pair of single quotes, no matter how many options you set.
Using variables in options
To make options even more flexible, you can also use variables to set the value.
Code: $size = 300;
shopp('product.coverimage', "alt=My Image&size=$size" );
Pay attention to the quotes, when you use variables you need to use double quotes.
|
|
|
Shopp 1.3.x or current dev |
Posted by: support - 04-20-2017, 12:24 PM - Forum: Development
- No Replies
|
 |
This is the current dev version of the Shopp software.
It includes patches for issues found in the current stable release, and enhancements requested on Github.
Quote: Wrote:This version is best tested on a test environment before applying it to a production site
After installing, make sure the plugin files are in a /shopp folder, not /shopp.git
Found issues?
Report any issue you find on: Github.
Use [1.3.x] or [1.3.14.dev] in the subject to link the issue to the correct branch.
Download current dev from Github
|
|
|
Shopp Master or 1.4dev |
Posted by: support - 04-20-2017, 12:11 PM - Forum: Development
- No Replies
|
 |
This is a future dev version of the Shopp software.
Major changes have been made to admin screens and the structure of the code and files.
Quote:This version is in no way fit to be used on a live website
Still it is highly appreciated when you take this version for a spin on your test environment.
After installing, make sure the plugin files are in a /shopp folder, not /shopp.git
Found issues?
Report any issue you find on: Github.
Use [master] or [1.4.dev] in the subject to link the issue to the correct branch.
Download latest future dev from Github
|
|
|
Default way to use shopp() tags |
Posted by: support - 04-19-2017, 09:30 AM - Forum: Shopp Tags
- No Replies
|
 |
Shopp uses its own shopp() tag to retrieve information on products, categories/collections, cart, cartitem and so on.
The tag always uses 3 arguments at most,
Code: shopp('Object', 'property', 'options');
or 2 arguments when using dot notation.
Code: shopp('Object.property', 'options');
The 'options' argument is not always needed.
Let's say you want to display the name of a product, the tag would be:
Code: shopp('product', 'name');
or with dot notation
shopp('product.name');
The shopp tags can be used in the template files to display information, but also in custom functions.
Let's say you do not want to display the name of the product directly, but need to perform some tests first.
Code: $name = shopp('product.get-name');
if ( 'some product name' == $name )
// do something
Shopp tags are documented here
|
|
|
|