display product available date

Dreeshoek
9 Posts
Dreeshoek posted this 2 weeks ago

is there a cms code to display product available date

is there a cms code to display product available date
Vote to pay developers attention to this features or issue.
5 Comments
Order By: Standard | Newest
Dreeshoek
9 Posts
Dreeshoek posted this 2 weeks ago

Blockquote

<div class>

    <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?>
</div

Blockquote

This is working

> Blockquote &lt;div class&gt; <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?> </div > Blockquote This is working
Dreeshoek
9 Posts
Is Solution
Dreeshoek posted this 2 weeks ago

<div class>

    <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?>
</div>

&lt;div class&gt; <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?> </div>
Dreeshoek
9 Posts
Dreeshoek posted this 2 weeks ago

<div class="availability">
        <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?>
    </div>

<div class="availability"> <?php echo vmText::_('COM_VIRTUEMART_PRODUCT_AVAILABLE_DATE') .': '. JHtml::_('date', $product->product_available_date, vmText::_('DATE_FORMAT_LC4')); ?> </div>
Dreeshoek
9 Posts
Dreeshoek posted this 2 weeks ago

?php // Else if in stock
} else if (($product->product_in_stock - $product->product_ordered) > 0) {


  // Display the date of availability if greater than current date
    if ($product_available_date != '0000-00-00' and $current_date < $product_available_date) 

that not works..

?php // Else if in stock } else if (($product->product_in_stock - $product->product_ordered) > 0) { // Display the date of availability if greater than current date if ($product_available_date != '0000-00-00' and $current_date < $product_available_date) that not works..
Support Team
Support Team posted this 1 weeks ago

Hi,

The code in the last post is not complete. But you already provided the code which is working.
Please let us know if you need our further assistance here.

Thank you,
Olivia

Hi, The code in the last post is not complete. But you already provided the code which is working. Please let us know if you need our further assistance here. Thank you, Olivia
You must log in or register to leave comments