osCmax v2.5 User Manual
Results 1 to 3 of 3

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 ...

      
  1. #1
    Active Member
    Join Date
    Jun 2008
    Posts
    195
    Rep Power
    4


    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,

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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 Documentation

  3. #3
    Active Member
    Join Date
    Jun 2008
    Posts
    195
    Rep Power
    4


    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

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •