Ok.. where's thats "blush" icon..? :blush:
Simple path error in my admin config file.
Sorry to bother you mate, I must say though, your add-on looks REALLY cool and a donation is on the way. :wink:
Printable View
Ok.. where's thats "blush" icon..? :blush:
Simple path error in my admin config file.
Sorry to bother you mate, I must say though, your add-on looks REALLY cool and a donation is on the way. :wink:
Hi Scott,
lol.. never quite looked at/knew what that smiley icon was before but how appropriate! :)
Thought it would be something to do with a missing file/inability to load a file. Should have mentioned before that it might have been an incorrect FS_ADMIN setting but that's so rare.. glad you're sorted now anyway!
All the best...
Conor
ceon
Wooops! :blush:
I started a new thread a moment ago when I should have just posted here.... sorry!
Anyway, I am trying to figure out if adding Ceon URI input to Easy Populate imports is possible?
Can database fields for Ceon URI can be added so that Easy Populate can control CeonURI?
For instance, Easy Populate provides a field to make products active or inactive:
v_products_status = 0, 1, or 9
I know that there are methods for adding fields to Easy Pop. I would like to do this with Ceon URI. For instance (what I'd like to do):
v_ceonURI_status = 0 (ceonURI is off)
v_ceonURI_status = 1 (ceonURI is on, automatically assigns SEO url)
v_ceonURI_status = 9 (ceonURI is on, references a manually created url)
And, of course, if v_ceonURI_status = 9, then I would use a different field to add my own URL:
v_ceonURI_manualURL = TEXT FIELD (input would be something like this --- www.MYSTORE.com/product_key_words_here.html)
One extremely cool use for this is to prevent "down time" caused by SE reindexing since I am migrating a site to Zen from CRE. My CRE site uses an SEO url mod and has already achieved spectacular google ranking. Adding the above fields to Easy Pop would allow me to keep all the same old url's when I migrate!
Anyway, can this be done?
If so, what are the fields I can add to Easy Pop to control ceonURI?
Any thoughts would be greatly appreciated!
Hello Conor,
Thank you so much for your help, and now it run OK on my site, and I also upgrade to 3.4.3, but I found some other problems,
1. the banner add function in admin is disappeared, I use the compare tool to keep my original code, the follow is the banner code of categories,
2. further checking, and I found the ?cPath= still added at the end of the page of new arrival, I am confused about that, you can see the problem here http://www.jewellet.com/index.php?ma...&productsort=5Code://TODO insert banner1
if ($_POST['categories_banner1_manual'] != '') {
// add image manually
$categories_banner1_name = $_POST['img_dir_banner1'] . $_POST['categories_banner1_manual'];
$db->Execute("update " . TABLE_CATEGORIES . "
set categories_banner_1_img = '" . $categories_image_name . "'
where categories_id = '" . (int)$categories_id . "'");
} else {
if ($categories_image = new upload('banner1_image')) {
$categories_image->set_destination(DIR_FS_CATALOG_IMAGES . $_POST['img_dir_banner1']);
if ($categories_image->parse() && $categories_image->save()) {
$categories_banner1_name = $_POST['img_dir_banner1'] . $categories_image->filename;
}
if ($categories_image->filename != 'none' && $categories_image->filename != '' && $_POST['image_delete'] != 1) {
// save filename when not set to none and not blank
$db->Execute("update " . TABLE_CATEGORIES . "
set categories_banner_1_img = '" . $categories_banner1_name . "'
where categories_id = '" . (int)$categories_id . "'");
} else {
// remove filename when set to none and not blank
if ($categories_image->filename != '' || $_POST['image_delete'] == 1) {
$db->Execute("update " . TABLE_CATEGORIES . "
set categories_banner_1_img = ''
where categories_id = '" . (int)$categories_id . "'");
}
}
}
}
//TODO insert banner2
if ($_POST['categories_banner2_manual'] != '') {
// add image manually
$categories_banner2_name = $_POST['img_dir_banner2'] . $_POST['categories_banner2_manual'];
$db->Execute("update " . TABLE_CATEGORIES . "
set categories_banner_2_img = '" . $categories_image_name . "'
where categories_id = '" . (int)$categories_id . "'");
} else {
if ($categories_image = new upload('banner2_image')) {
$categories_image->set_destination(DIR_FS_CATALOG_IMAGES . $_POST['img_dir_banner2']);
if ($categories_image->parse() && $categories_image->save()) {
$categories_banner2_name = $_POST['img_dir_banner2'] . $categories_image->filename;
}
if ($categories_image->filename != 'none' && $categories_image->filename != '' && $_POST['image_delete'] != 1) {
// save filename when not set to none and not blank
$db->Execute("update " . TABLE_CATEGORIES . "
set categories_banner_2_img = '" . $categories_banner2_name . "'
where categories_id = '" . (int)$categories_id . "'");
} else {
// remove filename when set to none and not blank
if ($categories_image->filename != '' || $_POST['image_delete'] == 1) {
$db->Execute("update " . TABLE_CATEGORIES . "
set categories_banner_2_img = ''
where categories_id = '" . (int)$categories_id . "'");
}
}
}
}
//TODO
and I found the relative code isCould you help me for the possible cause, Thanks so much!Code:?>
<li>
<div><ul><li class="relative">
<?php if($list_box_contents[$row]['products_quantity'] == 0) { ?>
<span class="sold_out_b"></span>
<?php } ?>
<?php echo $list_box_contents[$row]['product_is_sale_item'].'<a href="' . zen_href_link(zen_get_info_page($list_box_contents[$row]['products_id']), 'cPath=' .zen_get_generated_category_path_rev($_GET['cPath']). '&products_id=' . $list_box_contents[$row]['products_id']) . '" class="ih" >' . zen_image_OLD(DIR_WS_IMAGES .substr_replace($list_box_contents[$row]['products_image'],'l/',0,2), $list_box_contents[$row]['products_name'], 228, 228, 'class=""') . '</a>'?>
</li>
<p>
Alan
Hi Alan,
Sorry I don't know anything about that and can't see anything in your code. Hopefully someone else here can help you with that.
This code is custom code on your site. It is NOT part of the standard Zen Cart installation.
This code is messing up and generating a cPath variable when a category isn't being displayed (and so a cPath isn't needed). URI Mapping can't read minds so it doesn't know what the cPath is doing there so it leaves in it in case it's needed (using the "better safe than sorry" approach).
What you need to do is modify the code you posted and remove the part:
As this is custom code on your site please don't post a followup about this other than to say if it worked or not, as it wouldn't be of use or interest to anyone else on this thread.Code:'cPath=' .zen_get_generated_category_path_rev($_GET['cPath'])
Thanks.
All the best...
Conor
ceon
Hi everyone, I've successfully installed the Ceon mod and just have one thing thats not working; any manufacturer chosen from the dropdown menu is not displaying by the manufacturers name.
It actually just drops this part of the url string; 'index.php' . So what was;
[FONT="Courier New"]
index.php?main_page=index&manufacturers_id=2 [/FONT]before
is now;
[FONT="Courier New"]?main_page=index&manufacturers_id=2[/FONT]
This is not a complaint, just wondering what i might've done wrong? I followed the instructions and "resaved" each manufacturer in the manufacturers list.
Everything else is working great, just need to go through and resve all the products tomorrow.
An example can be seen here; http://www.crushcosmetics.com.au - simply choose a manufacturer from the right-hand dropdown list.
Cheers!
Scott. :cool:
Hi Scott,
Unfortunately the way Zen Cart builds the manufacturers sidebox, it actually links to the index page, so the module maps to the root of the store (in your case '/'). It provides the parameters which make the manufacturers "page" a "page" in hidden form variables passed via a GET. It's therefore impossible for the module to tell the difference between this link and a normal link to the home page..
However, I have made the code smart enough that it outputs a canonical URI for any index page which has a manufacturers_id so that /?main_page=index&manufacturers_id=2 is seen as the same page as /index.php?main_page=index&manufacturers_id=2
I was thinking that instead of having a canonical URI built I could force a redirect to the mapped URI for the manufacturer, but this would mean a double redirect every single time a filter form was submitted or a manufacturer chosen from the manufacturer sidebox.
I think making the canonical URI /index.php?main_page=index&manufacturers_id=2 is a mistake though, I should have made it so that that is the canonical URI only when no specific URI mapping exists (basically an extra SQL lookup would be required but would guarantee the uniqueness of the URI in canonical terms - I should have added this lookup).
Now I'm thinking that maybe a double URI redirect might be the most practical "fix" for this to keep things looking nicer for the customer (even though it would make NO difference at search engine level or in technological terms).
If you look at your site, the links to further pages do use the "expected" mapping: /barry-m, as do the links to the manufacturer from a product page. It's only the two forms which "build" the dynamic URI by "linking" to the index page and adding parameters that have the dynamic-looking URI.
So what do you all think? Would you rather have some code to fix the behaviour of the sidebox and filters or just have a double redirect everytime a form is submitted with the manufacturers_id parameter?
(Obviously for our own site we decided we'd rather "fix" the Zen Cart sidebox and filter forms so that they could work with URI mapping modules rather than have a double redirect everytime but I've a feeling that might be too much hassle for most people rather than simply using a completely automated double redirect.)
All the best...
Conor
ceon
Hi Conor, thanks for taking the time to explain the situation. i think it would be beneficial to have the dropdown 'fixed'. Particularly for sites (like us) that do a promotion on one brand at any given time. E.g; www.sports.com/Nike
I for one would probably prefer the code you used on your site (if you dont mind) rather than having form do the double-submit.
BTW, making a donation today AND I ENCOURAGE ALL OTHERS TO DO THE SAME. This add-on is enourmously beneficial.
Kind Regards,
Scott.