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
  #261  
Old 10-31-2008, 09:23 PM
 
jriggins911 jriggins911 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 53
 

Default Re: Newest Products

Sidebar from the latest discussion.....

So I have this mod installed and is working fine with one exception.

If I have a product with market price (not the price we are actually selling it for) the market price and the discount (our price vs market price) is not displayed.

For example if on the home page I have a featured product we are selling for $10 dollars with a market price of $20 dollars the selling price of $10, the market price of $20 and a discount of 50% is displayed. However, if the same product is displayed using this mod on the new products page only the $10 price is displayed.

The newest product mod calls all the same templates the featured products and all other category pages call (products.tpl or products_t.tpl) but the output is not the same.

After having parsed through all of the nested template calls I have narrowed it down to a conditional evaluation in products_t.tpl.

Quote:
{if $products[product].list_price gt 0 and $products[product].taxed_price lt $products[product].list_price}
{math equation="100-(price/lprice)*100" price=$products[product].taxed_price lprice=$products[product].list_price format="%3.0f" assign=discount}
{if $discount gt 0 }
<font class="MarketPrice">{$lng.lbl_market_price}: <s>
{include file="currency.tpl" value=$products[product].list_price}
</s></font><br />
{/if}
{/if}

The problem here is the
Quote:
$products[product].taxed_price
returns the appropriate value while
Quote:
$products[product].list_price
returns nothing (as in not even zero). It seems as if the value isn't being passed or made available globally in this "function call".

Since the
Quote:
$products[product].list_price
has no value the entire conditional IF evaluates to false and the market price and discount are not caluculated or displayed.

Since this mod initates the page display from the same template path, customer/home.tpl, and some of the variables are available from the product object ... why does the particular ".list_price" variable (list / market price) not return its' value?

Any ideas? Anyone else have this problem?
__________________
Digital Embroidery

X-cart Version 4.1.9
Reply With Quote
  #262  
Old 11-01-2008, 04:54 PM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Newest Products

I tried making a new product with a higher market price and as you said the market price did not display. The selling price did however. I think no one has experienced this problem because the items included are new items and not usually on sale lower than the initial price set when they were added.
__________________
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
  #263  
Old 11-02-2008, 12:38 PM
 
jriggins911 jriggins911 is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 53
 

Default Re: Newest Products

Well that is a good confirmation that the "problem" extends beyond just our setup. I still have not made any break throughs as to why $products[product].list_price doesn't return its value...
__________________
Digital Embroidery

X-cart Version 4.1.9
Reply With Quote
  #264  
Old 11-07-2008, 07:38 AM
 
aimeea aimeea is offline
 

Advanced Member
  
Join Date: May 2008
Posts: 33
 

Default Re: Newest Products

Is it possible to have this run in a column on a page ouside of xcart?

I would like to have column in our community that shows our new products.

Thank you in advance
__________________
Version 4.1.10
Reply With Quote
  #265  
Old 12-05-2008, 01:03 PM
 
chrisdurnan chrisdurnan is offline
 

Member
  
Join Date: Sep 2008
Posts: 29
 

Default Re: Newest Products

Is there somewhere that sells this modification that I could have it installed. I am not experienced enough to tinker around with coding etc and would be more interested in paying someone. I looked through a few online stores and couldn't find anything. Any thoughts or direction are appreciated.

Thanks
Chris
__________________
_____________________
Version 4.1.11
X-AOM
X-SpecialOffers
X-FancyCatagories
Download Expander
Anonymous Cart
Custom Mod: Thumbnails for Upselling links
Additional Images/lightbox mod
Reply With Quote
  #266  
Old 12-05-2008, 01:06 PM
 
Lingerieblowout Lingerieblowout is offline
 

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

Default Re: Newest Products

I PM you Chris
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #267  
Old 12-05-2008, 01:47 PM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default Re: Newest Products

Quote:
Originally Posted by chrisdurnan
Is there somewhere that sells this modification that I could have it installed.Thanks
Chris
Hi Chris,

I use the Firetank Sofware version of this MOD and have been very pleased with it. It is fairly simple to install by oneself, but if you want, they can install it for you for an additional $19.95.

Check it out here:
Newest Added products list for x-cart
http://www.firetanksoftware.com/fts/customer/Newest-Added-products-list-for-x-cart-pid-79.html

Robert
__________________
X-cart 4.1.10
Reply With Quote
  #268  
Old 12-05-2008, 01:52 PM
 
chrisdurnan chrisdurnan is offline
 

Member
  
Join Date: Sep 2008
Posts: 29
 

Default Re: Newest Products

Such a quick forum I love it. Thank you. I am preparing my budget for site development in the beginning of next year. This has been helpful.
Thanks
Chris
__________________
_____________________
Version 4.1.11
X-AOM
X-SpecialOffers
X-FancyCatagories
Download Expander
Anonymous Cart
Custom Mod: Thumbnails for Upselling links
Additional Images/lightbox mod
Reply With Quote
  #269  
Old 12-09-2008, 07:44 AM
  JWait's Avatar 
JWait JWait is offline
 

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

Default Re: Newest Products

Robertswww, just out of curiosity, since you are you using the Firetank Sofware version of this MOD do you have any errors on the product pages if Recommended Products is enabled?
__________________
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
  #270  
Old 12-09-2008, 08:42 AM
 
Lingerieblowout Lingerieblowout is offline
 

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

Default Re: Newest Products

Firetank mod has no effect on product pages as his mod is for 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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:30 AM.

   

 
X-Cart forums © 2001-2020