Product display page

  • Posts: 23
  • Thank you received: 0
11 years 2 months ago #161753

That has worked for the first product but now all the other products have £0 for both prices

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

  • Posts: 23
  • Thank you received: 0
11 years 2 months ago #161919

I have removed a line of the code Xavier so it looks like this:

<?php
if($this->params->get('show_price','-1')=='-1'){
$config =& hikashop_config();
$this->params->set('show_price',$config->get('show_price'));
}
if($this->params->get('show_price')){ ?>
<td class="hikashop_product_price_row">
<?php

$prodClass = hikashop_get('class.product');
$prodClass->getProducts($this->row->product_id);
echo $this->currencyHelper->format(@$prodClass->products[1]->prices[1]->price_value,4);
?>
</td>

That has enabled all the original prices to return.

The first product has the second price (price per week) displaying correctly however all the other products in the product list has the price per week (second price) displaying £0.

Please help!

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #161921

Hi,

We generally don't support customizations, but thanks to give me a backend access in order to make it work.
It will be faster this way. Don't forget to put the link to this topic in the private message.

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

  • Posts: 23
  • Thank you received: 0
11 years 2 months ago #162079

Brilliant thank you.

It's currently only on wamp but il stick it online tomorrow afternoon and send you the details.

Much appreciated

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

  • Posts: 23
  • Thank you received: 0
11 years 2 months ago #162465

Hey, I'm still stuck if anybody has any ideas please???

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #162468

Hi,

Sorry but we can't use a zip file to install a copy of the website etc.
Once you have a host and credentials to provide, so we will be able to give you more informations.

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

  • Posts: 11
  • Thank you received: 0
11 years 2 months ago #163682

Hi,

It seems that i have the same problem regarding showing additional fields / values in a product/list/table.
I tried the solution you suggested but the results were values (0).
I have included some background snapshots to give you somewhat inside info.

Really hope you can help me further
thanks
Richard

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #163706

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

  • Posts: 23
  • Thank you received: 0
11 years 1 month ago #166553

Morning, I have sent you a private message Xavier with the details you requested.

Please help!

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

  • Posts: 84298
  • Thank you received: 13697
  • MODERATOR
11 years 1 month ago #166569

Hi,

Xavier is in holiday until next week. Please either send it to me or wait until then.

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

  • Posts: 23
  • Thank you received: 0
11 years 1 month ago #166741

Brilliant yes i will send you it in a private message straight away

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

  • Posts: 84298
  • Thank you received: 13697
  • MODERATOR
11 years 1 month ago #166760

The line:

echo $this->currencyHelper->format(@$prodClass->products[1]->prices[1]->price_value,4);
should actually be changed to:
echo $this->currencyHelper->format(@$prodClass->products[$this->row->product_id]->prices[1]->price_value,4);

The following user(s) said Thank You: Blatherwick

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

  • Posts: 23
  • Thank you received: 0
11 years 1 month ago #166766

Amazing!

Thank you very much, I can now sleep soundly!

Really appreciate it

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

Time to create page: 0.089 seconds
Powered by Kunena Forum