This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {if !$sArticle.sConfigurator && !$sArticle.variants && !$sArticle.sVariantArticle} | |
| <a href="{url controller=checkout action=addArticle sAdd=$sArticle.ordernumber sQuantity=1}" | |
| data-add-article="true" | |
| data-showModal="false" | |
| data-addArticleUrl="{url controller=checkout action=ajaxAddArticleCart sAdd=$sArticle.ordernumber sQuantity=1}" | |
| data-text="{s name="ListingBoxLinkCart"}In den Warenkorb{/s}" | |
| title="{s name="ListingBoxLinkCart"}In den Warenkorb{/s}" | |
| class="product--action action--add tooltip"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DELETE FROM s_order USING s_order, s_order as Dup WHERE NOT s_order.`id` = Dup.`id` AND s_order.`id` <> Dup.`id` AND s_order.`ordernumber` = Dup.`ordernumber` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT `id`, `ordernumber` FROM s_order WHERE EXISTS ( SELECT `id` FROM s_order dub WHERE s_order.`ordernumber` = dub.`ordernumber` AND s_order.`id` <> dub.`id`) ORDER BY `ordernumber` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select @i := 200000; | |
| update s_articles_details set `ordernumber` = CONCAT('STM-',(select @i := @i + 1)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
| <basketItem xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://api.spreadshirt.net"> | |
| <links> | |
| <link type="edit" xlink:href="http://shopware-sprd.maxout.de/"/> | |
| <link type="continueShopping" xlink:href="http://shopware-sprd.maxout.de"/> | |
| </links> | |
| <quantity>1</quantity> | |
| <element type="sprd:product" xlink:href="http://api.spreadshirt.net/api/v1/shops/436258/product/134011849"> | |
| <properties> | |
| <property key="appearance">4</property> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Retrieve Basket Checkout URL | |
| * Returns the checkout URL for the current basket that will used in the iFrame on shop checkout. | |
| * @param $basketUrl | |
| * @param $namespaces | |
| * @return string | |
| */ | |
| private function getCheckoutUrl($basketUrl, $namespaces) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Creates a new Spreadshirt basket | |
| * @param $shop | |
| * @param $namespaces | |
| * @return array | |
| */ | |
| private function createBasket($shop, $namespaces) | |
| { | |
| $basket = new \SimpleXmlElement('<basket xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://api.spreadshirt.net"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function() { | |
| var sizes = ["XS", "S", "M", "L", "XL", "2XL", "3XL", "4XL"], | |
| select = $('.configurator--form select[name="group[2]"]'); | |
| $('option', select).sort(function (a, b) { | |
| if(isNaN($(a).text().trim())){ | |
| return sizes.indexOf($(a).text().trim()) - sizes.indexOf($(b).text().trim()); | |
| }else{ | |
| return $(a).text() > $(b).text() ? 1 : $(a).text() < $(b).text() ? -1 : 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Delete all empty Categories | |
| * @return int | |
| */ | |
| public function deleteEmptyCategories() | |
| { | |
| $acSql = "select * from s_categories | |
| left join s_articles_categories_ro ro | |
| on ro.categoryID = s_categories.id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function usortFunction($g1, $g2) { | |
| $sortierung = Array("XXXS" => 1, "XXS" => 2, "XS" => 3, "S" => 4, "M" => 5, "L" => 6, "XL" => 7, "XXL" => 8, "XXXL" => 9, "XXXXL" => 10); | |
| $index1 = $sortierung[strtoupper($g1)]; | |
| $index2 = $sortierung[strtoupper($g2)]; | |
| return ($index1 < $index2) ? -1 : 1; | |
| } | |
| usort($groessen, "usortFunction"); | |