Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Problem Cloning Feature Products

    When you clone something ... you need to change a word or value to make a clone ...

    For example, if you want to clone specials ... then you would change all occurances of the word:
    specials

    to a new word:
    freds

    now ever file that exists with the word:
    specials

    would be made and use the word:
    freds

    and file that referrences the word:
    specials

    would get a copy of that code but the copy would have the word:
    specials

    changed to:
    freds

    Another way to do this is to change the word to something new or related to what you are trying to build ...

    In your case, you wanted to clone Featured to something new ...

    1 You could search in the Tools ... Developers Tool Kit ... for the word:
    featured

    2 sort which files are used by Featured Products - these will usually start with the word:
    featured

    and which files reference the Featured Products - these files will usually contain code that references variables, constants and filenames that contain the word:
    featured -- or -- FEATURED

    Example:
    Code:
    $featured_products_split = new splitPageResults($featured_products_query_raw, MAX_DISPLAY_PRODUCTS_FEATURED_PRODUCTS);
    You need to follow one set of files/variables/constants and stick with it when cloning to make an identical set of everything but change the keyword to the code ...

    One thing you can also do is add to the "keyword" when you clone:
    "featured" becomes ...

    featured2
    featuredmine
    featureddaily
    featuredclone
    featureddozen

    This means that later, I can do a search in the Developers Tool Kit on:
    featured

    and should fine a match for everything to know that nothing was missed ...

    But you cannot start with one set of code and then switch to another set of code and think that this is going to work ...
    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: v1.5.5]
    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!

  2. #12
    Join Date
    Mar 2011
    Posts
    52
    Plugin Contributions
    0

    Default Re: Problem Cloning Feature Products

    Thanks! I will use this to figure out where I went wrong with that code once I have this done.

    I figured out a solution by rewriting the display. I will post it soon in case it will help others.

  3. #13
    Join Date
    Nov 2013
    Location
    Hong Kong
    Posts
    43
    Plugin Contributions
    0

    red flag Re: Problem Cloning Feature Products

    I want to clone the Feature Product function, too.

    I found all the threads about this issue, but none of them help:
    1.) www.zen-cart.com/showthread.php?107375-clone-featured-products-for-category-featured-products

    2.) www.zen-cart.com/showthread.php?103006-Clone-Featured-Products

    3.) www.zen-cart.com/showthread.php?133237-Please-help-me-to-clone-FEATURED-Products-box-for-home-page

    4.)
    www.opencart60s.com/zen-cart/clone-featured-products-68771.html


    I also found a plugin that seems a bit related:
    Featured Categories: www.zen-cart.com/downloads.php?do=file&id=1053


    But other than this, I couldn't make a way out to do this.
    I follow the steps that Ajeh written in #11, but kept fail.

    Here are the files I have changed. The keyword had replaced with "featuredcl1".
    Really hope that someone could tell me what I have messed up with


    Admin's File List:
    ========================
    administrator/elegancer.php
    administrator/featured.php (new file as featuredcl1.php)
    administrator/index.php
    administrator/products_price_manager.php

    administrator/includes/functions/general.php
    administrator/includes/init_includes/init_special_funcs.php

    administrator/includes/languages/english.php
    administrator/includes/languages/english/featured.php (new file as featuredcl1.php)
    administrator/includes/languages/english/index.php
    administrator/includes/languages/english/products_price_manager.php
    ========================



    Catalogue's File List:
    ========================
    includes/database_tables.php
    includes/filenames.php

    includes/functions/featured.php (new file as featuredcl1.php)
    includes/functions/functions_general.php
    includes/functions/functions_lookups.php

    includes/init_includes/init_canonical.php
    includes/init_includes/init_special_funcs.php

    includes/languages/english.php
    includes/languages/elegancer/english.php
    includes/languages/elegancer_pink/english.php
    includes/languages/english/featured_products.php (new file as featuredcl1_products.php)
    includes/languages/english/index.php

    includes/languages/english/extra_definitions/elegancer/footer_menu_defines.php
    includes/languages/english/extra_definitions/elegancer_pink/footer_menu_defines.php
    includes/languages/english/html_includes/elegancer/define_main_page.php

    includes/modules/featured_products.php (new file as featuredcl1_products.php)
    includes/modules/elegancer/featured_products.php (new file as featuredcl1_products.php)
    includes/modules/elegancer_pink/featured_products.php (new file as featuredcl1_products.php)
    includes/modules/pages/featuredcl1_products/header_php.php
    includes/modules/sideboxes/featured.php (new file as featuredcl1.php)


    includes/templates/elegancer/sideboxes/tpl_categories.php
    includes/templates/elegancer/sideboxes/tpl_vert_categories_css.php
    includes/templates/elegancer/templates/tpl_categories_popup.php
    includes/templates/elegancer/templates/tpl_index_categories.php
    includes/templates/elegancer/templates/tpl_index_default.php
    includes/templates/elegancer/templates/tpl_modules_featured_products.php (new file as tpl_modules_featuredcl1_products.php)
    includes/templates/elegancer/templates/tpl_modules_products_featured_listing.php (new file as tpl_modules_products_featuredcl1_listing.php)


    includes/templates/elegancer_pink/sideboxes/tpl_categories.php
    includes/templates/elegancer_pink/sideboxes/tpl_vert_categories_css.php
    includes/templates/elegancer_pink/templates/tpl_categories_popup.php
    includes/templates/elegancer_pink/templates/tpl_index_categories.php
    includes/templates/elegancer_pink/templates/tpl_index_default.php
    includes/templates/elegancer_pink/templates/tpl_modules_featured_products.php (new file as tpl_modules_featuredcl1_products.php)
    includes/templates/elegancer_pink/templates/tpl_modules_products_featured_listing.php (new file as tpl_modules_products_featuredcl1_listing.php)


    includes/templates/template_default/sideboxes/tpl_categories.php
    includes/templates/template_default/sideboxes/tpl_featured.php (new file as tpl_featuredcl1.php)
    includes/templates/template_default/templates/tpl_featured_products_default.php (new file as tpl_featuredcl1_products_default.php)
    includes/templates/template_default/templates/tpl_index_categories.php
    includes/templates/template_default/templates/tpl_index_default.php
    includes/templates/template_default/templates/tpl_index_product_list.php
    includes/templates/template_default/templates/tpl_modules_featured_products.php (new file as tpl_modules_featuredcl1_products.php)
    includes/templates/template_default/templates/tpl_modules_products_featured_listing.php (new file as tpl_modules_products_featuredcl1_listing.php)

    includes/templates/template_default/templates/tpl_product_info_noproduct.php
    includes/templates/template_default/templates/tpl_shopping_cart_default.php
    ========================

  4. #14
    Join Date
    Apr 2010
    Posts
    319
    Plugin Contributions
    0

    Default Re: Problem Cloning Feature Products

    try searching for multiple featured products there was an addon as i use it, gives you 4 featured sections

    bryan

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 BULK Cloning of products - Please read....
    By kapsolas in forum General Questions
    Replies: 0
    Last Post: 18 Mar 2014, 02:59 PM
  2. Problem with search feature on my page
    By atl2rva in forum General Questions
    Replies: 1
    Last Post: 23 Mar 2010, 06:44 PM
  3. Problem cloning table shipping
    By earmsby in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 11 Mar 2010, 08:21 PM
  4. Feature Products
    By wing in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 21 Apr 2009, 12:44 PM
  5. Cloning storepickup problem
    By nkostaki in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 22 May 2006, 06:58 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR