- Posts: 431
- Thank you received: 19
Discount countdown show in listing_img_title
8 years 6 months ago #289994
by neo191987
Discount countdown show in listing_img_title was created by neo191987
Hi, today I made a purchase on
Discount countdown
. The product page show by adding this code
Now I want to show it in listing_img_title. Is there any way I can show it there ?
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.
8 years 6 months ago #290017
by neo191987
Replied by neo191987 on topic Discount countdown show in listing_img_title
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.
I tried with this code but it does not work. The plug-in is great. Good job.
Code:
$this->element->product_sale_end or $view->element->product_sale_end
Please Log in or Create an account to join the conversation.
8 years 6 months ago #290039
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Discount countdown show in listing_img_title
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,
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.
The following user(s) said Thank You: neo191987
Please Log in or Create an account to join the conversation.
8 years 6 months ago #290188
by neo191987
Replied by neo191987 on topic Discount countdown show in listing_img_title
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.
8 years 6 months ago #290198
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Discount countdown show in listing_img_title
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,
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.
The following user(s) said Thank You: neo191987
Please Log in or Create an account to join the conversation.
Time to create page: 0.169 seconds