Skip to content

Commit

Permalink
Set description, not title
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinMitchell committed Nov 3, 2021
1 parent a7241b3 commit 179a129
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion modules/cryptwerk/cryptwerk.php
Original file line number Diff line number Diff line change
Expand Up @@ -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_];

Expand Down
4 changes: 2 additions & 2 deletions modules/cryptwerk/src/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 179a129

Please sign in to comment.