Page 37 of 43 FirstFirst ... 273536373839 ... LastLast
Results 361 to 370 of 427
  1. #361
    Join Date
    Apr 2015
    Location
    United States
    Posts
    144
    Plugin Contributions
    0

    Default Re: New add-on "product type book" for ZC 1.5

    Quote Originally Posted by philou View Post
    Hi Frank,

    menitu must respond to you, since he wrote the original post.
    Let me just point out again, that there is an inclusion mechanism, which allows you to place a file which begins with "collect_info" like "collect_info_ceon_uri.php" and it will be included automatically by "collect_info.php". The same must then be implemented for "preview_info" and "update_product", so you deal with all your extra data in all three files and leave the original files untouched (if possible).

    Regards,
    p.
    Hello p.

    I created a file "collect_info_seo.php" and put in this file "// BEGIN CEON URI MAPPING 1 of 2 require_once(DIR_WS_CLASSES . 'class.CeonURIMappingAdminProductPages.php'); $ceon_uri_mapping_admin = new CeonURIMappingAdminProductPages(); $ceon_uri_mapping_admin->collectInfoHandler(); // END CEON URI MAPPING 1 of 2
    but now I only get this same text at the top of my collect_info.php page instead of ceon uri box near the bottom of the page.

    I also created another file "collect_info_metatags.php" and that looks like it is functioning properly.

    I have not done anything with the preview nor update yet.

    Thanks for your help,
    Frank

  2. #362
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

    Default Re: New add-on "product type book" for ZC 1.5

    Sorry I am not familiar myself with CEON. There is only one include of "collect_info_*.php" named files at the top of "collect_info.php"
    If you need extra code anywhere else, then you do have to modify the "collect_info.php" file itself.

    regards,
    p.

  3. #363
    Join Date
    Apr 2015
    Location
    United States
    Posts
    144
    Plugin Contributions
    0

    Default Re: New add-on "product type book" for ZC 1.5

    Quote Originally Posted by philou View Post
    Sorry I am not familiar myself with CEON. There is only one include of "collect_info_*.php" named files at the top of "collect_info.php"
    If you need extra code anywhere else, then you do have to modify the "collect_info.php" file itself.

    regards,
    p.
    Hello p.

    I uploaded the collect_info_metatags.php, preview_info_meta_tags.php and update_info_meta_tags.php files and all is well with the metatags.

    That proves that your system of adding these files to the directory works.

    If you do not use ceon URI for friendly url's, what do you use if any?

    Best regards,

    Frank

  4. #364
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

    Default Re: New add-on "product type book" for ZC 1.5

    Hi Frank,

    the metatags are included by core ZEN CART functionality, not by BookX. You can verify this, by looking at the "normal" product folder in ADMIN/includes/modules/product. It also has extra collect_info_metatags.php and that has nothing to do with BookX.
    As a convenience not to have to add code to the collect_info.php directly, BookX provides this extra include functionality, so your modifications do not break when an update comes along.

    I don not ucrrently use user friendly URIs. Not exactly "modern", I know, but that's how it is at the moment :-)

    Regards,
    p.

  5. #365
    Join Date
    Apr 2015
    Location
    United States
    Posts
    144
    Plugin Contributions
    0

    Default Re: New add-on "product type book" for ZC 1.5

    Quote Originally Posted by philou View Post
    Hi Frank,

    the metatags are included by core ZEN CART functionality, not by BookX. You can verify this, by looking at the "normal" product folder in ADMIN/includes/modules/product. It also has extra collect_info_metatags.php and that has nothing to do with BookX.
    As a convenience not to have to add code to the collect_info.php directly, BookX provides this extra include functionality, so your modifications do not break when an update comes along.

    I don not ucrrently use user friendly URIs. Not exactly "modern", I know, but that's how it is at the moment :-)

    Regards,
    p.
    OK Thanks p.
    Yes I understand this functionality of Bookx and it works great for the metatags.

    I will have to investigate more on my ceon problem or maybe switch to another friendly url mod.

    In the meantime on my add to cart page I get "TEXT_PRODUCT_MANUFACTURERCanon" instead of "Manfacturer Canon"

    Using the Developer Tool Kit I see:

    /hsphere/local/home/religiousbooks/religiousbookshop.com/includes/templates/responsive_sheffield_blue/templates/tpl_product_bookx_info_display.php

    Line #575 : echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n";

    Does this file need to be changed in some way?

    Best regards,

    Frank

  6. #366
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Hi fj,

    your are right, this definition seems to be missing from the language file of BookX. If the name of the constant is output to screen, then it means the constant is not defined.

    in ZC/includes/languages/english/product_info.php there is the definition
    Code:
    17: define('TEXT_PRODUCT_MANUFACTURER', 'Manufactured by: ');
    but in ZC/includes/languages/english/product_bookx_info.php the above line is missing. Please add it to your language file in: ZC/includes/languages/YOURLANGUAGE/product_bookx_info.php and I will insert it in the next release.

    Regards,
    p.

  7. #367
    Join Date
    Apr 2015
    Location
    United States
    Posts
    144
    Plugin Contributions
    0

    Default Re: Creating an add-on "product type book" for ZC 1.5

    Thanks p.

    That did the trick!

    Best regards,

    Frank

  8. #368
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: New add-on "product type book" for ZC 1.5

    First let me thank you very, very much for easy populate/bookx plugin! Installed and working without a glitch. using Easy Populate 4.0.33a - Beta 02-29-2016 w/ BookX0.9.9
    During this week, I'm hopping to commit some more changes to the ep4bookx, cause I found some issues related to 151, and in the way found some other minor issues that must be fix.
    So please follow the suggestion and make your changes in a local machine to check if everything is ok.


    When I tried to implement the changes you outlined above, I got the ceon uri code at the top of the collect_info page
    But it's not working ? Do you have the CEON fields in the product edit ?

    Checking my file collect_info.php from CEON I got this:

    PHP Code:
    <tr>
                <td class="main"><?php echo TEXT_PRODUCTS_SORT_ORDER?></td>
                <td class="main"><?php echo zen_draw_separator('pixel_trans.gif''24''15') . '&nbsp;' zen_draw_input_field('products_sort_order'$pInfo->products_sort_order); ?></td>
              </tr>
                              <?php if (isset($extra_html_end)) echo $extra_html_end// this was possibly filled by an included file above ?>
    <?php 
    // BEGIN CEON URI MAPPING 2 of 2
           
    echo $ceon_uri_mapping_admin->collectInfoBuildURIMappingFields();
    // END CEON URI MAPPING 2 of 2 ?>
            </table></td>
          </tr>
          <tr>
            <td><?php echo zen_draw_separator('pixel_trans.gif''1''10'); ?></td>
          </tr>

    And the collect_info_seo.php


    PHP Code:
        // BEGIN CEON URI MAPPING 1 of 2
        
    require_once(DIR_WS_CLASSES 'class.CeonURIMappingAdminProductPages.php');
        
        
    $ceon_uri_mapping_admin = new CeonURIMappingAdminProductPages();
        
        
    $ceon_uri_mapping_admin->collectInfoHandler();
        
        
    // END CEON URI MAPPING 1 of 2 

        //$extra_html_end .= '<!-- BEGIN CEON URI MAPPING 2 of 2 -->' . $ceon_uri_mapping_admin->collectInfoBuildURIMappingFields() . '<!-- END CEON URI MAPPING 2 of 2 -->'; 
    Hope it helps.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  9. #369
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    277

    Default Re: New add-on "product type book" for ZC 1.5

    I recommend that if you're going to create separate files for Ceon stuff, that you use Ceon in the filename. So, collect_info_seo.php would be collect_info_ceon.php instead. That way you know it's for Ceon, instead of assuming that Ceon is synonymous with "seo"
    .

    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.

  10. #370
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

    Default Re: New add-on "product type book" for ZC 1.5

    Yes you are right. it should have ceon as good practice.

    The include file, it's because the bookx product type allows those extra include ( witch the normal product should do too in my opinion , for the code and html).
    In the normal product , that ceon code it's "manually" inserted bellow


    PHP Code:
    $products_description $_POST['products_description'];
          
    $products_url $_POST['products_url'];
        } 
    The bookx product type allows that one include, but on the html side another one is needed, so on updates, it will "override" that code any way.
    So fjbern1943 , if you have the ceon stuff working on the normal product, just take a good look, use the "search" in your software or open a side by side window. What's on the normal product has to be the in the bookx product type also.


    good luck
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

 

 
Page 37 of 43 FirstFirst ... 273536373839 ... LastLast

Similar Threads

  1. Why "No, Normal Shipping Rules" option for a "Product - Free Shipping" type?
    By ilikemike in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 31 Dec 2011, 12:34 AM
  2. Replies: 5
    Last Post: 11 Sep 2009, 04:51 AM
  3. Different "Sold Out" images for each product type
    By Starlyn in forum Setting Up Categories, Products, Attributes
    Replies: 13
    Last Post: 20 Mar 2009, 10:37 PM
  4. Remove "Add: [ ]" and "Add selected products to cart" from product pages? possible?
    By edwardtilbury in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Sep 2008, 03:13 AM
  5. "Array()" line on "Update Address Book" page
    By vera in forum Managing Customers and Orders
    Replies: 10
    Last Post: 22 Sep 2006, 03:06 AM

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