Jump to content


Photo
lloyd_borrett

  • : Jun 28 2009 01:44 AM
  • : Jun 28 2009 01:44 AM
  • : 2.51K
  • : 1475
  • : 171

Show_ZenCart_Specials





Snippet to let you display a random selection of specials from your ZenCart shop on an Etomite web site home page. See it in action at www.scubadoctor.com.au


# Show_ZenCart_Specials v1.0 - Etomite v0.6.1 RTM
#
# Created By: Lloyd Borrett
#
# Usage:
#    Make sure the url and paths are set to the right locations for your setup.
#
#    ?specials=xx
#        0 will show none! -1 will show them all.
#        any other number will show up to that qualtity.
#        Change $default_specialcount to the default number of items you want to see.
#
#    &div=[false|0] | someclass
#        if not specified then div isn't output.
#        if false|0 then the div isn't output.
#        any other value specified becomes the div class.
#
#    &image=[false|0]
#        if false|0 then the image isn't output.
#        if not specified then image is output.
#        anything else equates to true (default)
#
#    &class=[false|0] | someclass
#        if not specified then image class isn't output.
#        if false|0 then the img class isn't output.
#        any other value specified becomes the class.
#
# This test passing variables:
# call snippet like:
#  [[Show_ZenCart_Specials?specials=10]]
# This will show 10 specials.
#
# Version history:
#
# Version 1.0 by Lloyd Borrett - 2009-06-28






0 members, 2 guests, 0 anonymous users


Bing (1)