Skip to content

Instantly share code, notes, and snippets.

@philcon93
Last active March 24, 2016 05:22
Show Gist options
  • Save philcon93/1285388fe28c1db8c5ae to your computer and use it in GitHub Desktop.
Save philcon93/1285388fe28c1db8c5ae to your computer and use it in GitHub Desktop.
Get / Set Parent Misc Field

Get the parent elements when you have product variations else use this element

B@se

[%product sku:'[@parent_sku@]'%]

<!-- Get the parent elements when you have product variations else use this element -->
[%set [@daddymisc10@]%]
[%if [@parent_sku@]%]
[%product sku:'[@parent_sku@]'%]
[%param *body%]
[@misc10@]
[%/param%]
[%/product%]
[%else%]
[@misc10@]
[%/if%]
[%/set%]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment