X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Free "What's New?" X-Cart module released! (https://forum.x-cart.com/showthread.php?t=47502)

dolaghan 06-17-2009 03:07 AM

Re: Free "What's New?" X-Cart module released!
 
the link that was working though is not ideal though as it only shows since your last visit, any idea why my main link is doing what it is doing?

regards

Victor D 06-17-2009 03:14 AM

Re: Free "What's New?" X-Cart module released!
 
I suppose it shows the product you have added today.
Since there are no other products added within last two weeks this is the only product in this category.
Try to use 30 instead of 14 or even 300 (to grab all your products sorted by add date in reverse order)

Quote:


Configuration

Browse to your administration area -> "General Settings" then select "Whats' New" from "Modules options" and set how many days products are considered to be new.
Edit lbl_wnmod_title language variable to change 'New products' dialog title and lbl_wnmod_whatsnew language variable to change categories menu link text.


Add this code in the place where you want to show new products notification (in any tpl file you like). We recommend to use the very beginning of the /skin1/customer/home_main.tpl file.


{if $active_modules.Whats_New && $new_products_count gt 0}
{include file="modules/Whats_New/Whats_New.tpl" top="100" left="100" background="bubble_007171.png"}
{/if}


This code has parameters you can tweak to achieve maximum of appearance compatibility with your store:

top (optional) distance in pixels from top side of screen if not specified, bubble being displayed at centre of screen
left (optional) distance in pixels from left side of screen if not specified, bubble being displayed at centre of screen
background (optional) Filename of bubble image, one from our predefined set if not specified, default bubble being displayed

So you should find the code
Code:

{include file="modules/Whats_New/Whats_New.tpl"}
in your templates and change top and left to adjust bubble location

dolaghan 06-17-2009 03:18 AM

Re: Free "What's New?" X-Cart module released!
 
hi, ive ammended to 30 days but still just get this error when you follow the link
http://completefone.com/home.php?cat=0&WhatsNew=Y

ive removed the bubble and the link in categories as i have put a bolder link on the speed bar but obviously need this to eb working.

is there anyway even if i have to pay you you could resolve this for me.


regards

Victor D 06-17-2009 03:27 AM

Re: Free "What's New?" X-Cart module released!
 
I don't know when your products were added so try set it to 360 (to grab all your products added last year sorted by add date in reverse order)

dolaghan 06-17-2009 03:30 AM

Re: Free "What's New?" X-Cart module released!
 
i will try that but if you click on my link the page is not doing what it should do, ive clicked on the same link in another x-cart store and its totally different.
mine is not creating the category correctly, yesterday i added over 20 products so these should be showing?

regards

Victor D 06-17-2009 03:37 AM

Re: Free "What's New?" X-Cart module released!
 
Please contact us from the module page for free support. We will need access to your store to fix this
http://x-cart-customization.com/x-cart-modules/Whats-New.html

dolaghan 06-17-2009 04:04 AM

Re: Free "What's New?" X-Cart module released!
 
details sent, many thanks

royng 07-14-2009 10:17 AM

Re: Free "What's New?" X-Cart module released!
 
Is there a way you can set the What's new in to a side box, instead of under home cat.

Victor D 07-15-2009 02:46 AM

Re: Free "What's New?" X-Cart module released!
 
Yes, just create a new menu (the code below is for 4.1.x branch)

Code:

{if $active_modules.Whats_New}
      {capture name=menu_new}
          <a href="home.php?WhatsNew=Y">{$lng.lbl_wnmod_title}</a>
      {/capture}
      {include file="menu.tpl"  menu_title=$lng.lbl_wnmod_whatsnew menu_content=$smarty.capture.menu_new}
{/if}


and turn 'what's new' category off by commenting the line
Code:

$smarty->assign($var_name, $wn_cats);

(replace it with)
Code:

#$smarty->assign($var_name, $wn_cats);
in the file modules/Whats_New/categories.php



ibdmanhb 08-07-2009 05:42 PM

Re: Free "What's New?" X-Cart module released!
 
Hey Victor,

I have tried getting this module installed and am having no luck getting the bubble to show up. I tried adding the code in skin1/customer/home_main.tpl, home.tpl and customer/main/welcome.tpl. I cleared the store cache, browser cache, refreshed the page and still nothing. even set days to 360 and I have products added today. I have done some mods and have had some experience modifying files and never had any issues getting them too work, until now..... :(

any suggestions ??

Thanks in advance


All times are GMT -8. The time now is 04:17 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.