Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2010
    Posts
    10
    Plugin Contributions
    0

    Default Product URL without Product ID?

    Heres the scoop... I have a product import that I wrote in PHP that runs daily to import my products from our accounting system.
    The problem is I wrote it to just dump the products before it imports the new ones.... so everyday the product ID changes when new products are added. This is a problem because I cant link directly to a product using the Product ID... for like marketing and stuff.

    Anyone know if there is a way to link to a product page without using the product ID? I have unique model numbers...
    I really dont want to rewrite my import.
    Thanks.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Product URL without Product ID?

    You need to rewrite your import ... because another side effect of what you've done is that search engines will never have accurate information due to your ever-changing links. Plus you'll eventually needlessly blow out the database with insanely large product ID numbers. Rewrite your import tool to match on model number and update instead of inserting.
    .

    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.

  3. #3
    Join Date
    Apr 2010
    Posts
    10
    Plugin Contributions
    0

    Default Re: Product URL without Product ID?


    Good point on the search engines! Didn't see that one coming.
    Though I don't have to worry about the insanely large Product ID's they start from 1 each day.

    I just found out where to put code in the includes\modules\pages\product_info\header_php.php to use Model Number in the URL..... but I still have the other issue with the search engines....

    I wonder, is there a way to change the product URL that is generated to use &products_model= instead of &products_id= ? in the advanced search results, since my menu is driven by them?
    I am not using Categories like a regular zencart store.

    Or am I clinging to a faulty design? :)

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

    Default Re: Product URL without Product ID?

    It sounds like you will need to rewrite either your import code to update instead of replace, or the core Zen Cart URL generator _and_ everything that uses its output (and then maintain that rewrite through future ZC upgrades). Your choice...

  5. #5
    Join Date
    Nov 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: Product URL without Product ID?

    Quote Originally Posted by yourguide View Post

    I just found out where to put code in the includes\modules\pages\product_info\header_php.php to use Model Number in the URL..... but I still have the other issue with the search engines....

    I wonder, is there a way to change the product URL that is generated to use &products_model= instead of &products_id= ? in the advanced search results, since my menu is driven by them?
    I know this is an old thread but applies to what I need to do. When people search for one of my parts by part number on Google, the search isn't doing as well as it could because my products part numbers aren't in my Zen URL. I searched through many posts and this one seemed like the closest to what I need to do. Can someone point me to the info I need for figuring out how to have part numbers included in the URL for my products?

 

 

Similar Threads

  1. Replies: 16
    Last Post: 13 Jan 2013, 06:10 PM
  2. Special: Add product to cart without leaving product page.
    By ryanthemadone in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Jan 2010, 02:36 AM
  3. Can I use my prostores product url as my zc product url?
    By erinl in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 6 Jul 2008, 05:17 AM
  4. product URL. without http:// form-field
    By hd2o in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Nov 2007, 10:37 AM
  5. Change Product Name without creating a new product
    By jmcneil in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 19 May 2006, 12:45 AM

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