Page 31 of 43 FirstFirst ... 21293031323341 ... LastLast
Results 301 to 310 of 427
  1. #301
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

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

    You can find an updated module here: https://sourceforge.net/projects/zen...?source=navbar
    Please note that I have simply removed the requirement for tpl_modules_whats_new.php since there is currently no Bookx modification in there.

    Regards,
    p.

  2. #302
    Join Date
    Apr 2015
    Location
    United States
    Posts
    144
    Plugin Contributions
    0

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

    Thank You. I downloaded the new plugin version. Now I will try to do the file mods in the Edit Manually Directory in my test site.

    Thanks again, I will let you know how I make out after the I try the complete installation.

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

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

    Bookx plugin installed perfectly and all files and modified files are on the live site and it seems to be working fine.

    I guess I didn't realize this but since I added a different product type my other plugins do not work with the new product type (bookx). Now I need to find someone to expand my CEON URI, Vendor Shipping with PDF and Easypopulate plugins. I don't think I am capable of doing this myself. If you are interested in tackling this or know of someone who would be interested, please PM me.

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

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

    Hi fjbern,

    glad it works as advertised finally!
    I suspect the first two plugins you mention are easier to get to work with BookX, but "Easy populate" is a different animal. Another member has asked me about this a few posts below, and it is not such a trivial task.

    I myself am more focussed on getting BookX out of BETA as there are still a few bits which I would like to get working first. So short answer is: as it looks now i will not tackle the Easy Populate functionality in the near future.

    Best regards,
    p.

  5. #305
    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

    Quote Originally Posted by mesnitu View Post
    Hi
    I'm having a issue, probably not related to the module itself , but I can't seen to get this working.

    I'm using tabs to display new, featured and special in the main page.
    For some reason when I make the necessary changes to the file new_products.php , all I get it's a blank in the news product tab.

    The featured and special are ok, just the new product.
    If I comment again the 3 alterations made in that file, everything it's ok , but of course no new bookx products comes up...
    If I go to main_page=products_new the bookx products are there....

    Thanks

    By the way , did anyone already used the bookx modules with the ceon_uri mapping ?
    Hello, Did you ever get an answer about using bookx and ceon URI mapping together?

  6. #306
    Join Date
    Apr 2015
    Location
    United States
    Posts
    144
    Plugin Contributions
    0

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

    Of the three plugins I mentioned I would have thought that the easypopulate one would be the easiest. I think you can just add custom datafields in the easy populate admin. The CEON URI looks like a bear! Anyone out there integrated CEON URI WITH Bookx I would like to hear from you.

  7. #307
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

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

    Hi
    You can. I'm not sure if I can guide you, cause it has been a while since I did that, but look at :
    admin/includes/modules/product_bookx/ and compare with the normal product.
    The files are this ones:

    collect_info.php
    copy_to_confirm.php
    delete_product_confirm.php
    preview_info.php
    update_product.php

    Ex: For the update , I have a include file, because bookx looks for a additional update_product*.php around line 380 ( I have 0.9.4-revision4 of bookx), but in others I dont', because I became aware of that latter. So see if you can take advantage of that.

    PHP Code:
    //** look for additional update_product*.php files and include now **//
        
    $incl_dir = @dir(DIR_FS_ADMIN '/includes/modules/product_bookx');
        while (
    $file $incl_dir->read()) {
            if (
    'update_product_' == substr($file015)) {
                include_once 
    DIR_FS_ADMIN '/includes/modules/product_bookx/' $file// This should handle any extra values collected in collect_info*.php
            
    }
        }
        
    $incl_dir->close(); 
    So I created a update_product_seo.php that has ( in the same folder)

    PHP Code:
    // BEGIN CEON URI MAPPING 1 of 1
        
    require_once(DIR_WS_CLASSES 'class.CeonURIMappingAdminProductPages.php');
        
        
    $ceon_uri_mapping_admin = new CeonURIMappingAdminProductPages();
        
        
    $ceon_uri_mapping_admin->updateProductHandler($products_id$zc_products->get_handler($product_type));
        
        
    // END CEON URI MAPPING 1 of 1 
    For the collect_info.php same thing, created a 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 
    and around line 1158

    PHP Code:
     <?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 ?>
    In the preview_info.php , it's diferent (don't ask me why)
    Around line 84 you'll see :

    PHP Code:
    foreach ($bookx_author_ids as $key => $author_id) {
                  
    $pInfo->authors_display .= (!empty($pInfo->authors_display) ? ' | ' '') . ($bookx_author_type_ids bookx_get_author_type_description($bookx_author_type_ids[$key], (int)$_SESSION['languages_id']) . ': ' '') . bookx_get_author_name($author_id);
              }
          }
    // BEGIN CEON URI MAPPING 1 of 4
          
    require_once(DIR_WS_CLASSES 'class.CeonURIMappingAdminProductPages.php');
          
          
    $ceon_uri_mapping_admin = new CeonURIMappingAdminProductPages();
          
          
    $ceon_uri_mapping_admin->productPreviewProcessSubmission($current_category_id);
          
          
    // END CEON URI MAPPING 1 of 4
          
          
        
    } else { 
    Around line 146

    PHP Code:
    while (!$genres->EOF) {
              
    $pInfo->genres_display .= (!empty($pInfo->genres_display) ? ' | ' '') . $genres->fields['genre_description'];
              
    $genres->MoveNext();
          }
          
          
    // BEGIN CEON URI MAPPING 2 of 4
          
    require_once(DIR_WS_CLASSES 'class.CeonURIMappingAdminProductPages.php');
          
          
    $ceon_uri_mapping_admin = new CeonURIMappingAdminProductPages();
          
          
    $ceon_uri_mapping_admin->productPreviewInitialLoad((int) $_GET['pID'],
            
    $zc_products->get_handler((int) $_GET['product_type']));
          
          
    // END CEON URI MAPPING 2 of 4

        

    Line 274

    PHP Code:
    <tr>
            <td class="main"><?php echo sprintf(TEXT_PRODUCT_MORE_INFORMATION$pInfo->products_url); ?></td>
          </tr>
    <?php
          
    }
    ?>
          <?php // BEGIN CEON URI MAPPING 3 of 4
          
    $ceon_uri_mapping_admin->productPreviewOutputURIMappingInfo($languages[$i]);
          
    // END CEON URI MAPPING 3 of 4 ?>
          <tr>
            <td><?php echo zen_draw_separator('pixel_trans.gif''1''10'); ?></td>
          </tr>
    Around 353

    PHP Code:
    echo ( (isset($_GET['search']) && !empty($_GET['search'])) ? zen_draw_hidden_field('search'$_GET['search']) : '') . ( (isset($_POST['search']) && !empty($_POST['search']) && empty($_GET['search'])) ? zen_draw_hidden_field('search'$_POST['search']) : '');
          
    // BEGIN CEON URI MAPPING 4 of 4
          
    echo $ceon_uri_mapping_admin->productPreviewBuildHiddenFields();
    // END CEON URI MAPPING 4 of 4
          
    echo zen_image_submit('button_back.gif'IMAGE_BACK'name="edit"') . '&nbsp;&nbsp;'
    copy_to_confirm.php

    PHP Code:
    if ($_POST['copy_discounts'] == 'copy_discounts_yes') {
                  
    zen_copy_discounts_to_product($old_products_id, (int)$dup_products_id);
                }

                
    // BEGIN CEON URI MAPPING 1 of 1
                
    require_once(DIR_WS_CLASSES 'class.CeonURIMappingAdminProductPages.php');
                
                
    $ceon_uri_mapping_admin = new CeonURIMappingAdminProductPages();
                
                
    $ceon_uri_mapping_admin->copyToConfirmHandler($products_id_from$products_id_to,
                  
    $product->fields['products_type'], $zc_products->get_handler($product->fields['products_type']),
                  
    $categories_id);
                
                
    // END CEON URI MAPPING 1 of 1 
    But I also have the metatags ( not entirely working ), so in this folder I have

    collect_info_metatags.php
    collect_info_seo.php
    delete_product_confirm.php
    preview_info.php
    update_product_seo.php
    collect_info.php
    copy_to_confirm.php
    preview_info_meta_tags.php
    update_product.php

    I don't remember changing anything in meta_tags files. I think I just copy from modules/product
    Note: Metatags are working as normal product, but as I remember without them, I couldn't had any metatags at all.
    This is what I remember.... hope it can guide you.
    Last edited by mesnitu; 1 Sep 2015 at 06:43 PM.
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  8. #308
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

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

    Quote Originally Posted by mesnitu View Post

    In the preview_info.php , it's diferent (don't ask me why)
    You can also put a file that starts with preview_info and ends with ".php" and it will be included, but further down in the script, so all variables from the POST are available.

    Line 144:
    Code:
        //** look for additional preview_info*.php files and include now **//
        $incl_dir = @dir(DIR_FS_ADMIN . '/includes/modules/product_bookx');
        while ($file = $incl_dir->read()) {
        	if ('preview_info_' == substr($file, 0, 13)) {
        		include_once DIR_FS_ADMIN . '/includes/modules/product_bookx/' . $file; // This should handle any extra values collected in collect_info*.php
        	}
        }
        $incl_dir->close();
    So if you put a file "preview_info_myextrainfo.php" in the same folder, it gets included.

    Regards,
    p.

  9. #309
    Join Date
    Aug 2014
    Location
    Lisbon
    Posts
    594
    Plugin Contributions
    0

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

    I'm trying to install the latest bookx release with zencart 1.54
    I just have this installed.

    I dont' see anyone reporting this....so I guess some data base config ?

    Code:
    [01-Sep-2015 19:03:14 UTC] PHP Fatal error:  1366:Incorrect integer value: '' for column 'type_sort_order' at row 1 :: insert into product_bookx_author_types (type_sort_order) values ('') ==> (as called by) /home/daniel/public_html/zen154.dev/zencc/includes/functions/database.php on line 53 <== in /home/daniel/public_html/zen154.dev/includes/classes/db/mysql/query_factory.php on line 155

    I also had this issue installing zencart, but there was a fix saying (This is ONLY necessary if you're getting this specific error, and have STRICT_ALL_TABLES enabled in MySQL.)

    Code:
    [01-Sep-2015 18:23:18 UTC] PHP Fatal error:  1101:BLOB/TEXT column 'logmessage' can't have a default value :: ALTER TABLE admin_activity_log ADD COLUMN logmessage mediumtext NOT NULL default '' ==> (as called by) /home/daniel/public_html/zen154.dev/zencc/includes/classes/class.admin.zcObserverLogWriterDatabase.php on line 90 <== in /home/daniel/public_html/zen154.dev/includes/classes/db/mysql/query_factory.php on line 155
    Thanks
    “Though the problems of the world are increasingly complex, the solutions remain embarrassingly simple.” ― Bill Mollison

  10. #310
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

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

    Are you getting this error when inserting a new author type?
    If so, are you entering a (numerical) value in the field "sort order"?

    If you are getting this error when you insert new author type without entering a sort order then please try entering a value (even zero 0 is fine) and tell me if you still get the error?

    thx,
    p.

 

 
Page 31 of 43 FirstFirst ... 21293031323341 ... 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