Display 'product creation date' in backend

  • Posts: 31
  • Thank you received: 0
13 years 3 months ago #20900

Hi,

I would like to customize the display of the product listing in the backend (see screenshot). Most important for me would be to see right away when I listed the product (product creation date / listing date etc.).

This of course mainly to identify "non-sellers" (shelf warmers) to cleanse them once in a while.

Thx, Matt :blink:



www.buch-comptoir.de

shop.buch-comptoir.de

[Weltweiter Versand seltener Bücher]
Attachments:
Last edit: 13 years 3 months ago by mt_robson. Reason: layout

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

  • Posts: 82760
  • Thank you received: 13346
  • MODERATOR
13 years 3 months ago #20918

You can edit the file 'listing' of the view "product" of the back end via the menu Display->Views and add new columns there. Copy/paste the quantity column code (two places) and add some code to convert the date and it should be good.

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

  • Posts: 31
  • Thank you received: 0
11 years 6 months ago #102814

Hello,

first, have to apologize for my pretty late feedback from my side - sry.

I tried now in the quoted file:


<th class="title">
<?php echo JText::_('PRODUCT_PRICE'), >'b.product_price', $this->pageInfo->filter->order->dir,$this->pageInfo->filter->order->value ); ?>



Unfortunately, it didn't work out - resulted in weird sitemap-like listing of all the hikashop-links. Git scared and changed everything back immediately :unsure: .

Could you maybe help me with the code? And I also would like to have the product-date (date of first article listing) as a column - just as a nice-to-have. Is this possible?

Thx a lot in advance for your great help as always.

Cheers, M. B)


www.buch-comptoir.de

shop.buch-comptoir.de

[Weltweiter Versand seltener Bücher]

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #102837

Hi,

Modifying views require some PHP/Development skills.
The code you paste is first wrong and second, incomplete.

In PHP, the code is wrong and will generate a PHP fatal error. You have a mix between a simple column title and a sorted column title.
In HTML, the open "th" does not have is closing one.

A fixed version:

<th class="title"><?php echo JText::_('PRODUCT_PRICE'); ?></th>
But even if you move/add something in the head of the table, you have to add the content in the table body too.

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: 11 years 5 months ago by Jerome.

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

  • Posts: 31
  • Thank you received: 0
11 years 5 months ago #102840

Okayyy, well this is - even with no php-skills - how it was before.

Thus, as I understand, there is no how-to-do-solution for my little problem?

M. :(


www.buch-comptoir.de

shop.buch-comptoir.de

[Weltweiter Versand seltener Bücher]

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

  • Posts: 26151
  • Thank you received: 4027
  • MODERATOR
11 years 5 months ago #102857

Hi,

This is view customization (what we called: override). It is complicated to create a generic "how to" for this.
Like I said, you have to add the column title in the "head" part of the table.
After that, you have to add the cell in the table body, the cell will display the product creation date (in human readable format):

<td>
  <?php echo hikashop_getDate($row->product_created,'%Y-%m-%d %H:%M'); ?>
</td>

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.

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

Time to create page: 0.064 seconds
Powered by Kunena Forum