[SOLVED] Two prices...

  • Posts: 117
  • Thank you received: 6
7 years 8 months ago #278281

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.7.5

Good evening...

https://www.dropbox.com/s/jzhv094qyljml85/Schermafdruk%202017-09-12%2022.54.12.png?dl=0

Why do I get TWO prices at the above line????
and
how do I stop this?

Dick

Last edit: 7 years 8 months ago by Formidog.

Please Log in or Create an account to join the conversation.

  • Posts: 117
  • Thank you received: 6
7 years 8 months ago #278309

The reason for this is that Price 1 and Price 2 are compared with each other. If these aren't the same both are shown, with the latter in brackets.
This can be fixed by overriding product/price_listing starting from line 21

/* start remove */
$mainCurr = $this->currencyHelper->mainCurrency();
$app = JFactory::getApplication();
$currCurrency = $app->getUserState( HIKASHOP_COMPONENT.'.currency_id', $mainCurr );
$msrpCurrencied = $this->currencyHelper->convertUniquePrice($this->row->product_msrp,$mainCurr,$currCurrency);
echo "<br/>1: " . $msrpCurrencied . "<br/>2: " . $this->row->product_msrp . "<br/>";
if($msrpCurrencied == $this->row->product_msrp)
/* end remove but keep next line */
echo $this->currencyHelper->format($this->row->product_msrp,$mainCurr);
/* start remove */
else
echo $this->currencyHelper->format($msrpCurrencied,$currCurrency).' ('.$this->currencyHelper->format($this->row->product_msrp,$mainCurr).')';
/* end remove */

Please Log in or Create an account to join the conversation.

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 8 months ago #278283

Hello,

Can you please use a more traditional way to provide screenshots ?
If you do not want to include the screenshot in our forum, you can see to use services like "pasteboard", "imgur", etc. Which will provide a direct clickable link.

And please check your product configuration regarding the prices.
CF : www.hikashop.com/support/documentation/2...uct-form.html#prices

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 7 years 8 months ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 117
  • Thank you received: 6
7 years 8 months ago #278353

Thank you for the reply Jerome

I will take care of traditional screenshots
And yes, I looked at the documentation, but as they are translated into Dutch trough Google I lost track completely

Greetz

Dick

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum