Documentation

Dukagate Documentation

Shortcodes

There are a number of shortcodes Dukagate uses :

  1. [dg_display_products] – use this shortcode to display your products. Attributes are :
    • layout – Layout to display the products : grid or list . You can only use one at a time
    • total – Total number of products to shoow
    • top – Number to show on top row
    • per_page – number of products to show per page
    • order – defines how the products will be ordered. Possible values are ASC, DESC or rand. You can only use one at time
    • image_width – width of the product image (without the ‘px’). Defaults to 200
    • image_height – height of the product image (without the ‘px’). Defaults to 200
    • group – Id of the grouped products that you would like to display
    • ajax_cart – enable or disable ajax cart. Possible values are true or false
    • quantity – show product quantity variations as a drop down
    • checkout_link – show or hide checkout link at the bottom of the product list
    • add_to_cart_text – Specify the text for Add to cart

     

  2.  [dg_display_product] – use this to display details in a product page
  3. [dg_group_display] – use this shortcode to display grouped products as a list. Attributes are :
    • top – Number to show on top row
    • parent – Get grouped products by parent category ids
    • child – comma seperated ids of children products to show in parent
    • child_hide_images – ids of children items in grouped products to hide images
    • image_width – width of the product image (without the ‘px’). Defaults to 200
    • image_height – height of the product image (without the ‘px’) . Defaults to 200
    • ajax_cart – enable or disable ajax cart. Possible values are true or false
    • quantity – show product quantity variations as a drop down
    • checkout_link – show or hide checkout link at the bottom of the product list

     

  4. [dg_group_grid] – use this shortcode to display grouped products as a grid. Attributes are:
    • image_width – width of the product image (without the ‘px’). Defaults to 200
    • image_height – height of the product image (without the ‘px’) . Defaults to 200
    • total – total to show
    • top – Number to show on top row
    • groups – Id of the grouped products that you would like to display

     

  5. [dg_display_cart_checkout] – use this shortcode to display a cart on the checkout page. Attributes are :
    • layout – layout to display the cart. Options are fixed and fluid (defaults to fixed). Fixed allows the cart content to be displayed in a table format. Fluid allows the cart to be manipulated using css hooks. Only one option may be used at a time

     

  6. [dg_display_checkout_link] – use this shortcode to display a checkout link or a custom checkout link on any page. Attributes are:
    • shop – The page id you want to link to

     

  7. [dg_display_thankyou] – use this shortcode to display a thank you page. The shortcode will display the status of a transaction to the user