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.
Printable View
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.
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.
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.
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.
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.
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.
So I created a update_product_seo.php that has ( in the same folder)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($file, 0, 15)) {
include_once DIR_FS_ADMIN . '/includes/modules/product_bookx/' . $file; // This should handle any extra values collected in collect_info*.php
}
}
$incl_dir->close();
For the collect_info.php same thing, created a collect_info_seo.php,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
and around line 1158PHP 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
In the preview_info.php , it's diferent (don't ask me why)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 ?>
Around line 84 you'll see :
Around line 146PHP 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 {
Line 274PHP 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
}
Around 353PHP 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>
copy_to_confirm.phpPHP 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"') . ' ';
But I also have the metatags ( not entirely working ), so in this folder I havePHP 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
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.
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:
So if you put a file "preview_info_myextrainfo.php" in the same folder, it gets included.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();
Regards,
p.
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.)
ThanksCode:[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
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.