[Skip to main content](#vessel-content)

#   Manage Variants

##

- **[SLLLC](/forum/user/514-slllc "View SLLLC's Profile")**
- [![SLLLC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/514-slllc "View SLLLC's Profile") Topic Author
- [ Offline](/forum/user/514-slllc)

Less More

- Posts: 48
- Thank you received: 1
-
-

14 years 3 months ago [\#58308](#58308) by [SLLLC](/forum/user/514-slllc "View SLLLC's Profile")  *[Manage Variants](/forum/2-general-talk-about-hikashop/58308-manage-variants#58308 "when I have a number of diff variants with various end dates (start dates also possible) would like to see Product available from (startdate) and Product available until (enddate) selection featured...")* was created by *[SLLLC](/forum/user/514-slllc "View SLLLC's Profile")*

when I have a number of diff variants with various end dates (start dates also possible) would like to see Product available from (startdate) and Product available until (enddate) selection featured on the indiv variant (accessing from "Manage variants")edit screen

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4MzA4LW1hbmFnZS12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 3 months ago -  14 years 3 months ago [\#58376](#58376) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Manage Variants](/forum/2-general-talk-about-hikashop/58308-manage-variants#58376 "when I have a number of diff variants with various end dates (start dates also possible) would like to see Product available from (startdate) and Product available until (enddate) selection featured...")*

You can add the code Code:

&lt;td align="center"&gt; &lt;?php echo hikashop_getDate($row-&gt;product_sale_start); ?&gt; &lt;/td&gt; &lt;td align="center"&gt; &lt;?php echo hikashop_getDate($row-&gt;product_sale_end); ?&gt; &lt;/td&gt;

before the code Code:

&lt;td&gt; &lt;?php echo $this-&gt;currencyHelper-&gt;displayPrices(@$row-&gt;prices); ?&gt; &lt;/td&gt;

and the code Code:

&lt;th class="title"&gt; &lt;?php echo JText::_('PRODUCT_SALE_START'); ?&gt; &lt;/th&gt; &lt;th class="title"&gt; &lt;?php echo JText::_('PRODUCT_SALE_END'); ?&gt; &lt;/th&gt;

before the code Code:

&lt;th class="title"&gt; &lt;?php echo JText::_('PRODUCT_PRICE'); ?&gt; &lt;/th&gt;

in the file "variant" of the view "product" via Display-&gt;Views for your back end template.

Last edit: 14 years 3 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4MzA4LW1hbmFnZS12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[SLLLC](/forum/user/514-slllc "View SLLLC's Profile")**
- [![SLLLC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/514-slllc "View SLLLC's Profile") Topic Author
- [ Offline](/forum/user/514-slllc)

Less More

- Posts: 48
- Thank you received: 1
-
-

14 years 3 months ago [\#58399](#58399) by [SLLLC](/forum/user/514-slllc "View SLLLC's Profile")  Replied by *[SLLLC](/forum/user/514-slllc "View SLLLC's Profile")* on topic *[Re: Manage Variants](/forum/2-general-talk-about-hikashop/58308-manage-variants#58399 "when I have a number of diff variants with various end dates (start dates also possible) would like to see Product available from (startdate) and Product available until (enddate) selection featured...")*

located the file of the back end template, product / variant.php
but am unable to locate the last "before the code" commands in the file.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4MzA4LW1hbmFnZS12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 3 months ago [\#58440](#58440) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Manage Variants](/forum/2-general-talk-about-hikashop/58308-manage-variants#58440 "when I have a number of diff variants with various end dates (start dates also possible) would like to see Product available from (startdate) and Product available until (enddate) selection featured...")*

I fixed my message. The last two code pieces were inverted

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4MzA4LW1hbmFnZS12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[SLLLC](/forum/user/514-slllc "View SLLLC's Profile")**
- [![SLLLC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/514-slllc "View SLLLC's Profile") Topic Author
- [ Offline](/forum/user/514-slllc)

Less More

- Posts: 48
- Thank you received: 1
-
-

14 years 3 months ago [\#58543](#58543) by [SLLLC](/forum/user/514-slllc "View SLLLC's Profile")  Replied by *[SLLLC](/forum/user/514-slllc "View SLLLC's Profile")* on topic *[Re: Manage Variants](/forum/2-general-talk-about-hikashop/58308-manage-variants#58543 "when I have a number of diff variants with various end dates (start dates also possible) would like to see Product available from (startdate) and Product available until (enddate) selection featured...")*

:woohoo: Thank you so much, as you can see on the img file the Varant Listing page now has the columns

[ ![VariantListingsScreen.png](/forum/attachment/4922) ](/forum/attachment/4922 "...ingsScreen.png")

But I need to enter data for the Start and Stop Dates and do not have the selection on the Indiv variant page, see attached img

[ ![VariantScreen.png](/forum/attachment/4923) ](/forum/attachment/4923 "VariantScreen.png")

- [ ![VariantListingsScreen.png](/forum/attachment/4922) ](/forum/attachment/4922 "...ingsScreen.png") [ ](/forum/attachment/4922?download=1 "...ingsScreen.png")
- [ ![VariantScreen.png](/forum/attachment/4923) ](/forum/attachment/4923 "VariantScreen.png") [ ](/forum/attachment/4923?download=1 "VariantScreen.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4MzA4LW1hbmFnZS12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 3 months ago [\#58601](#58601) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Manage Variants](/forum/2-general-talk-about-hikashop/58308-manage-variants#58601 "when I have a number of diff variants with various end dates (start dates also possible) would like to see Product available from (startdate) and Product available until (enddate) selection featured...")*

Oh, I thought that you meant that it was there and that you just wanted to display the value on the listing.

Adding the field in the form in not complex either.
You can just add the code Code:

&lt;tr&gt; &lt;td class="key"&gt; &lt;label for="data[product][product_sale_start]"&gt; &lt;?php echo JText::_( 'PRODUCT_SALE_START' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;?php echo JHTML::_('calendar', hikashop_getDate((@$this-&gt;element-&gt;product_sale_start?@$this-&gt;element-&gt;product_sale_start:''),'%Y-%m-%d %H:%M'), 'data[product][product_sale_start]','product_sale_start','%Y-%m-%d %H:%M','size="20"'); ?&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="key"&gt; &lt;label for="data[product][product_sale_end]"&gt; &lt;?php echo JText::_( 'PRODUCT_SALE_END' ); ?&gt; &lt;/label&gt; &lt;/td&gt; &lt;td&gt; &lt;?php echo JHTML::_('calendar', hikashop_getDate((@$this-&gt;element-&gt;product_sale_end?@$this-&gt;element-&gt;product_sale_end:''),'%Y-%m-%d %H:%M'), 'data[product][product_sale_end]','product_sale_end','%Y-%m-%d %H:%M','size="20"'); ?&gt; &lt;/td&gt; &lt;/tr&gt;

in the file infovariant.
However, the values won't be used anywhere. It would require to modify core files of HikaShop to handle the check of these values (in the quantity file of the product view, in the file administrator/components/com_hikashop/classes/cart.php )

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4MzA4LW1hbmFnZS12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[SLLLC](/forum/user/514-slllc "View SLLLC's Profile")**
- [![SLLLC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/514-slllc "View SLLLC's Profile") Topic Author
- [ Offline](/forum/user/514-slllc)

Less More

- Posts: 48
- Thank you received: 1
-
-

14 years 3 months ago [\#58977](#58977) by [SLLLC](/forum/user/514-slllc "View SLLLC's Profile")  Replied by *[SLLLC](/forum/user/514-slllc "View SLLLC's Profile")* on topic *[Re: Manage Variants](/forum/2-general-talk-about-hikashop/58308-manage-variants#58977 "when I have a number of diff variants with various end dates (start dates also possible) would like to see Product available from (startdate) and Product available until (enddate) selection featured...")*

OK, now getting to the my initial request, would require the values being used. As this requires modification of core files could you plaese add it to the many other (more important) work you are doing for inclusion in one of the next update.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4MzA4LW1hbmFnZS12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86320
- Thank you received: 14279
-
-

14 years 3 months ago [\#59006](#59006) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Manage Variants](/forum/2-general-talk-about-hikashop/58308-manage-variants#59006 "when I have a number of diff variants with various end dates (start dates also possible) would like to see Product available from (startdate) and Product available until (enddate) selection featured...")*

We'll add that for next version

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU4MzA4LW1hbmFnZS12YXJpYW50cz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.087 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
