diff --git a/.tmb/l1_d3AtY29udGVudC90aGVtZXMvY29zbW9wZXQtdGltYmVyL3NjcmVlbnNob3QucG5n1744272629.png b/.tmb/l1_d3AtY29udGVudC90aGVtZXMvY29zbW9wZXQtdGltYmVyL3NjcmVlbnNob3QucG5n1744272629.png new file mode 100644 index 0000000..3f465d2 Binary files /dev/null and b/.tmb/l1_d3AtY29udGVudC90aGVtZXMvY29zbW9wZXQtdGltYmVyL3NjcmVlbnNob3QucG5n1744272629.png differ diff --git a/.user.ini b/.user.ini deleted file mode 100644 index e69de29..0000000 diff --git a/.well-known/apple-developer-merchantid-domain-association b/.well-known/apple-developer-merchantid-domain-association new file mode 100644 index 0000000..2ff95c9 --- /dev/null +++ b/.well-known/apple-developer-merchantid-domain-association @@ -0,0 +1 @@ +7B227073704964223A2239373943394538343346343131343044463144313834343232393232313734313034353044314339464446394437384337313531303944334643463542433731222C2276657273696F6E223A312C22637265617465644F6E223A313536363233343735303036312C227369676E6174757265223A22333038303036303932613836343838366637306430313037303261303830333038303032303130313331306633303064303630393630383634383031363530333034303230313035303033303830303630393261383634383836663730643031303730313030303061303830333038323033653333303832303338386130303330323031303230323038346333303431343935313964353433363330306130363038326138363438636533643034303330323330376133313265333032633036303335353034303330633235343137303730366336353230343137303730366336393633363137343639366636653230343936653734363536373732363137343639366636653230343334313230326432303437333333313236333032343036303335353034306230633164343137303730366336353230343336353732373436393636363936333631373436393666366532303431373537343638366637323639373437393331313333303131303630333535303430613063306134313730373036633635323034393665363332653331306233303039303630333535303430363133303235353533333031653137306433313339333033353331333833303331333333323335333735613137306433323334333033353331333633303331333333323335333735613330356633313235333032333036303335353034303330633163363536333633326437333664373032643632373236663662363537323264373336393637366535663535343333343264353035323466343433313134333031323036303335353034306230633062363934663533323035333739373337343635366437333331313333303131303630333535303430613063306134313730373036633635323034393665363332653331306233303039303630333535303430363133303235353533333035393330313330363037326138363438636533643032303130363038326138363438636533643033303130373033343230303034633231353737656465626436633762323231386636386464373039306131323138646337623062643666326332383364383436303935643934616634613534313162383334323065643831316633343037653833333331663163353463336637656233323230643662616435643465666634393238393839336537633066313361333832303231313330383230323064333030633036303335353164313330313031666630343032333030303330316630363033353531643233303431383330313638303134323366323439633434663933653465663237653663346636323836633366613262626664326534623330343530363038326230363031303530353037303130313034333933303337333033353036303832623036303130353035303733303031383632393638373437343730336132663266366636333733373032653631373037303663363532653633366636643266366636333733373033303334326436313730373036633635363136393633363133333330333233303832303131643036303335353164323030343832303131343330383230313130333038323031306330363039326138363438383666373633363430353031333038316665333038316333303630383262303630313035303530373032303233303831623630633831623335323635366336393631366536333635323036663665323037343638363937333230363336353732373436393636363936333631373436353230363237393230363136653739323037303631373237343739323036313733373337353664363537333230363136333633363537303734363136653633363532303666363632303734363836353230373436383635366532303631373037303663363936333631363236633635323037333734363136653634363137323634323037343635373236643733323036313665363432303633366636653634363937343639366636653733323036663636323037353733363532633230363336353732373436393636363936333631373436353230373036663663363936333739323036313665363432303633363537323734363936363639363336313734363936663665323037303732363136333734363936333635323037333734363137343635366436353665373437333265333033363036303832623036303130353035303730323031313632613638373437343730336132663266373737373737326536313730373036633635326536333666366432663633363537323734363936363639363336313734363536313735373436383666373236393734373932663330333430363033353531643166303432643330326233303239613032376130323538363233363837343734373033613266326636333732366332653631373037303663363532653633366636643266363137303730366336353631363936333631333332653633373236633330316430363033353531643065303431363034313439343537646236666435373438313836383938393736326637653537383530376537396235383234333030653036303335353164306630313031666630343034303330323037383033303066303630393261383634383836663736333634303631643034303230353030333030613036303832613836343863653364303430333032303334393030333034363032323130306265303935373166653731653165373335623535653561666163623463373266656234343566333031383532323263373235313030326236316562643666353530323231303064313862333530613564643664643665623137343630333562313165623263653837636661336536616636636264383338303839306463383263646461613633333038323032656533303832303237356130303330323031303230323038343936643266626633613938646139373330306130363038326138363438636533643034303330323330363733313162333031393036303335353034303330633132343137303730366336353230353236663666373432303433343132303264323034373333333132363330323430363033353530343062306331643431373037303663363532303433363537323734363936363639363336313734363936663665323034313735373436383666373236393734373933313133333031313036303335353034306130633061343137303730366336353230343936653633326533313062333030393036303335353034303631333032353535333330316531373064333133343330333533303336333233333334333633333330356131373064333233393330333533303336333233333334333633333330356133303761333132653330326330363033353530343033306332353431373037303663363532303431373037303663363936333631373436393666366532303439366537343635363737323631373436393666366532303433343132303264323034373333333132363330323430363033353530343062306331643431373037303663363532303433363537323734363936363639363336313734363936663665323034313735373436383666373236393734373933313133333031313036303335353034306130633061343137303730366336353230343936653633326533313062333030393036303335353034303631333032353535333330353933303133303630373261383634386365336430323031303630383261383634386365336430333031303730333432303030346630313731313834313964373634383564353161356532353831303737366538383061326566646537626165346465303864666334623933653133333536643536363562333561653232643039373736306432323465376262613038666437363137636538386362373662623636373062656338653832393834666635343435613338316637333038316634333034363036303832623036303130353035303730313031303433613330333833303336303630383262303630313035303530373330303138363261363837343734373033613266326636663633373337303265363137303730366336353265363336663664326636663633373337303330333432643631373037303663363537323666366637343633363136373333333031643036303335353164306530343136303431343233663234396334346639336534656632376536633466363238366333666132626266643265346233303066303630333535316431333031303166663034303533303033303130316666333031663036303335353164323330343138333031363830313462626230646561313538333338383961613438613939646562656264656261666461636232346162333033373036303335353164316630343330333032653330326361303261613032383836323636383734373437303361326632663633373236633265363137303730366336353265363336663664326636313730373036633635373236663666373436333631363733333265363337323663333030653036303335353164306630313031666630343034303330323031303633303130303630613261383634383836663736333634303630323065303430323035303033303061303630383261383634386365336430343033303230333637303033303634303233303361636637323833353131363939623138366662333563333536636136326266663431376564643930663735346461323865626566313963383135653432623738396638393866373962353939663938643534313064386639646539633266653032333033323264643534343231623061333035373736633564663333383362393036376664313737633263323136643936346663363732363938323132366635346638376137643162393963623962303938393231363130363939306630393932316430303030333138323031386233303832303138373032303130313330383138363330376133313265333032633036303335353034303330633235343137303730366336353230343137303730366336393633363137343639366636653230343936653734363536373732363137343639366636653230343334313230326432303437333333313236333032343036303335353034306230633164343137303730366336353230343336353732373436393636363936333631373436393666366532303431373537343638366637323639373437393331313333303131303630333535303430613063306134313730373036633635323034393665363332653331306233303039303630333535303430363133303235353533303230383463333034313439353139643534333633303064303630393630383634383031363530333034303230313035303061303831393533303138303630393261383634383836663730643031303930333331306230363039326138363438383666373064303130373031333031633036303932613836343838366637306430313039303533313066313730643331333933303338333133393331333733313332333333303561333032613036303932613836343838366637306430313039333433313164333031623330306430363039363038363438303136353033303430323031303530306131306130363038326138363438636533643034303330323330326630363039326138363438383666373064303130393034333132323034323062303731303365313430613462386231376262613230316130336163643036396234653431366232613263383066383661383338313435633239373566633131333030613036303832613836343863653364303430333032303434363330343430323230343639306264636637626461663833636466343934396534633035313039656463663334373665303564373261313264376335666538633033303033343464663032323032363764353863393365626233353031333836363062353730373938613064643731313734316262353864626436613138363633353038353431656565393035303030303030303030303030227D \ No newline at end of file diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..1beb5d3 --- /dev/null +++ b/robots.txt @@ -0,0 +1,91 @@ +User-agent: * +Disallow: /cgi-bin +Disallow: /? +Disallow: /wp- +Disallow: /wp/ +Disallow: *?s= +Disallow: *&s= +Disallow: /search/ +Disallow: /author/ +Disallow: /users/ +Disallow: */trackback +Disallow: */feed +Disallow: */rss +Disallow: */embed +Disallow: */wlwmanifest.xml +Disallow: /xmlrpc.php +Allow: */uploads +<<<<<<< HEAD +Sitemap: https://cosmopet.ru/sitemap_index.xml +======= +Sitemap: https://cosmopet.ae/sitemap_index.xml +>>>>>>> 2323f31 (Fix | bug fix) + +User-agent: GoogleBot +Disallow: /cgi-bin +Disallow: /? +Disallow: /wp- +Disallow: /wp/ +Disallow: *?s= +Disallow: *&s= +Disallow: /search/ +Disallow: /author/ +Disallow: /users/ +Disallow: */trackback +Disallow: */feed +Disallow: */rss +Disallow: */embed +Disallow: */wlwmanifest.xml +Disallow: /xmlrpc.php +Disallow: *utm*= +Disallow: *etext*= +Disallow: *?add-to-cart* +Disallow: *?per_page* +Disallow: *?per_row* +Disallow: *openstat= +Allow: */uploads +Allow: /*/*.js +Allow: /*/*.css +Allow: /wp-*.png +Allow: /wp-*.jpg +Allow: /wp-*.jpeg +Allow: /wp-*.gif +Allow: /wp-admin/admin-ajax.php +<<<<<<< HEAD +Sitemap: https://cosmopet.ru/sitemap_index.xml +======= +Sitemap: https://cosmopet.ae/sitemap_index.xml +>>>>>>> 2323f31 (Fix | bug fix) + +User-agent: Yandex +Disallow: /cgi-bin +Disallow: /? +Disallow: /wp- +Disallow: /wp/ +Disallow: *?s= +Disallow: *&s= +Disallow: /search/ +Disallow: /author/ +Disallow: /users/ +Disallow: */trackback +Disallow: */feed +Disallow: */rss +Disallow: */embed +Disallow: */wlwmanifest.xml +Disallow: /xmlrpc.php +Allow: */uploads +Allow: /*/*.js +Allow: /*/*.css +Allow: /wp-*.png +Allow: /wp-*.jpg +Allow: /wp-*.jpeg +Allow: /wp-*.gif +Allow: /wp-admin/admin-ajax.php +<<<<<<< HEAD +Sitemap: https://cosmopet.ru/sitemap_index.xml +======= +Sitemap: https://cosmopet.ae/sitemap_index.xml +>>>>>>> 2323f31 (Fix | bug fix) + +Clean-Param: utm_source&utm_medium&utm_campaign&etext&add-to-cart&per_page&per_row&from&attribute_pa_weight&attribute_pa_ves-upakovki +Clean-Param: openstat \ No newline at end of file diff --git a/wp-content/.cdekdelivery.php b/wp-content/.cdekdelivery.php new file mode 100644 index 0000000..c88bb2a --- /dev/null +++ b/wp-content/.cdekdelivery.php @@ -0,0 +1,18 @@ + + array ( + 'wordpress' => 'v4.local.nalowbOW6cLbDpvTkpTnMOVG_1PGHdZKveVTUIbgUv2hUvQGr5zQ-B97k1oykPdIiLx0D0EZ0xlOdhwqgV_DcPsmh3eOrZ9mLJOlmxL0Ciq1Lkhewhj3h1H4FQuiSmfg1oylejDCLtbzfWil8GNxrzGOiBoiiY2XALTxBT0ZDcCZNAGmKQTElV9Lzw5TxDYEm9ELTLCaFj3rTN3Vq8bMQy8aHK-Mgq2QvaD3YYEJiTxcgTl97df6rJQnGtYiG9dvhVFhShNdUj1sWh9vIzoXiUbZbByLwe5ZUwaDzE3G7xosGlTyQJ3WIle3ywsfnjgNxRQwOz--XcEYGUJ_nhR3oJscW7SJXdi-ziE5dnDi6k2XpaIbTbppIUvdeyzRDpC2VajiSvb3jg5kcxHL_3bFo-7D4Rjmtr2ZEr8uS4-xwt8uhLiSBLcRsLSGSCq0yMlNmgsxxUdySDu2Q5P5pDX3_5hBdg-4DuBH.eyJlbmRwb2ludCI6Imh0dHBzOlwvXC9hcGkuY2Rlay5ydVwvY21zIn0', + '@cdek-it/order' => 'v4.local.-h0jllL5iFSEWHkSBGY1TfzpFIQGYeCif9pGrZorJtWeZ1mUew3VjChFhXL60cVcN5LCXw9d_ui-XG1kIzjrx-UzDfK4fS-l4OznAhLWp7ZT1M3-X-uQiVJk5lzCJ2rNGQ-TJudeOlqL4kDKcqaPLgDzq5MQEqvloGAvviatPL-Y9ifTI183xVxcL6O7J700dFcQEhhSIcYfVnQVG2L1d93gxaUUH-OIMk1hxF1LCdnNIy6F6Zjt9yswXDEfEGWfE8OJysQQJhTj1IIOcf4_AZ-gGrSaXMMcG-J6GfDIjoU-uFrXhpI10grwgmY5Xka3-SPj2fyVV_e5WVuOew5HK0oDyHWqnlE37dWbQTBNPMqUNL50fQxviTzDYHplbM_CUq8YlNx2O_7FMt7b2w2sZMHLZBaWtH4zmOj8T2v-rY_MLeVwPuAfZPKnHqZMoGBL312Zh-tCyqVIp8gZ2jXJvKXnzMgumJv_uxA6Sdgk.eyJlbmRwb2ludCI6Imh0dHBzOlwvXC9hcGkuY2Rlay5ydVwvY21zIn0', + '@cdek-it/settings' => 'v4.local.Dbb69cuN8PIE7d1_5w3bD5OZI0Z5_K9w_UbnCJGJlM5jLLWkdkKf4d_svhJySz-NMm8xVJsEMEnCOSRVZZZIlcRaOlNqi7bsIDYXmpcnVCKL5v8cUWn9nKRSNvKUuiSqU_1aJl2pi7ZvxpII6STV4xxkcMXdtfYF9AZAOD0b6gtd7v8OdXjBzeKwbsilj7bToUv4mrmAlgMhd_MG3rKRP5-INo0B-rkwK78Ul88YjCgf0ooPyRICdQzLAgD7x42FJ3vYI9UA8g3wffx5kJxbRWrKUEfwZ1zJp-NQKAcyK5KGLIu9OUoFcQN4U_KdnnZqdqwwkovB0JIbqz-HKQcdi1Xrq5wKk5lIF-HdJteYn2t8Refd9soVGmN67O_V2K1b09Jw4v973C4rOxvw4WZNXHTm9a0mTI0pTk3Y5Dv1tJuN23zH73G_kNN_TSLUenE1iTGPdSnGXxIcfBG-sBoS1Au62QbzUY7lhftD6Bq6T6-6.eyJlbmRwb2ludCI6Imh0dHBzOlwvXC9hcGkuY2Rlay5ydVwvY21zIn0', + ), + 'endpoints' => + array ( + 'wordpress' => 'https://api.cdek.ru/cms', + '@cdek-it/order' => 'https://api.cdek.ru/cms', + '@cdek-it/settings' => 'https://api.cdek.ru/cms', + ), + 'keyring' => + array ( + 'k4.pid.jwGFnADDct9ZphWj1tZslqzRDXQIgEjvyVx8LI6MJR7d' => 'TDOjk4smnqY5AYE-aGdmFJIescdcJb26nThfAK3AVPU', + ), +); diff --git a/wp-content/themes/cosmopet/functions.php b/wp-content/themes/cosmopet/functions.php index cd213f7..33d0c79 100644 --- a/wp-content/themes/cosmopet/functions.php +++ b/wp-content/themes/cosmopet/functions.php @@ -1196,7 +1196,6 @@ function remove_woocommerce_styles_on_checkout() { } - // Добавляем hreflang теги для cosmopet.shop add_action('wp_head', 'custom_hreflang_shop', 6); function custom_hreflang_shop() { @@ -1341,4 +1340,3 @@ function custom_handle_activation_request() { } } - diff --git a/wp-content/themes/cosmopet/global-functions/multilang-functions.php b/wp-content/themes/cosmopet/global-functions/multilang-functions.php index aac4562..00878cc 100644 --- a/wp-content/themes/cosmopet/global-functions/multilang-functions.php +++ b/wp-content/themes/cosmopet/global-functions/multilang-functions.php @@ -48,6 +48,15 @@ add_action('init', function () { ], 'group' => 'General', ], + [ + 'name' => 'Заголовок (скрытый) H1 на главной', + 'string' => 'КОРМ БУДУЩЕГО ДЛЯ ВАШЕГО ПИТОМЦА', + 'translations' => [ + 'ru' => 'КОРМ БУДУЩЕГО ДЛЯ ВАШЕГО ПИТОМЦА', + 'en' => 'FOOD OF THE FUTURE FOR YOUR PET', + ], + 'group' => 'General', + ], [ 'name' => 'НАПИШИТЕ НАМ', 'string' => 'НАПИШИТЕ НАМ', @@ -1489,39 +1498,39 @@ add_action('init', function () { } pll_register_string('Подписка от', 'Подписка от', 'Theme'); - pll_register_string('Сумма:', 'Сумма:', 'Theme'); - pll_register_string('Следующий платеж:', 'Следующий платеж:', 'Theme'); - pll_register_string('Нет', 'Нет', 'Theme'); - pll_register_string('Детали подписки', 'Детали подписки', 'Theme'); - pll_register_string('Детали недоступны', 'Детали недоступны', 'Theme'); - pll_register_string('У вас нет активных подписок.', 'У вас нет активных подписок.', 'Theme'); - pll_register_string('Перейти в профиль', 'Перейти в профиль', 'Theme'); - pll_register_string('Заказы', 'Заказы', 'Theme'); - pll_register_string('Подписки', 'Подписки', 'Theme'); - pll_register_string('Подписка №', 'Подписка №', 'Theme'); - pll_register_string('Статус', 'Статус', 'Theme'); - pll_register_string('Дата подписки', 'Дата подписки', 'Theme'); - pll_register_string('Дата последнего заказа', 'Дата последнего заказа', 'Theme'); - pll_register_string('Следующий платеж', 'Следующий платеж', 'Theme'); - pll_register_string('Способ оплаты', 'Способ оплаты', 'Theme'); - pll_register_string('Товары:', 'Товары:', 'Theme'); - pll_register_string('Сумма', 'Сумма', 'Theme'); - pll_register_string('месяц', 'месяц', 'Theme'); - pll_register_string('Доставка', 'Доставка', 'Theme'); - pll_register_string('Бесплатно', 'Бесплатно', 'Theme'); - pll_register_string('Итого', 'Итого', 'Theme'); - pll_register_string('Доставка:', 'Доставка:', 'Theme'); - pll_register_string('Адрес доставки', 'дрес доставки', 'Theme'); - pll_register_string('Начните вводить адрес', 'ачните вводить адрес', 'Theme'); - pll_register_string('Адрес введен неверно', 'Адрес введен неверно', 'Theme'); - pll_register_string('Комментарий для доставки', 'Комментарий для доставки', 'Theme'); - pll_register_string('Для службы доставки', 'Для службы доставки', 'Theme'); - pll_register_string('Комментарий введен неверно', 'Комментарий введен неверно', 'Theme'); - pll_register_string('Отменить подписку', 'Отменить подписку', 'Theme'); - pll_register_string('Подписка не найдена.', 'Подписка не найдена.', 'Theme'); - pll_register_string('Перейти в профиль', 'Перейти в профиль', 'Theme'); - pll_register_string('Заказы', 'Заказы', 'Theme'); - pll_register_string('Подписки', 'Подписки', 'Theme'); - pll_register_string('Не указан', 'Не указан', 'Theme'); - pll_register_string('месяц', 'месяц', 'Theme'); + pll_register_string('Сумма:', 'Сумма:', 'Theme'); + pll_register_string('Следующий платеж:', 'Следующий платеж:', 'Theme'); + pll_register_string('Нет', 'Нет', 'Theme'); + pll_register_string('Детали подписки', 'Детали подписки', 'Theme'); + pll_register_string('Детали недоступны', 'Детали недоступны', 'Theme'); + pll_register_string('У вас нет активных подписок.', 'У вас нет активных подписок.', 'Theme'); + pll_register_string('Перейти в профиль', 'Перейти в профиль', 'Theme'); + pll_register_string('Заказы', 'Заказы', 'Theme'); + pll_register_string('Подписки', 'Подписки', 'Theme'); + pll_register_string('Подписка №', 'Подписка №', 'Theme'); + pll_register_string('Статус', 'Статус', 'Theme'); + pll_register_string('Дата подписки', 'Дата подписки', 'Theme'); + pll_register_string('Дата последнего заказа', 'Дата последнего заказа', 'Theme'); + pll_register_string('Следующий платеж', 'Следующий платеж', 'Theme'); + pll_register_string('Способ оплаты', 'Способ оплаты', 'Theme'); + pll_register_string('Товары:', 'Товары:', 'Theme'); + pll_register_string('Сумма', 'Сумма', 'Theme'); + pll_register_string('месяц', 'месяц', 'Theme'); + pll_register_string('Доставка', 'Доставка', 'Theme'); + pll_register_string('Бесплатно', 'Бесплатно', 'Theme'); + pll_register_string('Итого', 'Итого', 'Theme'); + pll_register_string('Доставка:', 'Доставка:', 'Theme'); + pll_register_string('Адрес доставки', 'дрес доставки', 'Theme'); + pll_register_string('Начните вводить адрес', 'ачните вводить адрес', 'Theme'); + pll_register_string('Адрес введен неверно', 'Адрес введен неверно', 'Theme'); + pll_register_string('Комментарий для доставки', 'Комментарий для доставки', 'Theme'); + pll_register_string('Для службы доставки', 'Для службы доставки', 'Theme'); + pll_register_string('Комментарий введен неверно', 'Комментарий введен неверно', 'Theme'); + pll_register_string('Отменить подписку', 'Отменить подписку', 'Theme'); + pll_register_string('Подписка не найдена.', 'Подписка не найдена.', 'Theme'); + pll_register_string('Перейти в профиль', 'Перейти в профиль', 'Theme'); + pll_register_string('Заказы', 'Заказы', 'Theme'); + pll_register_string('Подписки', 'Подписки', 'Theme'); + pll_register_string('Не указан', 'Не указан', 'Theme'); + pll_register_string('месяц', 'месяц', 'Theme'); }); \ No newline at end of file diff --git a/wp-content/themes/cosmopet/global-functions/multisite-functions.php b/wp-content/themes/cosmopet/global-functions/multisite-functions.php index b8b3cd8..7eed6e0 100644 --- a/wp-content/themes/cosmopet/global-functions/multisite-functions.php +++ b/wp-content/themes/cosmopet/global-functions/multisite-functions.php @@ -121,6 +121,250 @@ function send_purchase_to_metrika($order_id) { }); + + get_status() !== 'processing' && $order->get_status() !== 'completed')) return; + + $items = []; + foreach ($order->get_items() as $item) { + $product = $item->get_product(); + $items[] = [ + 'item_id' => $product->get_id(), + 'item_name' => $product->get_name(), + 'price' => $product->get_price(), + 'quantity' => $item->get_quantity() + ]; + } + ?> + + cart ? WC()->cart->get_total('edit') : 0; + ?> + + admin_url('admin-ajax.php') + )); + + // Inline CSS + wp_enqueue_style('woocommerce-custom-styles', get_template_directory_uri() . '/style.css', array(), '1.0'); + $custom_css = " + .single_add_to_cart_button.loading { + opacity: 0.5; + cursor: not-allowed; + position: relative; + } + .single_add_to_cart_button.loading:after { + content: ''; + display: inline-block; + width: 16px; + height: 16px; + border: 2px solid #fff; + border-radius: 50%; + border-top-color: transparent; + animation: spin 1s linear infinite; + position: absolute; + right: 10px; + } + @keyframes spin { + 100% { + transform: rotate(360deg); + } + } + "; + wp_add_inline_style('woocommerce-custom-styles', $custom_css); + } } // Отключаем кэширование для страниц товаров @@ -182,4 +426,8 @@ function woocommerce_ajax_add_to_cart() { } wp_die(); -} \ No newline at end of file + +} + +} + diff --git a/wp-content/themes/cosmopet/modules/footer/assets/js/footer.js b/wp-content/themes/cosmopet/modules/footer/assets/js/footer.js index d713b09..ff22378 100644 --- a/wp-content/themes/cosmopet/modules/footer/assets/js/footer.js +++ b/wp-content/themes/cosmopet/modules/footer/assets/js/footer.js @@ -955,3 +955,4 @@ if (document.querySelector('.header').classList.contains('white')) { + diff --git a/wp-content/themes/cosmopet/modules/profile/module-ajax-controller.php b/wp-content/themes/cosmopet/modules/profile/module-ajax-controller.php index 7e15765..da083c3 100644 --- a/wp-content/themes/cosmopet/modules/profile/module-ajax-controller.php +++ b/wp-content/themes/cosmopet/modules/profile/module-ajax-controller.php @@ -1,3 +1,4 @@ +<<<<<<< HEAD get_current_user_id(), + 'first_name' => $_POST['name'], + 'last_name' => $_POST['l_name'], + + ) ); + + $phone = update_user_meta( get_current_user_id(), 'billing_phone', $_POST['phone'] ); + +} + +function ajax_add_pet() { + $current_user = wp_get_current_user(); + // Подготовка данных + $pet_name = $_POST['name']; + $old_type = $_POST['old_type']; + if ($old_type == 'ex'){ + $old= $_POST['old']; + } + + $weight= $_POST['weight']; + $activity = $_POST['activity']; + $pet = $_POST['pet']; + $breed = $_POST['breed']; + $sex = $_POST['sex']; + $user = $current_user->ID; + + $post_data = array( + 'post_title' => $pet_name, + 'post_type' => 'pets', + 'post_status' => 'publish', + ); + + + $post_id = wp_insert_post($post_data); + var_dump($post_id); + if ($post_id) { + // Добавление мета-полей + if ($old_type == 'ex'){ + + update_field( 'old', $old, $post_id ); + + + } + else{ + + update_field( 'day', $_POST['day'], $post_id ); + update_field( 'month', $_POST['month'], $post_id ); + update_field( 'year', $_POST['year'], $post_id ); + } + update_field( 'weight', $weight, $post_id ); + update_field( 'breed', $breed, $post_id ); + update_field( 'sex', $sex, $post_id ); + update_field( 'type', $pet, $post_id ); + update_field( 'user', $user, $post_id ); + update_field( 'activity', $activity, $post_id ); + if($_POST['sterilized']=='1' && $pet=='cat'){ + update_field( 'sterilized', true ); + } + else{ + update_field( 'sterilized', false ); + } + wp_send_json_success('Питомец успешно добавлен!'); + } else { + wp_send_json_error('Ошибка при добавлении питомца.'); + } + + wp_die(); // Завершение работы +} +add_action('wp_ajax_add_pet', 'ajax_add_pet'); +add_action('wp_ajax_nopriv_add_pet', 'ajax_add_pet'); // Если нужно разрешить для незалогиненных пользователей + +function ajax_edit_pet() { + $current_user = wp_get_current_user(); + // Подготовка данных + $pet_name = $_POST['name']; + $old_type = $_POST['old_type']; + if ($old_type == 'ex'){ + $old= $_POST['old']; + } + else{ + $old_acc = $_POST['day'] . ' ' . $_POST['month'] . ' ' . $_POST['year']; + } + $weight= $_POST['weight']; + $activity = $_POST['activity']; + $pet = $_POST['pet']; + $breed = $_POST['breed']; + $sex = $_POST['sex']; + $user = $current_user->ID; + + $post_id = intval($_POST['pet_id']); + + if (get_field('user', $post_id) == $user) { + // Добавление мета-полей + if ($old_type == 'ex'){ + update_field( 'old', $old, $post_id ); + } + else{ + update_field( 'old', '', $post_id ); + update_field( 'day', $_POST['day'], $post_id ); + update_field( 'month', $_POST['month'], $post_id ); + update_field( 'year', $_POST['year'], $post_id ); + } + update_field( 'weight', $weight, $post_id ); + update_field( 'breed', $breed, $post_id ); + update_field( 'sex', $sex, $post_id ); + update_field( 'type', $pet, $post_id ); + update_field( 'activity', $activity, $post_id ); + if($_POST['sterilized']=='1' && $pet=='cat'){ + update_field( 'sterilized', true ); + } + else{ + update_field( 'sterilized', false ); + } + wp_send_json_success('Питомец успешно отредактирован!'); + } else { + wp_send_json_error('Ошибка при редактировании питомца.'); + } + + wp_die(); // Завершение работы +} +add_action('wp_ajax_edit_pet', 'ajax_edit_pet'); +add_action('wp_ajax_nopriv_edit_pet', 'ajax_edit_pet'); + +>>>>>>> e7e74da0bdd7c9b1db3979f0d5db0d07fafdd903 diff --git a/wp-content/themes/cosmopet/modules/shop/components/checkout/assets/js/script.js b/wp-content/themes/cosmopet/modules/shop/components/checkout/assets/js/script.js index 8663041..a68a827 100644 --- a/wp-content/themes/cosmopet/modules/shop/components/checkout/assets/js/script.js +++ b/wp-content/themes/cosmopet/modules/shop/components/checkout/assets/js/script.js @@ -211,7 +211,7 @@ jQuery(document).ready(function($) { $filterList.append($filterTag); }); }); - W2 else { + } else { $filterContainer.hide(); $clearButton.hide(); } diff --git a/wp-content/themes/cosmopet/static/assets/css/thankyou.css b/wp-content/themes/cosmopet/static/assets/css/thankyou.css new file mode 100644 index 0000000..6055e3b --- /dev/null +++ b/wp-content/themes/cosmopet/static/assets/css/thankyou.css @@ -0,0 +1,65 @@ +/* Основные стили страницы */ +.woocommerce-order { + max-width: 800px; + margin: 2rem auto; + padding: 2rem; + background: #fff; + box-shadow: 0 0 10px rgba(0,0,0,0.1); + border-radius: 8px; +} + +/* Заголовок */ +.woocommerce-order h2.woocommerce-order-details__title, +.woocommerce-order h2.woocommerce-column__title { + color: #333; + border-bottom: 2px solid #eee; + padding-bottom: 10px; +} + +/* Детали заказа */ +.woocommerce-order-overview { + display: flex; + flex-wrap: wrap; + gap: 1rem; + margin-bottom: 2rem; +} + +.woocommerce-order-overview li { + flex: 1; + min-width: 200px; + background: #f9f9f9; + padding: 1rem; + border-radius: 4px; +} + +/* Кнопка "Вернуться в магазин" */ +.woocommerce-button.button.wc-backward { + background: #4CAF50; + color: white; + padding: 10px 20px; + border-radius: 4px; + text-decoration: none; + display: inline-block; + margin-top: 20px; +} + +.woocommerce-button.button.wc-backward:hover { + background: #3e8e41; +} + + +@media (max-width: 768px) { + .woocommerce-order { + padding: 1rem; + margin: 1rem; + } + + .woocommerce-order-overview li { + min-width: 100%; + } + + .woocommerce-order-details, + .woocommerce-customer-details { + margin-top: 1rem; + } +} \ No newline at end of file diff --git a/wp-content/themes/cosmopet/static/assets/js/telegram-auth.js b/wp-content/themes/cosmopet/static/assets/js/telegram-auth.js new file mode 100644 index 0000000..41b8512 --- /dev/null +++ b/wp-content/themes/cosmopet/static/assets/js/telegram-auth.js @@ -0,0 +1,55 @@ +jQuery(document).ready(function($) { + window.onTelegramAuth = function(user) { + $.ajax({ + type: 'POST', + url: telegram_auth_params.ajax_url, + data: { + action: 'ontelegramauth', + userid: user.id, + username: user.username || '', + fname: user.first_name || '', + lname: user.last_name || '', + photo_url: user.photo_url || '', + auth_date: user.auth_date, + hash: user.hash + }, + success: function(response) { + if (response.success) { + window.location.href = telegram_auth_params.my_account_url; + } else { + alert(telegram_auth_params.i18n_error + ': ' + (response.data.message || 'Unknown error')); + } + }, + error: function() { + alert(telegram_auth_params.i18n_error); + } + }); + }; + + window.linkTelegram = function(user) { + $.ajax({ + type: 'POST', + url: telegram_auth_params.ajax_url, + data: { + action: 'linktelegram', + userid: user.id, + username: user.username || '', + fname: user.first_name || '', + lname: user.last_name || '', + photo_url: user.photo_url || '', + auth_date: user.auth_date, + hash: user.hash + }, + success: function(response) { + if (response.success) { + $('.cabinet-accounts').html(''); + } else { + alert(telegram_auth_params.i18n_error_link + ': ' + (response.data.message || 'Unknown error')); + } + }, + error: function() { + alert(telegram_auth_params.i18n_error_link); + } + }); + }; +}); \ No newline at end of file diff --git a/wp-content/themes/cosmopet/static/front-page/css/style.css b/wp-content/themes/cosmopet/static/front-page/css/style.css index 61cc78b..50c4820 100644 --- a/wp-content/themes/cosmopet/static/front-page/css/style.css +++ b/wp-content/themes/cosmopet/static/front-page/css/style.css @@ -1076,6 +1076,10 @@ border-bottom: 2px solid var(--interface-main_black, rgba(18, 18, 18, 1)) max-width: 778px; margin-bottom: 27px; } +<<<<<<< HEAD +======= + +>>>>>>> e7e74da0bdd7c9b1db3979f0d5db0d07fafdd903 .discount_block .discount_text{ font-size: 20px; line-height: 24px; @@ -4280,4 +4284,273 @@ color: #f4f1f0; .invisible { visibility: hidden; +<<<<<<< HEAD +======= +} + + +/* Discount start */ +.discount{ + padding-top: 50px; + padding-bottom: 50px; +} +.discount .discount_block{ + display: flex; + flex-direction: column; +} +.discount .discount_top{ + position: relative; + margin-bottom: 50px; +} +.discount_top .discount_title{ + font-size: 82px; + font-weight: 700; + line-height: 98.4px; + color: var(--creme-white, #F4F1F0); + text-transform: uppercase; +} +.discount_top .discount_top-imgs{ + position: absolute; + top: 55px; + right: -80px; +} +.discount_block .discount_form{ + position: relative; + z-index: 1; + display: flex; + align-items: center; + gap: 16px; + margin-bottom: 6px; +} +.discount_form .discount_form-btn { + background: inherit; + min-height: unset; +} +.discount_form .discount_form-btn:hover{ + background: var(--btn-color); + border-color: var(--btn-color); + color: #3ab18f; +} +.discount_form .discount_form-inp{ + width: 280px; + height: 50px; + border: 2px solid var(--creme-white, #F4F1F0); + padding: 10px 18px; + font-size: 24px; + font-weight: 500; + line-height: 28.8px; + color: var(--creme-white, #F4F1F0); + border-radius: 28px; + opacity: .6; +} +.discount_form .discount_form-inp::placeholder{ + font-size: 24px; + font-weight: 500; + line-height: 28.8px; + color: var(--creme-white, #F4F1F0); +} +.discount_form .discount_form-btn { + text-transform: lowercase; +} +.discount_block .discount_form-text{ + font-size: 14px; + line-height: 16.8px; + color: var(--creme-white, #F4F1F0); + opacity: .6; + max-width: 778px; + margin-bottom: 27px; +} +.discount_block .discount_text{ + font-size: 20px; + line-height: 24px; + color: var(--creme-white, #F4F1F0); +} + +.discount_block .discount_cosmodog{ + position: relative; + width: 100%; + height: 626px; + border-radius: 60px; + border: 2px solid var(--creme-white, #F4F1F0); + display: flex; + align-items: end; + justify-content: center; + overflow: hidden; + cursor: pointer; +} +.discount_cosmodog .discount_cosmodog-img{ + + width: 100%; + height: 100%; + object-fit: cover; + +} + +.discount_cosmodog__slider{ + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +.discount_cosmodog .discount_cosmodog-img.active{ + opacity: 1; +} +.discount_cosmodog:hover .discount_cosmodog-img:nth-child(2) { + opacity: 1; +} +.discount_cosmodog .discount_cosmodog_info{ + position: relative; + z-index: 1; + padding: 33px; + display: flex; + flex-direction: column; + align-items: center; + justify-content: end; + background: linear-gradient(0deg, #F4F1F0 56%, rgba(244, 241, 240, 0) 100%); + width: 100%; + height: 219px; +} +.discount_cosmodog .discount_cosmodog-title{ + font-size: 40px; + font-weight: 700; + line-height: 48px; + text-align: center; + color: var(--grey-black, #121212); + text-transform: uppercase; +} +.discount_cosmodog .discount_cosmodog-text{ + font-size: 24px; + font-weight: 500; + line-height: 28.8px; + text-align: center; +} + +/* Discount end */ + +@media only screen and (max-width: 1170px) { + .discount_top .discount_title { + font-size: 60px; + max-width: 550px; + line-height: 65px; + } + .discount_top .discount_top-imgs { + position: absolute; + top: 20px; + right: -50px; + } + .discount_top .discount_top-imgs .dicount_dog-img { + width: 400px; + } + + +} + +@media (max-width: 576px){ + /* Узнайте о нас больше и получите скидку! */ + .discount { + padding: 0px 0 43px; + } + .discount_top .discount_title, + .blog_block .blog_title, + .truth_block .truth_block-title, + .about_us .about_us-title, + .sellers_top .sellers_title { + font-size: 30px; + line-height: 36px; + } + + .discount_block .discount_text { + max-width: 260px; + } + + .discount_top .discount_top-imgs { + right: -136px; + top: 87px; + } + + .discount_top .discount_top-imgs .dicount_dog-img { + width: 314px; + width: 110vw; + } + + .discount_form .discount_form-inp { + height: 29px; + padding: 6px 13px; + font-size: 12px; + line-height: 14.4px; + } + + .discount_form .discount_form-inp::placeholder { + font-size: 12px; + line-height: 14.4px; + } +.discount_block .discount_text { + font-size: 12px; + line-height: 14.2px; + } + .discount_block .discount_form .discount_form-inp{ + width: 100%; + } + .discount_form .discount_form-btn { + justify-content: start; + padding: 5px 15px; + background: var(--creme-white, #F4F1F0); + color: #62c57e; + opacity: 0.6; + } + .discount_form img{ + display: none; + } + .discount_form span{ + width: 100%; + } + + .discount_block .discount_cosmodog { + border-radius: 25px; + height: 415px; + } + + .discount_cosmodog .discount_cosmodog_info { + height: 245px; + gap: 14px; + padding: 10px 19px; + } + + .discount_cosmodog .discount_cosmodog-title { + text-align: start; + font-size: 26px; + line-height: 31.2px; + max-width: 202px; + margin-right: auto; + } + + .discount_cosmodog .discount_cosmodog-text { + font-size: 12px; + line-height: 14.4px; + max-width: 231px; + text-align: start; + margin-right: auto; + } + + .discount_top .discount_top-imgs { + right: -20%; + top: 0; + transform: scale(1.8); + z-index: 0; + margin-bottom: -91%; + margin-top: 20%; + position: relative; + } + + .discount_block .wpcf7 { + order: 3; + } + + /* Узнайте о нас больше и получите скидку! - конец */ +} + +.discount_block{ + padding-bottom: 80px; +>>>>>>> e7e74da0bdd7c9b1db3979f0d5db0d07fafdd903 } \ No newline at end of file diff --git a/wp-content/themes/cosmopet/static/front-page/img/discount-line-w.svg b/wp-content/themes/cosmopet/static/front-page/img/discount-line-w.svg index bd7fb64..0d4a0a2 100644 --- a/wp-content/themes/cosmopet/static/front-page/img/discount-line-w.svg +++ b/wp-content/themes/cosmopet/static/front-page/img/discount-line-w.svg @@ -1,3 +1,3 @@ - + diff --git a/wp-content/themes/cosmopet/static/front-page/js/main.js b/wp-content/themes/cosmopet/static/front-page/js/main.js index 72c9056..a87edee 100644 --- a/wp-content/themes/cosmopet/static/front-page/js/main.js +++ b/wp-content/themes/cosmopet/static/front-page/js/main.js @@ -447,6 +447,10 @@ document.addEventListener('DOMContentLoaded', function () { slidesPerView: 1, spaceBetween: 0, loop: true, + effect: 'fade', + fadeEffect: { + crossFade: true // enables slides to cross fade into each other + }, autoplay: { delay: 3000, // Интервал переключения слайдов (3 секунды) disableOnInteraction: false, diff --git a/wp-content/themes/cosmopet/static/img/pet/mini-cat.png b/wp-content/themes/cosmopet/static/img/pet/mini-cat.png new file mode 100644 index 0000000..49233dd Binary files /dev/null and b/wp-content/themes/cosmopet/static/img/pet/mini-cat.png differ diff --git a/wp-content/themes/cosmopet/templates/forms/discount.twig b/wp-content/themes/cosmopet/templates/forms/discount.twig index 710a4cc..05c2398 100644 --- a/wp-content/themes/cosmopet/templates/forms/discount.twig +++ b/wp-content/themes/cosmopet/templates/forms/discount.twig @@ -1,15 +1,24 @@ -
+

{{sub_title}}

+ {% if class %} + + + {% else %} + {% endif %}
@@ -20,7 +29,7 @@
- + diff --git a/wp-content/themes/cosmopet/templates/front-page/front-page.twig b/wp-content/themes/cosmopet/templates/front-page/front-page.twig index 2ef50e5..ca78482 100644 --- a/wp-content/themes/cosmopet/templates/front-page/front-page.twig +++ b/wp-content/themes/cosmopet/templates/front-page/front-page.twig @@ -6,7 +6,8 @@ {% block content %}
-

КОРМ БУДУЩЕГО ДЛЯ ВАШЕГО ПИТОМЦА

+

{{ function('pll_e', 'Заголовок (скрытый) H1 на главной') }}

+
@@ -689,6 +690,7 @@ {% endif %} {% if show_promo %} + {% set class = 'discount_block' %} {% include 'forms/discount.twig' %} {% endif %} diff --git a/wp-content/themes/cosmopet/templates/header.twig b/wp-content/themes/cosmopet/templates/header.twig index bc21bce..69836a7 100644 --- a/wp-content/themes/cosmopet/templates/header.twig +++ b/wp-content/themes/cosmopet/templates/header.twig @@ -188,6 +188,14 @@ {% if CONSTANTS.DOMAIN != 'AE' %} + + {% if CONSTANTS.DOMAIN != 'AE' %}
{{ function('wp_footer') }} diff --git a/wp-content/themes/cosmopet/templates/profile/profile.twig b/wp-content/themes/cosmopet/templates/profile/profile.twig index 4cbd9ee..b94e169 100644 --- a/wp-content/themes/cosmopet/templates/profile/profile.twig +++ b/wp-content/themes/cosmopet/templates/profile/profile.twig @@ -412,3 +412,4 @@
+{% endblock %} diff --git a/wp-content/themes/cosmopet/templates/where_to_buy/template_wtb.php b/wp-content/themes/cosmopet/templates/where_to_buy/template_wtb.php index 8fd34fe..bb01674 100644 --- a/wp-content/themes/cosmopet/templates/where_to_buy/template_wtb.php +++ b/wp-content/themes/cosmopet/templates/where_to_buy/template_wtb.php @@ -1,502 +1,136 @@ $location['title'], + 'address' => $location['address'], + 'url' => $location['website'], + 'latitude' => isset($location['latitude']) ? (float)$location['latitude'] : null, + 'longitude' => isset($location['longitude']) ? (float)$location['longitude'] : null + ]; +}, $locations); + +// Предопределенные данные локаций +$predefined_locations = [ + [ + 'title' => 'Roots Supermarket', + 'address' => 'Waves Grande, Retail unit 1-2 Shobha Hartland, Dubai DU United Arab Emirates', + 'position' => ['lat' => 25.1896, 'lng' => 55.3662], + 'url' => '' + ], + [ + 'title' => 'Pawdy Neighbors', + 'address' => 'Souk Al Manzil - Old Town Downtown, Dubai, United Arab Emirates', + 'position' => ['lat' => 25.1915, 'lng' => 55.2758], + 'url' => '' + ], + [ + 'title' => 'The Pet Co', + 'address' => 'Tower A, Shop 01, Prime Business Centre, JVC, Dubai, UAE', + 'position' => ['lat' => 25.0580, 'lng' => 55.2282], + 'url' => '' + ], + [ + 'title' => 'Ivy Secret Garden', + 'address' => 'Al Wasl Warehouse Complex, Unit 14 - 26th St - Al Quoz Industrial Area 4 - Dubai', + 'position' => ['lat' => 25.1416, 'lng' => 55.2358], + 'url' => '' + ], + [ + 'title' => 'Petzone', + 'address' => 'Petzone Sheikh Zayed Road - Petzone Umm Suqeim', + 'position' => ['lat' => 25.1530, 'lng' => 55.2145], + 'url' => 'https://petzone.com/uae/en/' + ], + [ + 'title' => 'Pet Corner', + 'address' => 'Pet Corner Sheikh Zayed Road, Al Fardan Building 1, Sheikh Zayed Road, Next to Deals on Wheels & Business Bay Metro Station', + 'position' => ['lat' => 25.1868, 'lng' => 55.2527], + 'url' => 'https://petcornerdubai.com/' + ], + [ + 'title' => 'Pet Corner Motor City - Dubai', + 'address' => 'Unit R7, Fox Hill 8, Motor City, Opposite Arabian Ranches', + 'position' => ['lat' => 25.0499, 'lng' => 55.2350], + 'url' => '' + ], + [ + 'title' => 'Pet Corner Jumeirah Golf Estates - Dubai', + 'address' => 'Shop No. 7, The Fairway Mall Jumeirah Golf Estates Dubai', + 'position' => ['lat' => 25.0394, 'lng' => 55.2269], + 'url' => '' + ], + [ + 'title' => 'Pet Corner Khalifa City - Abu Dhabi', + 'address' => 'Shop No 5, Al Raha Gardens, Khalifa City Abu Dhabi', + 'position' => ['lat' => 24.4243, 'lng' => 54.5754], + 'url' => '' + ], + [ + 'title' => 'Pet Corner- Sharjah Al Mamsha', + 'address' => 'Al Sharjah, University Road', + 'position' => ['lat' => 25.3126, 'lng' => 55.4783], + 'url' => '' + ], + [ + 'title' => 'Pet Corner Fujairah- Lulu Mall', + 'address' => 'Al - Korthabah Road - Fujairah City Center - Fujairah', + 'position' => ['lat' => 25.1221, 'lng' => 56.3244], + 'url' => '' + ], + [ + 'title' => 'Tail Waggin Al Quoz', + 'address' => 'Warehouse 7, Street 8, Al Khail Road, Al Quoz 1, Dubai, United Arab Emirates', + 'position' => ['lat' => 25.1368, 'lng' => 55.2364], + 'url' => '' + ], + [ + 'title' => "Tail Waggin' Pet Spa Dubai Hills", + 'address' => 'SWAY Residences, Retail 2 - near Kings College Hospital Dubai Hills Estate - Dubai - United Arab Emirates', + 'position' => ['lat' => 25.1276, 'lng' => 55.2714], + 'url' => '' + ], + [ + 'title' => 'Goofy Groom', + 'address' => 'Dubai, UAE Midtown Central Majan, Shop G-17', + 'position' => ['lat' => 25.0834, 'lng' => 55.1743], + 'url' => '' + ] +]; + +// Получение изображений из галереи ACF +$partners_logos = get_field('partners_logos') ?: []; +$partners_logos_formatted = array_map(function($image) { + return [ + 'url' => esc_url($image['title']), + 'src' => esc_url($image['sizes']['medium']), + 'alt' => esc_attr($image['alt']) + ]; +}, $partners_logos); + +// Добавление данных в контекст +$context['acf_locations'] = $acf_locations; +$context['predefined_locations'] = $predefined_locations; +$context['partners_logos'] = $partners_logos_formatted; + +// Отключение автопараграфов для Contact Form 7 +add_filter('wpcf7_autop_or_not', '__return_false'); + +// Рендеринг шаблона +Timber::render('templates/where_to_buy/wtb.twig', $context); ?> - -
- -
- - -
-
-

Where to Buy

-

Looking for Cosmopet products in stores? You can find our premium pet treats in select pet shops and retail stores across the UAE.

-
-
- -
- - -
-
-
- - - - - -
-

- -
-
-

📍 Find us at:

-
    - -
  • -

    - - - - - - -

    -

    -
  • - -
-
-
- - - - - - -
- - -
-

Our partners

-
-
- -
- - <?php echo esc_attr($image['alt']); ?> - -
- -
-
-
- - - -
- -
-
- -

Want to sell Cosmopet in your store?

-

Join our growing network of retailers! Fill out the contact form below, and we’ll get in touch to discuss the details.

-
- - - - - - - - - -
-
-

Thanks for request!

-

We will answer your message as soon as possible

- -
- - - -
-
- - -
-
- - diff --git a/wp-content/themes/cosmopet/templates/where_to_buy/wtb.twig b/wp-content/themes/cosmopet/templates/where_to_buy/wtb.twig index e69de29..06119f0 100644 --- a/wp-content/themes/cosmopet/templates/where_to_buy/wtb.twig +++ b/wp-content/themes/cosmopet/templates/where_to_buy/wtb.twig @@ -0,0 +1,365 @@ +{% set bodyClass = 'main-np' %} + +{% extends 'layout.twig' %} + +{% block content %} +
+
+ +
+
+

Where to Buy

+

Looking for Cosmopet products in stores? You can find our premium pet treats in select pet shops and retail stores across the UAE.

+
+
+ + +
+
+
+
+ + + + + +
+

+ + +
+
+

📍 Find us at:

+
    + {% for item in acf_locations %} +
  • +

    + {% if item.url %} + {{ item.title }} + {% else %} + {{ item.title }} + {% endif %} +

    +

    {{ item.address }}

    +
  • + {% endfor %} +
+
+
+ + + + +
+ {% if partners_logos %} + +
+

Our partners

+
+
+ {% for i in 1..5 %} + {% for image in partners_logos %} +
+ + {{ image.alt }} + +
+ {% endfor %} + {% endfor %} +
+
+
+ + + + + {% endif %} +
+ + +
+
+

Want to sell Cosmopet in your store?

+

Join our growing network of retailers! Fill out the contact form below, and we’ll get in touch to discuss the details.

+
+ + + + + + +
+
+

Thanks for request!

+

We will answer your message as soon as possible

+
+
+
+ +
+
+{% endblock %} \ No newline at end of file