Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: How can I automatically set default picture for categories and products?

    I don't, no. I've found that Zenners fluent in PHP who are here on the forums often offer code snippets to do the kind of thing you're asking for, but there's no way to predict what questions will catch their interest.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How can I automatically set default picture for categories and products?

    If the goal is to have a specific category image display when there isn't a categories_image defined, you could customize things such as:
    /includes/modules/category_row.php

    using your templates and overrides ... and change the image:
    Code:
      while (!$categories->EOF) {
        if (!$categories->fields['categories_image']) !$categories->fields['categories_image'] = 'pixel_trans.gif';
        $cPath_new = zen_get_path($categories->fields['categories_id']);
    and change it from the clear image to one of your own ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v151 URI Mapping - How do I automatically add mappings for EXISTING Categories/Products?
    By Adrian Ciocîrlan in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 8 Jun 2016, 02:14 PM
  2. Can a default manufacturer be set for all products that are added to zen cart
    By missesbeehaven in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 10 Apr 2015, 01:57 AM
  3. v151 Can I set a default product price for creating new products in Admin?
    By mrcastle in forum Basic Configuration
    Replies: 2
    Last Post: 31 Jul 2014, 01:31 AM
  4. How to set a default description for 'new products'?
    By Raze in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 24 Feb 2009, 12:10 AM
  5. Confused about how to set up categories/products and attributes for them
    By nanciadd in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 28 Oct 2007, 11:37 PM

Posting Permissions

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