Post by gizmecano » Wed Jun 06, 2018 8:00 pm

Using vQmod, I'm trying to add a condition to select only products which will be available at the current date (in order only these ones are displayed with the "Latest" native module).

I have tested with something like:

Code: Select all

<search position="replace">
    <![CDATA[           'sort'  => 'p.date_added',
    ]]>
</search>
<add>
    <![CDATA[
     # Before the current date
     'sort'  => 'p.date_available <= NOW()',]]>
</add>
But it seems not to have any effect...

Does anybody have any idea?
Last edited by gizmecano on Mon Jun 11, 2018 4:49 pm, edited 2 times in total.

User avatar
New member

Posts

Joined
Mon Apr 13, 2015 9:21 pm

Post by gizmecano » Mon Jun 11, 2018 4:48 pm

Resolved by understanding some functions nestings.

User avatar
New member

Posts

Joined
Mon Apr 13, 2015 9:21 pm

Post by DigitCart » Mon Jun 11, 2018 5:26 pm

Glad you found the answer!

My Extensions / DigitCart


User avatar
Active Member
Online

Posts

Joined
Thu Jun 22, 2017 5:32 pm

Who is online

Users browsing this forum: No registered users and 12 guests