Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2006
    Posts
    5
    Plugin Contributions
    0

    Default New Product Type Not Using Correct Template

    Hi everyone,
    I have a need to replace the "add to cart" button with an alternate form for some products. To this end I have created a new product type called "product_remote". I copied "\catalog\includes\modules\pages\product_info" to "\catalog\includes\modules\pages\product_remote_info". I have also copied "\catalog\includes\templates\template_default\templates\tpl_product_info_display .php" to "\catalog\includes\templates\custom\templates\tpl_product_remote_info_display.ph p" and then modified the copied file.

    But...

    While I can create new products of this type in admin just fine, when I go to order the product, the info page uses the "Product - General" template.

    Is my template in the wrong directory? Have I forgotten to do something else?

    Thanks in advance.

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

    Default Re: New Product Type Not Using Correct Template

    In your admin, under Catalog->Product Types, if you click Edit on your product_remote type, your Handler Page setting should be set to: product_remote
    .

    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.

 

 

Similar Threads

  1. Add a new product type in 1.5, or not...
    By jeffiec in forum Code Collaboration
    Replies: 9
    Last Post: 20 Feb 2013, 04:14 AM
  2. new template not using my .css
    By inestine in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 28 Apr 2011, 12:43 AM
  3. product type page template not being displayed
    By whitefael in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 19 Oct 2006, 03:16 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