Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Newest Products

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #251  
Old 10-31-2008, 02:19 AM
 
fafbr fafbr is offline
 

Advanced Member
  
Join Date: Oct 2008
Location: Brasilia-Brazil
Posts: 32
 

Default Re: Newest Products

Hi all

Once again, I need your help!!
I am trying to add this mod in my store where I use x cart 4.1.11 version.
I have downloaded post #185 in this thread.
I opened install instructions:


Quote:
Crude install notes
1) You need to edit {xcart_dir}/skin1/customer/home_main.tpl
Add the following lines before the {else} at bottom of file:
{elseif $main eq "newproducts"}
{include file="customer/main/newproducts.tpl"}

2) Copy newproducts.tpl file to {$xcart_dir}/skin1/customer/main/
example: /xcart/skin1/customer/main/newproducts.tpl

3) Copy newproducts.php file to {xcart_dir}/
example: /xcart/newproducts.php

4) Apply the SQL Language file 'language.sql' into the Patch file section
of the X-cart Admin :: Patch/Upgrade center. Or load via mysql

5) You should now be able to put a link using
<domain_name>/{$xcart_dir}/newproducts.php

You can add the link anywhere (speed bar, href, help section, etc).

================================================== =======================
6.
Edit $xcart_dir/skin1/customer/home_main.php
Find:
{else}
{include file="common_templates.tpl"}
{/if}
Insert BEFORE:
{elseif $main eq "newproducts"}
{include file="customer/main/newproducts.tpl"}

================================================== =======================
7.
Edit $xcart_dir/include/func/func.product.php
FIND (approx line 363):
$fields[] = "$sql_tbl[products].productcode";
$fields[] = "$sql_tbl[products].avail";

Add AFTER:
// newproducts .. needed for quantity to work on newproducts module
$fields[] = "$sql_tbl[products].min_amount";

================================================== =======================
8.
Edit $xcart_dir/newproducts.php
FIND (approx line 14)
Adjust the default number of days to search for new products.
The default is 7 days.

And....... I stopped at step 5 of these instructions.
It is my first experience with x cart; therefore, excuse-me if step 5 may seem obvious to you and makes my doubt seem too silly
Could anyone help me and clarify me better where I should add this link and which is correct location for it ?
Please!!
Thank you all in advance !!
__________________
Creative Pixels Designs
________________________
X cart Pro _Version: 4.1.12
Module: download expander
Apache; PHP 5.2.4
Reply With Quote
  #252  
Old 10-31-2008, 03:58 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Newest Products

Well, I put my "new products" link in the speed bar. I also added one below "Gift Certificates" in the section that I renamed "Gift Ideas" (I forget what the default title is.."special", I think), but that involves adding code to the template.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #253  
Old 10-31-2008, 04:26 AM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default Re: Newest Products

Where do you want it on you site ? Can't help you unless we know where you want the link shown. : )
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #254  
Old 10-31-2008, 05:50 AM
 
fafbr fafbr is offline
 

Advanced Member
  
Join Date: Oct 2008
Location: Brasilia-Brazil
Posts: 32
 

Default Re: Newest Products

Quote:
Originally Posted by Lingerieblowout
Where do you want it on you site ? Can't help you unless we know where you want the link shown. : )
Hi Lingerieblowout
I want in store front, below of welcome

http://www.divinescrap.com/store/home.php

Thank you for help
__________________
Creative Pixels Designs
________________________
X cart Pro _Version: 4.1.12
Module: download expander
Apache; PHP 5.2.4
Reply With Quote
  #255  
Old 10-31-2008, 06:15 AM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: Newest Products

Quote:
Originally Posted by fafbr
I want in store front, below of welcome
Then just edit the welcome.tpl make your changes and upload the file back to your server.

File location: skin1/customer/main/welcome.tpl

Cheers,

Robert
__________________
X-cart 4.1.10
Reply With Quote
  #256  
Old 10-31-2008, 06:45 AM
 
fafbr fafbr is offline
 

Advanced Member
  
Join Date: Oct 2008
Location: Brasilia-Brazil
Posts: 32
 

Default Re: Newest Products

Quote:
Originally Posted by robertswww
Then just edit the welcome.tpl make your changes and upload the file back to your server.

File location: skin1/customer/main/welcome.tpl

Cheers,

Robert
Hi Robert
How to I put the link in step 5 in skin1/customer/main/welcome.tpl?
This is my welcome .tpl below
Quote:
{* $Id: welcome.tpl,v 1.28.2.3 2008/07/15 12:07:40 ferz Exp $ *}
{if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''}
{assign var="_name" value=$smarty.cookies.GreetingCookie|replace:"\'": "'"}
<h3>{$lng.lbl_welcome_back|substitute:"name":$_nam e} </h3>
{elseif $lng.lbl_site_title}
<h3>{$lng.lbl_welcome_to|substitute:"company":$lng .lbl_site_title}</h3>
{else}
<h3>{$lng.lbl_welcome_to|substitute:"company":$con fig.Company.company_name}</h3>
{/if}
{$lng.txt_welcome}
<br />
{if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu ne "Y"}
{include file="modules/Bestsellers/bestsellers.tpl"}
{/if}
<br />
{include file="customer/main/featured.tpl" f_products=$f_products}

Thank you for your help
__________________
Creative Pixels Designs
________________________
X cart Pro _Version: 4.1.12
Module: download expander
Apache; PHP 5.2.4
Reply With Quote
  #257  
Old 10-31-2008, 09:45 AM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: Newest Products

Quote:
Originally Posted by fafbr
Hi Robert
How to I put the link in step 5 in skin1/customer/main/welcome.tpl?
Hi Faf,

It's up to you were you would like to put it, but try this to get you started...

Code:
{* $Id: welcome.tpl,v 1.28.2.3 2008/07/15 12:07:40 ferz Exp $ *} {if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''} {assign var="_name" value=$smarty.cookies.GreetingCookie|replace:"\'": "'"} <h3>{$lng.lbl_welcome_back|substitute:"name":$_nam e} </h3> {elseif $lng.lbl_site_title} <h3>{$lng.lbl_welcome_to|substitute:"company":$lng .lbl_site_title}</h3> {else} <h3>{$lng.lbl_welcome_to|substitute:"company":$con fig.Company.company_name}</h3> {/if} {$lng.txt_welcome} <br /> {if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu ne "Y"} {include file="modules/Bestsellers/bestsellers.tpl"} {/if} {* NOTE - Custom MOD - Add Newest Products Link Below *} <p /> http://www.divinescrap.com/{$xcart_dir}/newproducts.php <br /> {include file="customer/main/featured.tpl" f_products=$f_products}

Robert
__________________
X-cart 4.1.10
Reply With Quote
  #258  
Old 10-31-2008, 11:07 AM
 
fafbr fafbr is offline
 

Advanced Member
  
Join Date: Oct 2008
Location: Brasilia-Brazil
Posts: 32
 

Default Re: Newest Products

Quote:
Originally Posted by robertswww
Hi Faf,

It's up to you were you would like to put it, but try this to get you started...

Code:
{* $Id: welcome.tpl,v 1.28.2.3 2008/07/15 12:07:40 ferz Exp $ *} {if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''} {assign var="_name" value=$smarty.cookies.GreetingCookie|replace:"\'": "'"} <h3>{$lng.lbl_welcome_back|substitute:"name":$_nam e} </h3> {elseif $lng.lbl_site_title} <h3>{$lng.lbl_welcome_to|substitute:"company":$lng .lbl_site_title}</h3> {else} <h3>{$lng.lbl_welcome_to|substitute:"company":$con fig.Company.company_name}</h3> {/if} {$lng.txt_welcome} <br /> {if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu ne "Y"} {include file="modules/Bestsellers/bestsellers.tpl"} {/if} {* NOTE - Custom MOD - Add Newest Products Link Below *} <p /> http://www.divinescrap.com/{$xcart_dir}/newproducts.php <br /> {include file="customer/main/featured.tpl" f_products=$f_products}

Robert
Hi Robert

Thank you for your try and help.
But it did not worked.
Only the link .php was displayed in welcome.
Anyway I thank you very much for your attention.
Cheers
Faf
__________________
Creative Pixels Designs
________________________
X cart Pro _Version: 4.1.12
Module: download expander
Apache; PHP 5.2.4
Reply With Quote
  #259  
Old 10-31-2008, 11:35 AM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: Newest Products

Hey Faf,

I don't use this particular free mod, but I use a paid version instead, so I can't really check it out for you, but you must be missing one of the steps...

Especially verify STEP 3:

Copy newproducts.php file to {xcart_dir}/
Example: /store/newproducts.php

And Verify STEP 5:

Edit: store/skin1/customer/home_main.php

{elseif $main eq "newproducts"}
{include file="customer/main/newproducts.tpl"}
{else}
{include file="common_templates.tpl"}
{/if}

Good Luck!

Robert
__________________
X-cart 4.1.10
Reply With Quote
  #260  
Old 10-31-2008, 12:11 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default Re: Newest Products

This free mod allow a link on your site to navigate to the newproducts page. The paid version put the products on your home page
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:10 AM.

   

 
X-Cart forums © 2001-2020