Created
July 2, 2020 00:11
-
-
Save yasinkuyu/8827b1e3a500491ed0c7d12346a3bfd1 to your computer and use it in GitHub Desktop.
Opencart WhatsApp Sipariş Modülü
This file contains 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"?> | |
<modification> | |
<name>Opencart WhatsApp Sipariş Modülü</name> | |
<code>whatsapp_siparis_modulu</code> | |
<version>1.0</version> | |
<author>Yasin</author> | |
<link>http://yasinkuyu.net</link> | |
<file path="catalog/controller/product/product.php"> | |
<operation error="log"> | |
<search><![CDATA[ | |
$data['points'] = $product_info['points']; | |
]]></search> | |
<add position="before"><![CDATA[ | |
$data['telephone'] = $this->config->get('config_telephone'); | |
]]></add> | |
</operation> | |
</file> | |
<file path="catalog/view/theme/*/template/product/product.twig"> | |
<operation error="log"> | |
<search><![CDATA[ | |
{{ whatsapp }} | |
]]></search> | |
<add position="replace"><![CDATA[ | |
<style>@media (max-width: 478px) {.wtsp {display: block!important;}}@media (max-width: 767px) {.wtsp {display: block!important;}}</style> | |
<div class="wtsp" style="display:none; text-align: center;"> | |
<a href="https://api.whatsapp.com/send?phone=905000000&text=Sipariş vermek istiyorum. {{ heading_title }} - {{ model }}"> | |
<img src="image/catalog/whatsapp.gif"></a> | |
</div> | |
]]></add> | |
</operation> | |
</file> | |
</modification> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Merhaba bu kodu opencart 3.x kurulumu nasıl yapılır anlatabilir misiniz,