problem solved
I was having problems also. I am using 3.4.2.
I followed all the steps and had to redo it twice. not working. then I found this: http://forum.x-cart.com/viewtopic.php?t=1402&highlight=newest+tpl I replaced the codes and now it's working. |
ShishaPipe i see that you make it work on 4.0.x
can you post codes here? i couldn't make it work with my cart! :( some1 pls? |
I would also like a "Newest Products" mod for 4.0.13.
Can anybody post the code? - Shannon |
I've tried to get this to work...I have the Firetank newest products dialog, so that's not an issue. But I need to get a page of newest products, which that mod doesn't offer.
However, when I try everything in this thread, it looks all crazy. Any ideas on how to get the page to look like a normal product page? Here's the craziness that it is now. http://wholefamilymarket.com/shop/newest.php |
How would I get it to show as a box like on http://www.itselixir.net/home.php as "Best Sellers" do?
|
anyone find out how to have to this work for v4.x yet?
|
i would like too use this too
i would like too use this too
|
dd
Quote:
I needed a way to show new products added. I wanted a page that had more information and gave some options. I have been working on one for my site. I am new to php and have only made a few small mods in xcart before. My site is live, but you can see the new products page I have been working on. If this is something that looks interesting, I can clean it up some and post it. http://www.unconventionallapidarist.com/xcart/newproducts.php I am still looking for the code that sets the <site_name> :: <current> navigation link. My cart is 4.0.15 - james - |
Re: dd
Quote:
James, Your site looks great, that's the way I wanted to get done...would you please "share" the code and show us how, please~ |
New Products page
This is my first xcart add-on. I wrote some code to show New Products on its own page.
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). Let me know if this is useful to you :-) James Save this file as newproducts.php Code:
<? Save as newproducts.tpl Code:
{* $Id: newproducts.tpl,v 1.0.0.1 2005/09/23 01:00:00 jfc Exp $ *} Save file as language.sql Quote:
Here is an example on my site. This site is a live site. http://www.unconventionallapidarist.com/xcart/newproducts.php |
Thanks James. Great work.
Followed the instruction but couldn't get the day to show up...here's my web: http://www.petadorn.com/store/newproducts.php Had any one tried this yet? Was something that I did wrong or? Thanks for the great work, |
Quote:
It looks like the labels from the languages.sql file aren't getting loaded. I am not sure about all the different language settings. Try adding your "Labels" and "Text" manually to the languages in the admin panel. It looks like from your site that the label for "New Products" got added but the rest did not. Try adding a couple of labels and test it. You should see if you are getting any results. - james - LABEL ================================= Name: lbl_newproducts Value: [i] New Products Name: lbl_newproducts_since Value: Products added since Name: lbl_newproducts_24hrs Value: 24 Hours Name: lbl_newproducts_3days Value: 3 Days Name: lbl_newproducts_7days Value: 7 Days Name: lbl_newproducts_30days Value: 30 Days Name: lbl_newproducts_adddate Value: Add Date Name: lbl_newproducts_sku Value: SKU Name: lbl_newproducts_product Value: Title Name: lbl_newproducts_price Value: Price TEXT ====================================== Name: txt_no_newproducts Value: No new products have been listed within timeframe you specified |
Quote:
Magic!!! Thank you sooo much James, I think you've got a magic wand in your hand! Right now the only thing is the [i]lbl_newproducts_since I've got an error message says: The label for language selected is invalid. Please select another label. I'm almost there! :lol: |
Quote:
Take the "[i]" off the label name. It was used as emphasis for this listing it to this forum. I guess I went a little crazy with them. The label name should be: lbl_newproducts_since The value is the same as before. - james - |
Quote:
:P =D> Hugs to you...I did that, and forgot to refresh my browser. Shame on me! Now I am ready to do the hooter dance!!! :-({|= \:D/ |
GREAT Job James!! :D
This is about the first mod that installed without having to tweak this or that. Come to think about it, it was rather boring. Just copy, paste, save, upload, patch...enjoy! :wink: |
Well... I did have to make 1 tweak.
I noticed the "Manufacturers" menu wasn't showing, so... In "newproducts.php" just below: Code:
require "./auth.php"; Code:
if ($active_modules["Manufacturers"]) Now this may not be the correct way to do it, but it seems to work okay in 4.12 & 4.15. |
Great mod works great
Have a problem I have put the link in the cartegories tpl {section name=cat_num loop=$categories} {if $categories[cat_num].order_by eq 20 || $categories[cat_num].order_by eq 100} <div class="VertMenuItems1">New Products</div> <hr> I have the categories separated with a <hr> the link shows in both areas of the category Any suggestions how to only show the link in the top part of the categories |
Quote:
I saw the same thing earlier and had already updated mine. Since it was my first xcart mod I stripped the code down to the minimum and rebuilt it to learn. I forgot to add the manufacturers reference that back in the code I posted. Oops. I have gotten a lot of help from reading the forum. So, I thought it was time to give something back :-) - james - |
Quote:
Not sure if this helps, but I put mine like so: Code:
{capture name=menu} |
thanks Fuzzy works great
|
I'm on v.4.0.15. It works GREAT!
Just wondering, I see alot of people got it to work on the side menu like category, bestseller, and manufacturer. Is that a separate .tpl page I have to create? Or I just missed something here? |
not quite sure why but my entire page is actually coming up but nothing within the page itself.
Page not found! The requested page does not exist or you are not allowed to access it! http://scrapbookbytes.com/store/newproducts.php |
Quote:
Just a guess, but is "newproducts.tpl" in the correct spot? ie: /skin1/customer/main/newproducts.tpl Also check the spelling of the {else} in /skin1/customer/home_main.tpl If either isn't the prob, I'll need more coffee, and a donut or two. :wink: |
very strange... all is in place and in place. I even replaced the include file on the home page... the minute I do the entire page goes blank.
|
also when removing all the content from the "newproduct.php" file and just putting in a "test" text into it - that does come up.
|
Quote:
The "Page not found!" comes normally comes from the home_main.tpl file not having the following: Code:
{elseif $main eq "newproducts"} This has to be before the end of the file that says Code:
{else} The $main variable to set to "newproducts" in the newproducts.php file. If The {elseif} code shown above is not in home_main.tpl or you change the word "newproducts" to something else and didn't do the same in the .php file, you will get the page not found error because the code will fall through to the last statement that basically has it display the page not found page (in this case). Here is the bottom section of my <xcart_dir>/skin1/customer/home_main.tpl Quote:
If you can't get it to work. Post your skin1/customer/home_main.tpl file. That is the best place to start looking. Because I can reproduce the error by taking out the {elseif} addition or changing the word (example. newproducts to newadditions) James |
thanks! Will give it a try in just a bit - I appreciate your help - it's a mod that my store visitors are begging for!
|
here is the main_home.tpl file.
when inserting that last line of code it creates a blank page to be created. Code:
{if $smarty.get.mode eq "subscribed"} |
Are you using Word or Word Pad to edit the file?
If so, use Notepad instead. |
I believe I did it in word pad; will try textpad
|
THAT WAS IT!!! YOU ROCK!!! Thanks so VERY VERY much for this mod!
|
Quote:
Sounds like you got some funky characters from your texteditor. I see that you got it fixed. Thanks fuzzy for the support. - james - |
Quote:
Using MS Word, Wordpad does add a bunch of unseen stuff that servers will choke on. So does FrontPage. Gotta love MS! LOL!! |
now to figure out how to link it from my categories navigation! :)
|
THANKS TO BOTH OF YOU!!!
Any input on adding it to my navigation or creating a new "box". below is my categories.tpl page. Code:
{capture name=menu}[img]http://scrapbook-bytes.com/images/b-1.gif[/img]{if |
what about an "added date: " field to each product?
|
Re: .
Quote:
input on this one? |
Along the same lines as the question posted above...
Is there any way to add "By Date" to the Sort options in each category? I installed this mod in 4.0.17 and it works like a charm! Great Mod! :D |
Here's one for ya..... Any way for this to NOT include "changed" or "updated" products (ie: if someone changes a price in their provider area) as "new".
|
All times are GMT -8. The time now is 04:24 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.