osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Default Image Mod - String not found in osCMax

This is a discussion on Default Image Mod - String not found in osCMax within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I have been at this link posted in the fourms. http://www.oscmax.com/forums/new-osc...ult-image.html I have downloaded and read the mod, there are ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 03-30-2009, 06:59 AM
Active Member
 
Join Date: Jun 2008
Posts: 184
Thanks: 17
Thanked 3 Times in 3 Posts
Rep Power: 2
trochia is on a distinguished road
Default Default Image Mod - String not found in osCMax

I have been at this link posted in the fourms.

Display Default Image

I have downloaded and read the mod, there are (4) files, (3 of them in includes for languages....

I have also done a "exact search" for the phrase of:

tep_not_null and it does not exist. I am wondering if anyone else has had this problem?

Or, in osCMax 2.x, do I need to do something different please in order to have a default image image used?

In fact, I really do not images at all for what I trying to do with this catalog install, and maybe there is just a way to easily turn it off...so that an image is not required during entry...or displayed at all in the catalog?

Thank-you,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 03-30-2009, 07:48 AM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,690
Thanks: 139
Thanked 606 Times in 519 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Default Image Mod - String not found in osCMax

That is not for osCMax, but standard osCommerce so the instructions will not be correct for osCMax. Note it is posted in the osCommerce forum, not any osCMax specific forum.

To get it working with osCMax, you need to take into account that osCMax uses a template system. Look in your template product_info.tpl.php. There it is on line 90 of that file:

PHP Code:
if (tep_not_null($product_info['products_image'])) 
I am not sure how you were searching, but I found over 600 instances of tep_not_null doing a quick file search. I narrowed it by searching for the full line above and it is in 3 files, all templates in the fallback directory:

----------------------------------------
Find 'if (tep_not_null($product_info['products_image']))' in '\catalog\templates\fallback\content\product_info. tpl.php' :
\catalog\templates\fallback\content\product_info.t pl.php(90): if (tep_not_null($product_info['products_image'])) {
Found 'if (tep_not_null($product_info['products_image']))' 1 time(s).
----------------------------------------
Find 'if (tep_not_null($product_info['products_image']))' in '\catalog\templates\fallback\content\product_revie ws.tpl.php' :
\catalog\templates\fallback\content\product_review s.tpl.php(117): if (tep_not_null($product_info['products_image'])) {
Found 'if (tep_not_null($product_info['products_image']))' 1 time(s).
----------------------------------------
Find 'if (tep_not_null($product_info['products_image']))' in '\catalog\templates\fallback\content\product_revie ws_write.tpl.php' :
\catalog\templates\fallback\content\product_review s_write.tpl.php(74): if (tep_not_null($product_info['products_image'])) {
Found 'if (tep_not_null($product_info['products_image']))' 1 time(s).
Search complete, found 'if (tep_not_null($product_info['products_image']))' 3 time(s). (3 files.)
__________________
Michael Sasek
osCMax Developer

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 03-30-2009, 08:29 AM
Active Member
 
Join Date: Jun 2008
Posts: 184
Thanks: 17
Thanked 3 Times in 3 Posts
Rep Power: 2
trochia is on a distinguished road
Default Re: Default Image Mod - String not found in osCMax

Micahel, thank-you very much for the reply.

I had first just done the search in just the (4) product_info.php of the expression in the files..

I keep forgetting about the templates...etc...

Thx again!!

Jim

PS.. Have you ever ran across a mod where I would be able to just create my a from (outside of the admin section) so that I may "let" logged in "cusotmers-clients" go ahead and enter an item, by selecting first:

1) Category (then select from a drop down), in which they may then enter it themselves?

In effect, what I really would like to do...is that "if" a customer has an item, they would like to sell...for me to supply a form to them...they enter the details...without having to have to manually create a "locked down" Admin user for them to have access to do something like this.

I have (2) Instances (things) of what I would like to do with the core osCMax. As the ultimate goal would be similar to something like "EBAY", in which a user...entering/viewing (but they must be registered-logged in etc) could get rid of "their crap" (laugh)..

How it would work, it would have to take into consideration a "customer type" which by default is retail, and then once I verify them manully (by telephone or e-amil) to make sure they are legit, I could then manually assign them to (for now, I will use affiliate as the WORD).. And then?

Well, beacuse I already have a "type" (affiliate), I would like to "recode" the selling price to a percentage (my personal cut of their item etc) and then "whoever" purchases this item.. I get my $$$

Then? What happens is, that the "company or person" that "listed the item" is e-mailed of the sale, and then "both entities" are passed Contact Data ( and also e-mailed) about the the transaction...etc... ( so, no shipping stuff needed either really)

(smile).. Think outside the box brother!! (laugh) As let's face it, everyone and their brother (nowadays) has carts.

Me ?? Well, not knocking this...(osCMax) but I use CS-Cart for doing run of the mill carts, as for the $165.00 I pay for it..(and then the mods/defaults) are pretty much ALL in the Database... it's so much fater, than searching thru a boatload of files...making sure IT IS the proper one etc...and makes the proper change to "only" the one needed.

The other thing? (again) for "outside the box" thinking (that could benefit you!!) Is to use this "core" for a reservation system also.

Just some thoughts, as then you'd have a product "you could encrypt-sell-lock to a doamin" etc...and stash a little CASH into your childs College Education fun...( hahaha )

Jim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Display Default Image michael_s New osCommerce Contributions 0 12-11-2007 09:22 AM
change default image directories michael_s New osCommerce Contributions 0 06-13-2007 06:23 AM
Found a Guestbook that works in oscmax spottedhaggis osCMax v2 Customization/Mods 9 05-07-2006 08:14 PM
let's see what we have here image not found info@ osCommerce 2.2 Modification Help 1 07-05-2005 02:33 AM
Size thumbnail image space dynamically if not found NickW osCommerce 2.2 Modification Help 0 01-16-2004 03:04 AM


All times are GMT -8. The time now is 09:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design