How get variables in mod news pro

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue May 21, 2013 1:21 pm
Reply with quote
Report this post
Hi all.

I have reprogrammed default.php for category and productdetails in VM to display two images in the foreground in depending on product was created in the last month or that product is on offer. (see attached pictures)

Now i want to do the same in mod news pro but it's impossible for me. In productdetails i used this to get discount amount:

$this->product->prices['discountAmount']

And in category view other this:

$product->prices['discountAmount']

I've been trying to get this by diferent ways but these variables are empty so... somebody can tell me what is the correct way to get discount amount and date created on in mod news pro?

Regards.
User avatar
Senior Boarder

teitbite
Tue May 21, 2013 2:47 pm
Reply with quote
Report this post
Hi

In case of NSP You need to change functions creating parts in /tmpl/layout.parts.php function responsible for price store_vm().

Variables names are as $news_price, $news_price_currency, $news_discount_amount, $news_discount_is_percent, $news_discount_start, $news_discount_end
User avatar
Moderator

GK User
Tue May 21, 2013 7:26 pm
Reply with quote
Report this post
Thank you very much teitbite, it was more difficult i though but finally i have achieved.

Just one more thing, in NSP "Data source" tab when i filter VM products "by hits amount" looks like don´t work correctly, it shows products ordered by date, how can i fix this?

Best regards.
User avatar
Senior Boarder

GK User
Wed May 22, 2013 9:49 pm
Reply with quote
Report this post
I'm very confused.

The problem not seems to be NSP module. I've checked database and the values of the column 'hits' for any product is NULL. I've visited several products pages from different computers and the value not change. It's important for me because i want to show a NSP module displaying the most visited products. Does anyone know how to fix this?

Regards.
User avatar
Senior Boarder

teitbite
Wed May 22, 2013 11:18 pm
Reply with quote
Report this post
Hi

Sorry, I cannot help with that. I'm not VM expert. You need to look at VM support forum to sort it out.
User avatar
Moderator

GK User
Thu May 23, 2013 2:09 pm
Reply with quote
Report this post
Ok

I'm going to look information about this. Thank you for your time

Best regards
User avatar
Senior Boarder

teitbite
Fri May 24, 2013 10:19 am
Reply with quote
Report this post
Hi

Ok. Sorry I could not helped more.
User avatar
Moderator


cron