Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yasinkuyu/8827b1e3a500491ed0c7d12346a3bfd1 to your computer and use it in GitHub Desktop.
Save yasinkuyu/8827b1e3a500491ed0c7d12346a3bfd1 to your computer and use it in GitHub Desktop.
Opencart WhatsApp Sipariş Modülü
<?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>
@adelante25
Copy link

Merhaba bu kodu opencart 3.x kurulumu nasıl yapılır anlatabilir misiniz,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment