Shortcodes are extremely useful if you do not have programming knowledge. By default, you are setup with a way to view your product as you create it, but displaying other aspects of your store such as search forms, tracking information forms, and category listings, need to be set on a page with a shortcode. These should help you get started.

Category Page Shortcode w/Add to Cart


This shortcode will display a list of items on a page based on category. The add to cart button will be visible on these listing pages but with the purpose of having no detail page. Optional Parameters

  • detailurl – this is used to display a custom detail page – should not need to set this if you’re using the latest version of FoxyPress
  • addtocart – setting to 1(true/yes) will display an add to cart button for the category listing. setting to 0 (false/no) will hide this add to cart and leave it up to the user to click into the product to add to cart
  • cols – The number of items per row.
  • mode – we will want to use ‘list’ for the category view.
  • items – the number of items per page before we display pagination.
  • categoryid – items will be shown from the category id specified (click on manage categories to get your category id)
  • show_qty – setting to 1 or 0 will toggle whether a box to enter quantity desired will show up
  • order – Either ASC or DESC. Orders products by product name alphabetically. (since 0.4.7)
  • orderby – Order results by column (post_title, post_date, post_modified, ID, sort_order) (default = sort_order) (since 0.4.7)
  • show_main_image – Show or hide the featured image for the product. Value of 1(true/yes) will display an add to cart button for the category listing. Value of 0 (false/no) will hide the image. (since 0.4.10)
  • show_thumbs – If show_main_image is set to 1, a value of 1 will also display any additional thumbnails for the product. A value of 0 will not display them. If show_main_image is set to 0, this attribute will have no effect. (since 0.4.10)
  • showmoredetail – Show or hide the “Read More” text. Setting this value to 1 will display it. Setting this value to 0 will hide it. (since 0.4.10)
  • showdescription – Show or hide the product description (excerpt).Setting this value to 1 will display it. Setting this value to 0 will hide it.  (since 0.4.10)

Single Product Shortcode

Sorry, this item is no longer available.

$0.00
This shortcode will display a single item’s details, including an add to cart button based on the id provided.

Tracking Page Shortcode

[ foxypress mode=’tracking’ ] FoxyPress [ /foxypress ] This shortcode will display an order information module. The module will allow a visitor to enter an order number and last name to display information about their order, including the tracking number if provided in the FoxyPress management area.

Search Form Shortcode

[ foxypress mode=’search’  ] FoxyPress [ /foxypress ] This shortcode will display a form that will let your users search for products in your store.

Detail Page Shortcode (Deprecated)

Sorry, this item is no longer available.

Shortcodes Explained
$0.00
Shortcodes are extremely useful if you do not have programming knowledge. By default, you are setup with a way to view your product as you create it, but displaying other aspects of your store such as search forms, tracking information forms, and category listings, need to be set on a page with a shortcode. These should help you get started.

Category Page Shortcode w/Add to Cart

[foxypress categoryid='2' addtocart='0' ]FoxyPress[/foxypress] This shortcode will display a list of items on a page based on category. The add to cart button will be visible on these listing pages but with the purpose of having no detail page. Optional Parameters
  • detailurl - this is used to display a custom detail page - should not need to set this if you're using the latest version of FoxyPress
  • addtocart - setting to 1(true/yes) will display an add to cart button for the category listing. setting to 0 (false/no) will hide this add to cart and leave it up to the user to click into the product to add to cart
  • cols - The number of items per row.
  • mode - we will want to use 'list' for the category view.
  • items - the number of items per page before we display pagination.
  • categoryid - items will be shown from the category id specified (click on manage categories to get your category id)
  • show_qty - setting to 1 or 0 will toggle whether a box to enter quantity desired will show up
  • order - Either ASC or DESC. Orders products by product name alphabetically. (since 0.4.7)
  • orderby - Order results by column (post_title, post_date, post_modified, ID, sort_order) (default = sort_order) (since 0.4.7)
  • show_main_image - Show or hide the featured image for the product. Value of 1(true/yes) will display an add to cart button for the category listing. Value of 0 (false/no) will hide the image. (since 0.4.10)
  • show_thumbs - If show_main_image is set to 1, a value of 1 will also display any additional thumbnails for the product. A value of 0 will not display them. If show_main_image is set to 0, this attribute will have no effect. (since 0.4.10)
  • showmoredetail - Show or hide the "Read More" text. Setting this value to 1 will display it. Setting this value to 0 will hide it. (since 0.4.10)
  • showdescription - Show or hide the product description (excerpt).Setting this value to 1 will display it. Setting this value to 0 will hide it.  (since 0.4.10)

Single Product Shortcode

[foxypress id='3' mode='single' ]FoxyPress[/foxypress] This shortcode will display a single item's details, including an add to cart button based on the id provided.

Tracking Page Shortcode

[ foxypress mode='tracking' ] FoxyPress [ /foxypress ] This shortcode will display an order information module. The module will allow a visitor to enter an order number and last name to display information about their order, including the tracking number if provided in the FoxyPress management area.

Search Form Shortcode

[ foxypress mode='search'  ] FoxyPress [ /foxypress ] This shortcode will display a form that will let your users search for products in your store.

Detail Page Shortcode (Deprecated)

[foxypress mode='detail']FoxyPress[/foxypress] This is a placeholder to put on the item detail page. Item information will automatically be displayed on this page for the specific product and an add to cart button will be visible. This product is based off of the query string value (id). Upon installing FoxyPress, this page and shortcode should be created for you.   For more help, read our articles on the Knowledge Base.
This is a placeholder to put on the item detail page. Item information will automatically be displayed on this page for the specific product and an add to cart button will be visible. This product is based off of the query string value (id). Upon installing FoxyPress, this page and shortcode should be created for you.

 

For more help, read our articles on the Knowledge Base.