Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
DivaVocals
It does and I will undo the two changes I made that are not needed..
On another note.. I need to send you an an e-mail under separate cover with regards to questions I have regarding the mapping manager and "other" pages..
Hello,
I added a new product type, namely bookx, and modified the file includes/extra_datafiles/ceon_uri_mapping_product_pages.php as follows:
$ceon_uri_mapping_product_pages = array(
FILENAME_DOCUMENT_GENERAL_INFO,
FILENAME_DOCUMENT_PRODUCT_INFO,
FILENAME_PRODUCT_INFO,
FILENAME_PRODUCT_BOOK_INFO,
FILENAME_PRODUCT_FREE_SHIPPING_INFO,
FILENAME_PRODUCT_MUSIC_INFO,
FILENAME_PRODUCT_BOOKX_INFO
);
But it is not working.
The plugin works in every other respect.
My setup is zencart version 1.54, Ceon URI Mapping version 4.5.0
Please help
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
fjbern1943
Hello,
I added a new product type, namely bookx, and modified the file includes/extra_datafiles/ceon_uri_mapping_product_pages.php as follows:
$ceon_uri_mapping_product_pages = array(
FILENAME_DOCUMENT_GENERAL_INFO,
FILENAME_DOCUMENT_PRODUCT_INFO,
FILENAME_PRODUCT_INFO,
FILENAME_PRODUCT_BOOK_INFO,
FILENAME_PRODUCT_FREE_SHIPPING_INFO,
FILENAME_PRODUCT_MUSIC_INFO,
FILENAME_PRODUCT_BOOKX_INFO
);
But it is not working.
The plugin works in every other respect.
My setup is zencart version 1.54, Ceon URI Mapping version 4.5.0
Please help
What is the defined value for FILENAME_PRODUCT_BOOKX_INFO?
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
mc12345678
What is the defined value for FILENAME_PRODUCT_BOOKX_INFO?
I really don't know what you mean by "What is the defined value:
Here is the file:
<?php
/**
* This file is part of the ZenCart add-on Book X which
* introduces a new product type for books to the Zen Cart
* shop system. Tested for compatibility on ZC v. 1.5
*
* For latest version and support visit:
* https://sourceforge.net/p/zencartbookx
*
* @package languageDefines
* @author Philou
* @copyright Copyright 2013
* @copyright Portions Copyright 2003-2011 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.gnu.org/licenses/gpl.txt GNU General Public License V2.0
*
* @version BookX V 0.9.4-revision6 BETA
* @version $Id: [ZC INSTALLATION]/includes/languages/english/product_bookx_info.php 2015-08-243 philou $
*/
define('TEXT_PRODUCT_NOT_FOUND', 'Sorry, the product was not found');
define('TEXT_CURRENT_REVIEWS', 'Current Reviews:');
define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');
define('TEXT_DATE_ADDED', 'This book was added to our catalog on %s.');
define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.');
define('TEXT_ALSO_PURCHASED_PRODUCTS', 'Customers who bought this book also purchased...');
define('TEXT_PRODUCT_OPTIONS', 'Please Choose:');
define('TEXT_PRODUCT_WEIGHT', 'Shipping Weight: ');
define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');
define('TEXT_PRODUCT_MODEL', 'Model: ');
define('TEXT_PRODUCT_ISBN', 'ISBN: ');
define('TEXT_PRODUCT_COLLECTIONS', 'Media Collection: ');
// boox specific data
define('LABEL_PUBLISHER', 'Publisher: ');
define('LABEL_PUBLISHER_DESCRIPTION', 'About the publisher: ');
define('TEXT_PUBLISHER_URL', 'For more information, please visit the publisher\'s <a href="%s" target="_blank">webpage</a>.');
define('LABEL_IMPRINT', 'Sublabel / Imprint: ');
define('LABEL_IMPRINT_DESCRIPTION', 'About the sublabel / imprint: ');
define('LABEL_SERIES', 'Series: ');
define('LABEL_SERIES_DESCRIPTION', 'About the series: ');
define('LABEL_AUTHORS', 'Authors:');
define('LABEL_AUTHOR', 'Author:');
define('LABEL_AUTHOR_DESCRIPTION', 'About %s: ');
define('TEXT_AUTHOR_URL', 'For more information, please visit the author\'s <a href="%s" target="_blank">webpage</a>.');
define('HEADING_AUTHOR_RELATED_PRODUCTS', 'Other books by <span class="author">%s</span>:');
define('TEXT_AUTHOR_TEAM_AND', 'and');
define('BOOKX_PRODUCT_STATUS_IN_STOCK', '');
define('BOOKX_PRODUCT_STATUS_OUT_OF_PRINT', '(out of print)');
define('BOOKX_PRODUCT_STATUS_UPCOMING_PRODUCT', '(soon to be released)');
define('BOOKX_PRODUCT_STATUS_NEW_PRODUCT', 'New!');
// previous next product
define('PREV_NEXT_PRODUCT', 'Book ');
define('PREV_NEXT_FROM', ' of ');
define('IMAGE_BUTTON_PREVIOUS','previous book');
define('IMAGE_BUTTON_NEXT','next book');
define('IMAGE_BUTTON_RETURN_TO_PRODUCT_LIST','Back to Book list');
// missing products
//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');
define('TEXT_ATTRIBUTES_PRICE_WAS',' [was: ');
define('TEXT_ATTRIBUTE_IS_FREE',' now is: Free]');
define('TEXT_ONETIME_CHARGE_SYMBOL', ' *');
define('TEXT_ONETIME_CHARGE_DESCRIPTION', ' One time charges may apply');
define('TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK','Quantity Discounts Available');
define('ATTRIBUTES_QTY_PRICE_SYMBOL', zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' ');
define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ' );
define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )' );
define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' (' );
define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ') ' );
Thanks,
Frank
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
fjbern1943
I really don't know what you mean by "What is the defined value:
Here is the file:
Code:
<?php
/**
* This file is part of the ZenCart add-on Book X which
* introduces a new product type for books to the Zen Cart
* shop system. Tested for compatibility on ZC v. 1.5
*
* For latest version and support visit:
* https://sourceforge.net/p/zencartbookx
*
* @package languageDefines
* @author Philou
* @copyright Copyright 2013
* @copyright Portions Copyright 2003-2011 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.gnu.org/licenses/gpl.txt GNU General Public License V2.0
*
* @version BookX V 0.9.4-revision6 BETA
* @version $Id: [ZC INSTALLATION]/includes/languages/english/product_bookx_info.php 2015-08-243 philou $
*/
define('TEXT_PRODUCT_NOT_FOUND', 'Sorry, the product was not found');
define('TEXT_CURRENT_REVIEWS', 'Current Reviews:');
define('TEXT_MORE_INFORMATION', 'For more information, please visit this product\'s <a href="%s" target="_blank">webpage</a>.');
define('TEXT_DATE_ADDED', 'This book was added to our catalog on %s.');
define('TEXT_DATE_AVAILABLE', 'This product will be in stock on %s.');
define('TEXT_ALSO_PURCHASED_PRODUCTS', 'Customers who bought this book also purchased...');
define('TEXT_PRODUCT_OPTIONS', 'Please Choose:');
define('TEXT_PRODUCT_WEIGHT', 'Shipping Weight: ');
define('TEXT_PRODUCT_QUANTITY', ' Units in Stock');
define('TEXT_PRODUCT_MODEL', 'Model: ');
define('TEXT_PRODUCT_ISBN', 'ISBN: ');
define('TEXT_PRODUCT_COLLECTIONS', 'Media Collection: ');
// boox specific data
define('LABEL_PUBLISHER', 'Publisher: ');
define('LABEL_PUBLISHER_DESCRIPTION', 'About the publisher: ');
define('TEXT_PUBLISHER_URL', 'For more information, please visit the publisher\'s <a href="%s" target="_blank">webpage</a>.');
define('LABEL_IMPRINT', 'Sublabel / Imprint: ');
define('LABEL_IMPRINT_DESCRIPTION', 'About the sublabel / imprint: ');
define('LABEL_SERIES', 'Series: ');
define('LABEL_SERIES_DESCRIPTION', 'About the series: ');
define('LABEL_AUTHORS', 'Authors:');
define('LABEL_AUTHOR', 'Author:');
define('LABEL_AUTHOR_DESCRIPTION', 'About %s: ');
define('TEXT_AUTHOR_URL', 'For more information, please visit the author\'s <a href="%s" target="_blank">webpage</a>.');
define('HEADING_AUTHOR_RELATED_PRODUCTS', 'Other books by <span class="author">%s</span>:');
define('TEXT_AUTHOR_TEAM_AND', 'and');
define('BOOKX_PRODUCT_STATUS_IN_STOCK', '');
define('BOOKX_PRODUCT_STATUS_OUT_OF_PRINT', '(out of print)');
define('BOOKX_PRODUCT_STATUS_UPCOMING_PRODUCT', '(soon to be released)');
define('BOOKX_PRODUCT_STATUS_NEW_PRODUCT', 'New!');
// previous next product
define('PREV_NEXT_PRODUCT', 'Book ');
define('PREV_NEXT_FROM', ' of ');
define('IMAGE_BUTTON_PREVIOUS','previous book');
define('IMAGE_BUTTON_NEXT','next book');
define('IMAGE_BUTTON_RETURN_TO_PRODUCT_LIST','Back to Book list');
// missing products
//define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');
//define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');
//define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');
define('TEXT_ATTRIBUTES_PRICE_WAS',' [was: ');
define('TEXT_ATTRIBUTE_IS_FREE',' now is: Free]');
define('TEXT_ONETIME_CHARGE_SYMBOL', ' *');
define('TEXT_ONETIME_CHARGE_DESCRIPTION', ' One time charges may apply');
define('TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK','Quantity Discounts Available');
define('ATTRIBUTES_QTY_PRICE_SYMBOL', zen_image(DIR_WS_TEMPLATE_ICONS . 'icon_status_green.gif', TEXT_ATTRIBUTES_QTY_PRICE_HELP_LINK, 10, 10) . ' ');
define('ATTRIBUTES_PRICE_DELIMITER_PREFIX', ' ( ' );
define('ATTRIBUTES_PRICE_DELIMITER_SUFFIX', ' )' );
define('ATTRIBUTES_WEIGHT_DELIMITER_PREFIX', ' (' );
define('ATTRIBUTES_WEIGHT_DELIMITER_SUFFIX', ') ' );
Thanks,
Frank
Well, somewhere in the load path, need to also provide something like the below in order for CEON to properly process/handle the new product type:
Code:
define('FILENAME_PRODUCT_BOOKX_INFO', 'product_bookx_info');
the right side (value) is to be what you see to the right of main_page= in the uri when looking at the ZC standard uri. The definition should be in a file located in includes/extra_datafiles similar to those listed in ceon_uri_mapping_filenames.php located in the same folder.
Re: Ceon URI Mapping v4.x
Thanks for the reply. I decided to not use the bookx product type. Just too much trouble versus the benefits. If I was actually running a book store and not just adding a handful of books I would invest the time to try get the CEON URI mod to work with this new product type.
Thanks again,
Frank
P.S. Can you PM me on any progress with the other CEON/EASYPOPULATE MOD, you have been working on for me.
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
fjbern1943
Thanks for the reply. I decided to not use the bookx product type. Just too much trouble versus the benefits. If I was actually running a book store and not just adding a handful of books I would invest the time to try get the CEON URI mod to work with this new product type.
Thanks again,
Frank
P.S. Can you PM me on any progress with the other CEON/EASYPOPULATE MOD, you have been working on for me.
I would have to guess that the "trouble" has nothing to do with CEON as there was only one remaining step to be performed in order to have CEON work with that product type. Namely and in a consolidated post the following is a way that could have been taken for CEON to support the additional product type assuming that when viewing the bookx product detail the URI contains: main_page=product_bookx_info
modify includes/extra_datafiles/ceon_uri_mapping_product_pages.php to add FILENAME_PRODUCT_BOOKX_INFO as highlighted below (and identified previously as complete):
Code:
$ceon_uri_mapping_product_pages = array(
FILENAME_DOCUMENT_GENERAL_INFO,
FILENAME_DOCUMENT_PRODUCT_INFO,
FILENAME_PRODUCT_INFO,
FILENAME_PRODUCT_BOOK_INFO,
FILENAME_PRODUCT_FREE_SHIPPING_INFO,
FILENAME_PRODUCT_MUSIC_INFO,
FILENAME_PRODUCT_BOOKX_INFO
);
modify includes/extra_datafiles/ceon_uri_mapping_filenames.php (could be added/edited in another file but this one will do generally speaking... By modifying this file then when the rewriting software is updated in the future this change must be carried through, by placing in a separate file the modification remains in place through upgrades of the rewriter)
add (again assuming that when viewing the bookx product page that main_page=product_bookx_info):
Code:
/**
* Product type info pages which are missing their defines.
*/
define('FILENAME_DOCUMENT_GENERAL_INFO', 'document_general_info');
define('FILENAME_DOCUMENT_PRODUCT_INFO', 'document_product_info');
define('FILENAME_EZPAGES_POPUP', 'ezpages_popup');
define('FILENAME_PRODUCT_BOOK_INFO', 'product_book_info');
define('FILENAME_PRODUCT_FREE_SHIPPING_INFO', 'product_free_shipping_info');
define('FILENAME_PRODUCT_MUSIC_INFO', 'product_music_info');
define('FILENAME_PRODUCT_BOOKX_INFO', 'product_bookx_info');
And done as far as installation. With those two changes the bookx product URIs could be rewritten using CEON...
Re: Ceon URI Mapping v4.x
Hi All!
I am trying to figure out how to remove category_name from my product pages. Currently, my product page uri's look like this:
mystore.com/main_category/supcategory/product_title
I'm fine with my category pages having that structure, but I'd prefer to shorten the uri on product pages to look like this:
mystore.com/product_title
Anybody know how to accomplish this?
Thanks!
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
Feznizzle
Hi All!
I am trying to figure out how to remove category_name from my product pages. Currently, my product page uri's look like this:
mystore.com/main_category/supcategory/product_title
I'm fine with my category pages having that structure, but I'd prefer to shorten the uri on product pages to look like this:
mystore.com/product_title
Anybody know how to accomplish this?
Thanks!
One way is to go to edit the product page, then modify the uri that is presented at the bottom of the page to remove the category portion of the uri, review, then save. This will maintain the previous URI (for sources that have previously mapped to it) and will establish a new link to the same product.
Alternatively, can accomplish the same thing through database manipulation.
In no particular order, though preferred to be done quickly, review the entry that is to be modified, copy the contents of the entry add the entry with the uri string modified to remove the category description, ensuring that it is stored as the active uri. Also deactivate the previous uri entry maintaining it as historical (for the same reason as above). In this scenario though there is no "autocheck" to validate that two products don't have the same URI which would cause one to be "lost" to an extent...
There are also somewhat "more advanced" methods involving export, modification, and import/replace of the applicable data table...
Re: Ceon URI Mapping v4.x
Thanks for the info, MC.
Bummer. I was hoping for a simple way to alter the autogenerated uri.
I have not looked at the code yet, but I should think it would be simple to fix.
I will poke around and then post whatever solution I come up with before implementing it.
Thanks!
Re: Ceon URI Mapping v4.x
Quote:
Originally Posted by
Feznizzle
Thanks for the info, MC.
Bummer. I was hoping for a simple way to alter the autogenerated uri.
I have not looked at the code yet, but I should think it would be simple to fix.
I will poke around and then post whatever solution I come up with before implementing it.
Thanks!
Well, that's a bit of an animal of a different color... OP made it appear as if the store already had all of its URIs populated (requiring modification away from the default generation). Can also take a look, but it would basically be within the product mapping portion where it goes out to investigate the code aspect. That said though, if working within a single category, could use the option of:
Quote:
Character/String Replacements: |
This is a comma-separated list of pairs of characters/strings and replacement characters/strings.
The characters/strings to be replaced in the auto-generated URIs should be separated from their replacements using “=>”. E.g. “£=>GBP, $=>USD”.
Any spacing entered for a replacement will be used but replaced with the usual whitespace replacement character (so be careful not leave an extra space at the end of the text entered below if it is not intended!). Spacing entered for the strings/characters to be replaced will be removed/ignored; so it's fine to add a space after each comma, to make things easier to read.
To remove a character/string simply replace it with nothing. E.g. “£=>, $=>” removes £ and $ dollar signs from the auto-generated URI. |
Whereby the category/category string is provided on the left side and the right side is left empty... Just a thought...