From 179a129598fe88b56363f60197cf1824a731d38d Mon Sep 17 00:00:00 2001 From: Mitchell Date: Wed, 3 Nov 2021 16:43:23 +0100 Subject: [PATCH] Set description, not title --- README.md | 2 +- modules/cryptwerk/cryptwerk.php | 2 +- modules/cryptwerk/src/Factory.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 563f4d5..1eee813 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![GitHub License](https://img.shields.io/github/license/bitcoinmitchell/cryptwerk-plugin?color=brightgreen&style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/blob/master/LICENSE) [![GitHub contributors](https://img.shields.io/github/contributors-anon/bitcoinmitchell/cryptwerk-plugin?style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/graphs/contributors) -[![PrestaShop module version](https://img.shields.io/badge/module%20version-0.3.3-brightgreen?style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/releases) +[![PrestaShop module version](https://img.shields.io/badge/module%20version-0.3.4-brightgreen?style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/releases) [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/bitcoinmitchell/cryptwerk-plugin?sort=semver&style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/releases) [![GitHub all releases](https://img.shields.io/github/downloads/bitcoinmitchell/cryptwerk-plugin/total?style=flat-square)](https://github.com/bitcoinmitchell/cryptwerk-plugin/releases) diff --git a/modules/cryptwerk/cryptwerk.php b/modules/cryptwerk/cryptwerk.php index bce2603..8df7eaa 100644 --- a/modules/cryptwerk/cryptwerk.php +++ b/modules/cryptwerk/cryptwerk.php @@ -29,7 +29,7 @@ public function __construct() { $this->name = 'cryptwerk'; $this->tab = 'administration'; - $this->version = '0.3.2'; + $this->version = '0.3.4'; $this->author = 'BitcoinMitchell'; $this->ps_versions_compliancy = ['min' => '1.7.7', 'max' => _PS_VERSION_]; diff --git a/modules/cryptwerk/src/Factory.php b/modules/cryptwerk/src/Factory.php index 847e10b..93e73f0 100644 --- a/modules/cryptwerk/src/Factory.php +++ b/modules/cryptwerk/src/Factory.php @@ -45,9 +45,9 @@ public function build(): \SimpleXMLElement if (!empty($product->meta_description)) { $xmlProduct->addChild('description', strip_tags($product->meta_description)); } elseif (!empty($product->description_short)) { - $xmlProduct->addChild('title', strip_tags($product->description_short)); + $xmlProduct->addChild('description', strip_tags($product->description_short)); } elseif (!empty($product->description)) { - $xmlProduct->addChild('title', strip_tags($product->description)); + $xmlProduct->addChild('description', strip_tags($product->description)); } $xmlCategories = $xmlProduct->addChild('categories');