Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Posts
    19
    Plugin Contributions
    0

    Default automatic product model in product.php

    Hello can somebody help me with this script? I neet to set the product model to have it same as product ID because when I would like to export data by easy populate. I need to have set product_model and I didnīt write it in products!! So when I export data now in import I can hear only no model in field. Does anybody know how set automatic product model number? Thank you michal

  2. #2
    Join Date
    Aug 2005
    Posts
    19
    Plugin Contributions
    0

    Default Re: automatic product model in product.php

    the file is in: admin/product.php

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: automatic product model in product.php

    before you do an export, go to Admin->Tools->SQL Patch

    paste this in the window and click submit:
    Code:
    update products set products_model = products_id;
    That will set the model number to the product ID number for *all* products, wiping out *all* previous model number information.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    Mar 2008
    Posts
    33
    Plugin Contributions
    0

    Default Re: automatic product model in product.php

    I need the product ID to be changed to match the Model number.
    The model numbers are all unique.

    What would be the direction for this?

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: automatic product model in product.php

    Can't do that. The product ids are automatically generated by the database, and are used for a host of other DB coordination.

 

 

Similar Threads

  1. Product Info page: can I move model value under 'model' title?
    By scott_ease in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Aug 2012, 04:24 PM
  2. HELP! Product model on product info display gone wrong
    By newbie456 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Dec 2011, 01:37 AM
  3. Replies: 1
    Last Post: 29 Sep 2008, 04:32 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