Display 'product creation date' in backend
15 years 3 months ago - 15 years 3 months ago #20900
by mt_robson
www.buch-comptoir.de
shop.buch-comptoir.de
[Weltweiter Versand seltener Bücher]
Display 'product creation date' in backend was created by mt_robson
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:
image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/list_products.jpg
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:
image missing http://www.hikashop.com/media/kunena/attachments/legacy/images/list_products.jpg
www.buch-comptoir.de
shop.buch-comptoir.de
[Weltweiter Versand seltener Bücher]
Last edit: 15 years 3 months ago by mt_robson. Reason: layout
Please Log in or Create an account to join the conversation.
15 years 3 months ago #20918
by nicolas
Replied by nicolas on topic Re: Display 'product creation date' in backend
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.
13 years 5 months ago #102814
by mt_robson
www.buch-comptoir.de
shop.buch-comptoir.de
[Weltweiter Versand seltener Bücher]
Replied by mt_robson on topic Display 'product creation date' in backend
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
.
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.
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
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.
www.buch-comptoir.de
shop.buch-comptoir.de
[Weltweiter Versand seltener Bücher]
Please Log in or Create an account to join the conversation.
13 years 5 months ago - 13 years 5 months ago #102837
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Display 'product creation date' in backend
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:
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,
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:
Code:
<th class="title"><?php echo JText::_('PRODUCT_PRICE'); ?></th>
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Last edit: 13 years 5 months ago by Jerome.
Please Log in or Create an account to join the conversation.
13 years 5 months ago #102840
by mt_robson
www.buch-comptoir.de
shop.buch-comptoir.de
[Weltweiter Versand seltener Bücher]
Replied by mt_robson on topic Display 'product creation date' in backend
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.
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.
13 years 5 months ago #102857
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Display 'product creation date' in backend
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):
Regards,
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):
Code:
<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.
Please Log in or Create an account to join the conversation.
Time to create page: 0.146 seconds