Discount countdown show in listing_img_title

  • Posts: 429
  • Thank you received: 19
6 years 9 months ago #289994

Hi, today I made a purchase on Discount countdown . The product page show by adding this code

<?php if(!empty($this->element->extraData->rightBegin)) { echo implode("\r\n",$this->element->extraData->rightBegin); } ?>

Now I want to show it in listing_img_title. Is there any way I can show it there ?

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

  • Posts: 429
  • Thank you received: 19
6 years 9 months ago #290017

Hi I want to ask if I can combine with a final date of sale. For example, when the pre-order for the product ends.
I tried with this code but it does not work. The plug-in is great. Good job.

$this->element->product_sale_end or $view->element->product_sale_end

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

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
6 years 9 months ago #290039

Hello,

In the plugin configuration (via the Joomla plugin manager), you can configure in which "position" you want to display the countdown.
Thanks to that setting you can change the "slot" in the product page without having to perform a view override.

Now regarding the product listing ; that plugin was originally designed to display the counter in the product page only ; it would require some several modifications in the plugin source code to handle a product listing since the given data is not exactly the same and the view is using an unique ID (so it's not possible to have several countdowns in the same page).
These are not impossible tasks but would require some adjustments.

Regarding the display of the countdown depending the sale end and not the discount end is a really good idea of improvement.

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.
The following user(s) said Thank You: neo191987

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

  • Posts: 429
  • Thank you received: 19
6 years 9 months ago #290188

Hi, Jerome. Can I ask you to add the option to show a product_sale_end or tell me how I can add it. Thanks in advance.

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

  • Posts: 26166
  • Thank you received: 4029
  • MODERATOR
6 years 9 months ago #290198

Hello,

That's something we started to work on and which will be integrated into the next version of the plugin.
It would be difficult to give you all modifications to perform (it would take more time than doing it). But the main idea is to not use the "element->discount" object and read the date from the product itself.

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.
The following user(s) said Thank You: neo191987

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

Time to create page: 0.059 seconds
Powered by Kunena Forum