diff --git a/Views/frontend/plugins/nosto_tagging/addtocart_script.tpl b/Views/frontend/plugins/nosto_tagging/addtocart_script.tpl new file mode 100644 index 00000000..04ba8725 --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/addtocart_script.tpl @@ -0,0 +1,70 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_addtocart_script"} + +{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/cart_tagging.tpl b/Views/frontend/plugins/nosto_tagging/cart_tagging.tpl new file mode 100644 index 00000000..445e7d6c --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/cart_tagging.tpl @@ -0,0 +1,50 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_cart"} + +{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/checkout/cart.tpl b/Views/frontend/plugins/nosto_tagging/checkout/cart.tpl index 51e980b5..877ca603 100644 --- a/Views/frontend/plugins/nosto_tagging/checkout/cart.tpl +++ b/Views/frontend/plugins/nosto_tagging/checkout/cart.tpl @@ -34,7 +34,5 @@ *} {block name="frontend_index_content" append} -
-
-
+ {include file="frontend/plugins/nosto_tagging/checkout/cart_recos.tpl"} {/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/checkout/cart_recos.tpl b/Views/frontend/plugins/nosto_tagging/checkout/cart_recos.tpl new file mode 100644 index 00000000..be1e951a --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/checkout/cart_recos.tpl @@ -0,0 +1,40 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_cart_recos"} +
+
+
+{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/checkout/finish.tpl b/Views/frontend/plugins/nosto_tagging/checkout/finish.tpl index bf18a65c..956dcec1 100644 --- a/Views/frontend/plugins/nosto_tagging/checkout/finish.tpl +++ b/Views/frontend/plugins/nosto_tagging/checkout/finish.tpl @@ -34,28 +34,5 @@ *} {block name="frontend_index_content" append} -{if isset($nostoOrder) && is_object($nostoOrder)} - -{/if} -{/block} + {include file="frontend/plugins/nosto_tagging/checkout/order_tagging.tpl"} +{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/checkout/order_tagging.tpl b/Views/frontend/plugins/nosto_tagging/checkout/order_tagging.tpl new file mode 100644 index 00000000..ad2e9d0b --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/checkout/order_tagging.tpl @@ -0,0 +1,61 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_order"} + {if isset($nostoOrder) && is_object($nostoOrder)} + + {/if} +{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/customer_tagging.tpl b/Views/frontend/plugins/nosto_tagging/customer_tagging.tpl new file mode 100644 index 00000000..1b644912 --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/customer_tagging.tpl @@ -0,0 +1,44 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_customer"} + {if isset($nostoCustomer) && is_object($nostoCustomer)} + + {/if} +{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/detail/index.tpl b/Views/frontend/plugins/nosto_tagging/detail/index.tpl index 02a17a19..d958df2a 100644 --- a/Views/frontend/plugins/nosto_tagging/detail/index.tpl +++ b/Views/frontend/plugins/nosto_tagging/detail/index.tpl @@ -34,59 +34,6 @@ *} {block name="frontend_index_content" append} -
-
-
- {if isset($nostoProduct) && is_object($nostoProduct)} - - {/if} - {if isset($nostoCategory) && is_object($nostoCategory)} - - {/if} + {include file="frontend/plugins/nosto_tagging/detail/product_recos.tpl"} + {include file="frontend/plugins/nosto_tagging/detail/product_tagging.tpl"} {/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/detail/product_recos.tpl b/Views/frontend/plugins/nosto_tagging/detail/product_recos.tpl new file mode 100644 index 00000000..78cff036 --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/detail/product_recos.tpl @@ -0,0 +1,40 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_product_recos"} +
+
+
+{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/detail/product_tagging.tpl b/Views/frontend/plugins/nosto_tagging/detail/product_tagging.tpl new file mode 100644 index 00000000..1863ea77 --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/detail/product_tagging.tpl @@ -0,0 +1,91 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_product"} + {if isset($nostoProduct) && is_object($nostoProduct)} + + {/if} +{/block} +{block name="nosto_product_category"} + {if isset($nostoCategory) && is_object($nostoCategory)} + + {/if} +{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/embed_script.tpl b/Views/frontend/plugins/nosto_tagging/embed_script.tpl new file mode 100644 index 00000000..e6a89ad9 --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/embed_script.tpl @@ -0,0 +1,49 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_embed_script"} + {if isset($nostoServerUrl) && isset($nostoAccountName)} + {if $nostoScriptDirectInclude} + + {else} + + {/if} + {/if} +{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/index.tpl b/Views/frontend/plugins/nosto_tagging/index.tpl index ef72b6f1..6e6982a4 100644 --- a/Views/frontend/plugins/nosto_tagging/index.tpl +++ b/Views/frontend/plugins/nosto_tagging/index.tpl @@ -34,81 +34,14 @@ *} {block name='frontend_index_header_meta_tags' append} - - - + {include file="frontend/plugins/nosto_tagging/meta_tags.tpl"} {/block} {block name="frontend_index_header_javascript" append} -{if isset($nostoServerUrl) && isset($nostoAccountName)} - {if $nostoScriptDirectInclude} - - {else} - - {/if} - -{/if} + {include file="frontend/plugins/nosto_tagging/embed_script.tpl"} + {include file="frontend/plugins/nosto_tagging/addtocart_script.tpl"} {/block} {block name="frontend_index_content" append} - {if isset($nostoCustomer) && is_object($nostoCustomer)} - - {/if} - - {if isset($nostoPriceVariation) && is_object($nostoPriceVariation)} - - {/if} + {include file="frontend/plugins/nosto_tagging/customer_tagging.tpl"} + {include file="frontend/plugins/nosto_tagging/cart_tagging.tpl"} + {include file="frontend/plugins/nosto_tagging/variation_tagging.tpl"} {/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/index/front_recos.tpl b/Views/frontend/plugins/nosto_tagging/index/front_recos.tpl new file mode 100644 index 00000000..2ca73924 --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/index/front_recos.tpl @@ -0,0 +1,41 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_front_recos"} +
+
+
+
+{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/index/index.tpl b/Views/frontend/plugins/nosto_tagging/index/index.tpl index 842665d5..65b0487e 100644 --- a/Views/frontend/plugins/nosto_tagging/index/index.tpl +++ b/Views/frontend/plugins/nosto_tagging/index/index.tpl @@ -34,8 +34,5 @@ *} {block name="frontend_index_content" append} -
-
-
-
+ {include file="frontend/plugins/nosto_tagging/index/front_recos.tpl"} {/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/listing/category_recos.tpl b/Views/frontend/plugins/nosto_tagging/listing/category_recos.tpl new file mode 100644 index 00000000..8874ff9e --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/listing/category_recos.tpl @@ -0,0 +1,39 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_category_recos"} +
+
+{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/listing/category_tagging.tpl b/Views/frontend/plugins/nosto_tagging/listing/category_tagging.tpl new file mode 100644 index 00000000..81653658 --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/listing/category_tagging.tpl @@ -0,0 +1,40 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_category"} + {if isset($nostoCategory) && is_object($nostoCategory)} + + {/if} +{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/listing/index.tpl b/Views/frontend/plugins/nosto_tagging/listing/index.tpl index eef3a346..d7901912 100644 --- a/Views/frontend/plugins/nosto_tagging/listing/index.tpl +++ b/Views/frontend/plugins/nosto_tagging/listing/index.tpl @@ -34,9 +34,6 @@ *} {block name="frontend_index_content" append} -
-
- {if isset($nostoCategory) && is_object($nostoCategory)} - - {/if} + {include file="frontend/plugins/nosto_tagging/listing/category_recos.tpl"} + {include file="frontend/plugins/nosto_tagging/listing/category_tagging.tpl"} {/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/meta_tags.tpl b/Views/frontend/plugins/nosto_tagging/meta_tags.tpl new file mode 100644 index 00000000..a1abf40a --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/meta_tags.tpl @@ -0,0 +1,40 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name='nosto_meta_tags'} + + + +{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/search/index.tpl b/Views/frontend/plugins/nosto_tagging/search/index.tpl index cfd95575..766d8fba 100644 --- a/Views/frontend/plugins/nosto_tagging/search/index.tpl +++ b/Views/frontend/plugins/nosto_tagging/search/index.tpl @@ -33,13 +33,7 @@ * @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause *} -{block name="frontend_index_content" prepend} -
-{/block} - {block name="frontend_index_content" append} -
- {if isset($nostoSearch) && is_object($nostoSearch)} - - {/if} + {include file="frontend/plugins/nosto_tagging/search/search_recos.tpl"} + {include file="frontend/plugins/nosto_tagging/search/search_tagging.tpl"} {/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/search/search_recos.tpl b/Views/frontend/plugins/nosto_tagging/search/search_recos.tpl new file mode 100644 index 00000000..75132d04 --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/search/search_recos.tpl @@ -0,0 +1,39 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_search_recos"} +
+
+{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/search/search_tagging.tpl b/Views/frontend/plugins/nosto_tagging/search/search_tagging.tpl new file mode 100644 index 00000000..f8fb15b0 --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/search/search_tagging.tpl @@ -0,0 +1,40 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_search"} + {if isset($nostoSearch) && is_object($nostoSearch)} + + {/if} +{/block} \ No newline at end of file diff --git a/Views/frontend/plugins/nosto_tagging/variation_tagging.tpl b/Views/frontend/plugins/nosto_tagging/variation_tagging.tpl new file mode 100644 index 00000000..56c935e6 --- /dev/null +++ b/Views/frontend/plugins/nosto_tagging/variation_tagging.tpl @@ -0,0 +1,42 @@ +{** +* Copyright (c) 2015, Nosto Solutions Ltd +* All rights reserved. +* +* Redistribution and use in source and binary forms, with or without +* modification, are permitted provided that the following conditions are met: +* +* 1. Redistributions of source code must retain the above copyright notice, +* this list of conditions and the following disclaimer. +* +* 2. Redistributions in binary form must reproduce the above copyright notice, +* this list of conditions and the following disclaimer in the documentation +* and/or other materials provided with the distribution. +* +* 3. Neither the name of the copyright holder nor the names of its contributors +* may be used to endorse or promote products derived from this software without +* specific prior written permission. +* +* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +* POSSIBILITY OF SUCH DAMAGE. +* +* @author Nosto Solutions Ltd +* @copyright Copyright (c) 2015 Nosto Solutions Ltd (http://www.nosto.com) +* @license http://opensource.org/licenses/BSD-3-Clause BSD 3-Clause +*} + +{block name="nosto_variation"} + {if isset($nostoPriceVariation) && is_object($nostoPriceVariation)} + + {/if} +{/block} \ No newline at end of file