Skip to content

Instantly share code, notes, and snippets.

@Reyjay
Created July 31, 2013 17:37
Show Gist options
  • Save Reyjay/6124249 to your computer and use it in GitHub Desktop.
Save Reyjay/6124249 to your computer and use it in GitHub Desktop.
Slatwall Product variables
#$.slatwall.product('productDescription')#
#$.slatwall.product()#
#$.slatwall.getProduct()#<!---This is the proper way of doing it--->
#$.slatwall.product('productDescription')#
#$.slatwall.getProduct().getProductDescription()#<!---This is the proper way of doing it--->
#$.slatwall.product('productDescription', 'my-new-description')#
#$.slatwall.getProduct().setProductDescription('my-new-description')#<!---This is the proper way of doing it--->
#$.slatwall.getProduct().getBrand().getBrandName()#
#$.slatwall.getProduct().getBrand().getBrandWebsite()#<!---This is the proper way of doing it--->
#$.slatwall.product().getProductURL()#
#$.slatwall.product().getImage(size="m")#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment