Add to Cart
`
the variable: page.url variable should be an external custom url variable which should get customized in the frontmatter with any custom link from the product item page.
the variable: page.url and # variable should be an external custom url variable which should be able to get customized with any custom link in the frontmatter from the grav product item page.
Dear grav developers, Is it possible to tweak the snipcart module to reference a external product item as well. Like this example:![howtoroutecorrectly](https://cloud.githubusercontent.com/assets/11161836/13090897/bb3765ca-d4f8-11e5-9601-f7445c8f5a76.jpg)
The specific file which need to be edited in this case is: https://github.com/getgrav/grav-plugin-snipcart/blob/develop/templates/partials/snipcart_detail_item.html.twig the following code:
`<a href="#" class="button snipcart-add-item" data-item-id="{{ page.header.product_id }}" data-item-name="{{ page.header.title }}" data-item-price="{{ page.header.price }}" data-item-url="{{ page.url }}"
and the same for: https://github.com/getgrav/grav-plugin-snipcart/blob/develop/templates/partials/snipcart_product_item.html.twig
`{{ page.header.title }}
`
the variable: page.url and # variable should be an external custom url variable which should be able to get customized with any custom link in the frontmatter from the grav product item page.
For now it is not possible for me to tweak this to any custom url from the frontmatter. I worked on a mac computer, and used the http://demo.getgrav.org/shop-skeleton/shop/geek-toys/ia449-brick-mug + Grav core + Admin plugin.
Greetings Paul