Skip to content

Instantly share code, notes, and snippets.

@alexshk
Last active September 15, 2016 14:50
Show Gist options
  • Save alexshk/84b354d538d2229b7e579a27d1b43a26 to your computer and use it in GitHub Desktop.
Save alexshk/84b354d538d2229b7e579a27d1b43a26 to your computer and use it in GitHub Desktop.
<div class="basket">
<script type="text/javascript">
window.basket_data = {
models: [
{
id: 1,
title: 'Leotard',
item_price: 333,
colors: [
{
title: "Blue",
selected: true,
image: "/content/blue-back.png",
value: "blue"
},
{
title: "Red",
value: "red"
},
{
title: "Green",
image: "/content/green-back.png",
value: "green"
}
],
sport: [
{
title: "rhythmic",
selected: true,
value: "rhythmic"
},
{
title: "rhythmic2",
value: "rhythmic2"
}
],
items: [
{
crystals: 1500,
crystals_swarovsky: 0,
age: 2,
height: 33,
...
request: 'Special request for this'
},
...
]
},
...
]
}
</script>
</div>
@alexshk
Copy link
Author

alexshk commented Sep 15, 2016

Вот такую переменную хотелось бы получать.
Соответственно после того как клиент все заполнит: обновлю данные в этой переменной и отправлю ее дальше.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment